braintree / braintree-ios-drop-in

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

Venmo Not getting Drop In back #377

Closed anniemark271983 closed 2 years ago

anniemark271983 commented 2 years ago

I am not getting called back after opening the Venmo application, Paypal is working fine and getting calls back in the application and also the nonce

so can you please let me know what is the issue here?

The below open URL method is called proper while Paypal payment but it's not call while Venmo payment

func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {

print("application option URL->",url)
if (url.scheme?.hasPrefix("fb"))!
{
    ApplicationDelegate.shared.application(UIApplication.shared,open: url,sourceApplication: nil,annotation: [UIApplication.OpenURLOptionsKey.annotation])
} else if (url.scheme?.hasPrefix("google"))!
{
    return GIDSignIn.sharedInstance.handle(url)
} else {
    if url.scheme?.localizedCaseInsensitiveCompare("com.<companyname>.<applicationname>.payments") == .orderedSame {
        return BTAppContextSwitcher.handleOpenURL(url)
    }
}

return false

}

sarahkoop commented 2 years ago

HI @anniemark271983 - Could you please re-open this issue using the issue template? The information requested in that template is necessary for our understanding and investigation of the issue.