Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion packages/react-native-payments/lib/js/NativePayments.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@ const { ReactNativePayments } = NativeModules;

const IS_ANDROID = Platform.OS === 'android';

// https://developers.google.com/pay/api/#participating-google-pay-processors
const androidSupportedGateways = [
'adyen',
'braintree',
'cloudpayments',
'ebanx',
'firstdata',
'imsolutions',
'paysafe',
'payture',
'stripe',
'vantiv',
'worldpay',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checkoutltd would be great to be added

];

const NativePayments: {
canMakePayments: boolean,
supportedGateways: Array<string>,
Expand All @@ -18,7 +33,7 @@ const NativePayments: {
getFullWalletAndroid: string => Promise<any>
} = {
supportedGateways: IS_ANDROID
? ['stripe', 'braintree'] // On Android, Payment Gateways are supported out of the gate.
? androidSupportedGateways
: ReactNativePayments.supportedGateways,

canMakePayments(methodData: object) {
Expand Down