-2

The goal is to get user's payment card data in iOS/Android apps, but not by just having them enter it. I'd like them to be able to use a platform-wide context which already keeps the payment card details. Much like the Payment Request API on the web.

I looked at ApplePay and Google Pay but they don't seem to directly provide the payment cards details.

Is there an alternative?

Daniel Birowsky Popeski
  • 8,752
  • 12
  • 60
  • 125

2 Answers2

1

Google Pay and Apple wallet would be closest to the linked payments request api on the web. But keep in mind that even those wouldn't give you the card data directly.

Google Pay only works with specific 'Google Pay Processors' which handle the actual transaction (See list of processors here), so you never get the actual credit card data and cannot perform the payment processing yourself. I assume Apple has the same restrictions.

Another issue you might have is that they are not globally supported.

Have you thought about using paypal maybe? Found a cordova plugin here.

Angel Kjos
  • 1,951
  • 1
  • 12
  • 12
  • 1
    That's a bummer. I really do need the payment card data directly. I'm developing payment mechanism for a country that does not support neither PayPal, nor Braintree, nor Stripe, nor Adyen, nor Nothing. – Daniel Birowsky Popeski Aug 29 '18 at 15:22
  • Yeah that's the way most of these payment APIs on mobile work. Maybe you could think about integrating a credit card scanning library which will extract and prefill the credit card data. – Angel Kjos Sep 04 '18 at 09:22
0

You have good options for both iOS and Android.

For iOS look to Apple Pay -> https://developer.apple.com/apple-pay/ For Android look to Google Pay -> https://developers.google.com/pay/api/android/