

Dismissing the Payment Requestĭismissing the Payment Request is as simple as calling the complete method on of the PaymentResponse. const METHOD_DATA = [ = tails įor a list of supported payment processors and how to enable them, see the Add-ons section. This is where we provide our merchant id, define the supported card types and the currency we'll be operating in. We're also required to pass a data object to configures Apple Pay. To enable Apple Pay, we'll define a supportedMethod of apple-pay.

The Payment Method Data is where you defined the forms of payment that you accept. To initialize a Payment Request, you'll need to provide PaymentMethodData and PaymentDetails. Global.PaymentRequest = require('react-native-payments').PaymentRequest Once Apple Pay/Android Pay is enabled in your app, jump into your app's entrypoint and make the PaymentRequest globally available to your app. Google has documentation on how to do this in their Setup Android Pay guide.
