I can run the Ionic app and also process a sample checkout via credit card.
Although if I click on “PayPal” instead choosing the credit card option, I always get the error message: PayPal app switch is missing a returnURLScheme.
I really don’t know how to fix that, I already checked Google, Stackoverflow but didn’t found the issue. Something seems to be missing in my config but I don’t know what.
In Xcode, click on your project in the Project Navigator and navigate to App Target > Info > URL Types
Click [+] to add a new URL type
Under URL Schemes , enter your app switch return URL scheme. This scheme must start with your app’s Bundle ID and be dedicated to Braintree app switch returns . For example, if the app bundle ID is com.your-company.Your-App , then your URL scheme could be com.your-company.Your-App.payments .
IMPORTANT
If you have multiple app targets, be sure to add the return URL type for all of the targets.
Testing the URL type
You can test out your new URL scheme by opening up a URL that starts with it (e.g. com.your-company.Your-App.payments://test ) in Mobile Safari on your iOS Device or Simulator.
In addition, always test your app switching on a real device.
Update your application delegate
In your AppDelegate’s application:didFinishLaunchingWithOptions: implementation, use setReturnURLScheme: with the value you set above.
unfortunately there is a huge problem: the plugin uses deprecated API (UIWebview) and when submitting an app to the apple store, it’s no longer accepted.
They should upgrade with the latest versions.
I’ve tried 2-3 other forks but they are not working on iOS.
Hey there,
this old Braintree Plugin is maintained anymore and don’t uses the latest mobile SDK’s.
I created a new one, please read this to get known how to test it and support me in developing:
One question: my backend and my fronted are already written, I used it with the old braintree cordova plugin, do I need to write them again or to modify them?
Hi,
Can your plugin replace PayPal Cordova Plugin to have PayPal as an option in the Ionic app?
Does it support all the features from Braintree? (e.g PayPal, Credit Card, Apple Pay, Google Pay)