UNPKG

@rnw-community/react-native-payments

Version:

Accept Payments with Apple Pay and Android Pay using the Payment Request API.

18 lines (16 loc) 626 B
// https://developers.google.com/pay/api/android/reference/request-objects#TransactionInfo export interface AndroidTransactionInfo { // This option is only available when totalPriceStatus is set to FINAL. checkoutOption?: 'COMPLETE_IMMEDIATE_PURCHASE' | 'DEFAULT'; countryCode?: string; currencyCode: string; totalPrice: string; totalPriceLabel?: string; totalPriceStatus: 'ESTIMATED' | 'FINAL' | 'NOT_CURRENTLY_KNOWN'; transactionId?: string; } export const defaultAndroidTransactionInfo: AndroidTransactionInfo = { currencyCode: '', totalPriceStatus: 'FINAL', totalPrice: '', };