react-native-braintree-dropin-ui icon indicating copy to clipboard operation
react-native-braintree-dropin-ui copied to clipboard

How do I enable Venmo Payments from the Drop In UI?

Open dominicvitucci1 opened this issue 6 years ago • 11 comments

I was able to successfully setup this project but when I present the Drop In UI from the example I'm only show the option of PayPal or Credit Card. I'm on a simulator so I know Apple Pay wont show up, but I'm using the code from the example and expected Venmo to pup up as an option. Thanks for any help you can provide!

dominicvitucci1 avatar Jul 25 '18 16:07 dominicvitucci1

Go to braintree -> Settings -> processing, make sure you have enabled Venmo Process and all payment methods you want, then you should be able to see Venmo option and you should be able to see apple pay option on simulator as well.

wgltony avatar Jul 25 '18 17:07 wgltony

@wgltony Thanks for the response! I went into my Braintree Dashboard and enabled all of the payment methods that I want to use. I may be missing something major, but where am I putting in my Braintree keys such as my Merchant ID or Public Key to make the app point to my Braintree account?

dominicvitucci1 avatar Jul 25 '18 19:07 dominicvitucci1

@dominicvitucci1 You need to setup a server to process transaction and connect to your Braintree account. https://developers.braintreepayments.com/start/hello-server/node

wgltony avatar Jul 25 '18 20:07 wgltony

@wgltony Thanks for the advice! I'll get setup a server and update this thread afterwards so that anyone else using the package can see.

dominicvitucci1 avatar Jul 25 '18 22:07 dominicvitucci1

@wgltony Great news! I was able to get everything up and running including Venmo. I'm now having issues with Apple Pay though. I have the merchant ID and everything set up and the option appears in the UI, but I select it the app crashes with this error:

Payment request is invalid: Error Domain=PKPassKitErrorDomain Code=1 "Invalid in-app payment request" UserInfo={NSLocalizedDescription=Invalid in-app payment request, NSUnderlyingError=0x60000084a110 {Error Domain=PKPassKitErrorDomain Code=1 "PKPaymentRequest must contain an NSArray property 'paymentSummaryItems' of valid objects of class PKPaymentSummaryItem" UserInfo={NSLocalizedDescription=PKPaymentRequest must contain an NSArray property 'paymentSummaryItems' of valid objects of class PKPaymentSummaryItem, NSUnderlyingError=0x60000084a020 {Error Domain=PKPassKitErrorDomain Code=1 "%@ has an invalid label or amount property" UserInfo={NSLocalizedDescription=%@ has an invalid label or amount property}}}}}

Any Ideas?

dominicvitucci1 avatar Aug 06 '18 03:08 dominicvitucci1

@dominicvitucci1 I have trouble getting venmo to show up. How did you achieved it?

lan-nguyen91 avatar Oct 31 '18 04:10 lan-nguyen91

@dominicvitucci1 @lan-nguyen91 Also running into this. My apple pay, credit card, and paypal options are appearing, but no venmo option. I've setup venmo in my braintree sandbox and configured the server to provide tokens to the app, but no venmo option so far.

peterholcomb avatar Jun 25 '19 13:06 peterholcomb

Okay, maybe I'm just a doofus and I should have known this, but for anyone who might run into this in the future...Venmo will not show up on the simulator since the app is not installed. You have to install venmo on your device and then run the app on your device for it to show up. Once I ran the app on my device, venmo appeared as an option.

peterholcomb avatar Jun 25 '19 14:06 peterholcomb

Hi there! Maybe not related question, how you managed to have an option pay by "credit or debit card"? I have only Paypal now

akhlopyk avatar Nov 01 '19 16:11 akhlopyk

@dominicvitucci1 You need to setup a server to process transaction and connect to your Braintree account. https://developers.braintreepayments.com/start/hello-server/node

I'm getting after making var braintree = require('braintree'); How did you resolve this issue?

error: bundling failed: Error: Unable to resolve module http from node_modules\braintree\lib\braintree\http.js: http could not be found within the project.

tae-at-speer avatar Mar 19 '20 21:03 tae-at-speer

I am getting Venmo option on android but not on ios any solution?

waqaramjad avatar Aug 26 '20 17:08 waqaramjad