@rnw-community/react-native-payments
Version:
Accept Payments with Apple Pay and Android Pay using the Payment Request API.
34 lines (21 loc) • 1.12 kB
Markdown
Restricts `methodData.data.allowedAuthMethods` on the Android entry to the auth methods Google Pay should accept.
Reach for it only when you need to narrow acceptance below the default.
| Member | Meaning |
| --- | --- |
| `PAN_ONLY` | Accept cards without requiring 3-D Secure cryptogram data. |
| `CRYPTOGRAM_3DS` | Accept cards tokenized with a 3-D Secure cryptogram. |
Both members are the default when `allowedAuthMethods` is omitted from
[`AndroidPaymentMethodDataDataInterface`](./android-payment-method-data.md).
```ts
import { AndroidAllowedAuthMethodsEnum } from '@rnw-community/react-native-payments';
const allowedAuthMethods = [AndroidAllowedAuthMethodsEnum.PAN_ONLY];
```
None — narrowing this list only restricts which cards Google Pay offers; it does not change any other validation.
- [Google Pay API for Android — CardParameters](https://developers.google.com/pay/api/android/reference/request-objects#CardParameters)
- [api/android-payment-method-data.md](./android-payment-method-data.md)