braintree / braintree-ios-drop-in

Braintree Drop-in for iOS
https://developers.braintreepayments.com
MIT License
98 stars 77 forks source link

Drop in UI unresponsive on tapping venmo #60

Closed alexbrashear closed 7 years ago

alexbrashear commented 7 years ago

General information

Issue description

Hi!

I have been authorized by Braintree to accept Venmo payments and have followed the integration steps outlined here: https://developers.braintreepayments.com/guides/venmo/client-side/ios/v4

When I open up the drop in UI and tap Venmo nothing happens. It just highlights the button briefly and then returns to normal. I feel like I am missing something obvious but have been over it several times with no luck. Any help I could get in debugging this would be much appreciated, thanks!

bluk commented 7 years ago

Hello,

When executing:

self.venmoDriver?.authorizeAccountAndVault(false, completion: { (venmoAccount, error) in
    guard let venmoAccount = venmoAccount else {
            print("Error: \(error)")
            return
        }
...
})

is there an error in the callback that is passed back?

One specific error that has come up recently is for new Xcode 9 projects, you may not have a value in CFBundleDisplayName in your Info.plist which is required.

alexbrashear commented 7 years ago

@bluk adding a bundle display name solved the problem, thanks so much for your help!

gopendra commented 6 years ago

Hello,

when using venmo payment method (javascript sdk) its not opening app or website on iOS

if (venmoInstance.hasTokenizationResult()) { venmoInstance.tokenize(function (tokenizeErr, payload) { if (tokenizeErr) { handleVenmoError(tokenizeErr); } else { handleVenmoSuccess(payload); } }); return; }

whereas when opening same into chrome browser it opens a new tab with venmo website.

i also userd : allowNewBrowserTab: false, for braintree.venmo.create but nothings happened for this too. Thanks,

bluk commented 6 years ago

@gopendra This seems more like a question for braintree-web. I would double check the browser requirements. If you're still encountering an issue, please feel free to contact Braintree Support.