@capgo/capacitor-pay
Capacitor plugin to trigger native payments with Apple Pay and Google Pay using a unified JavaScript API.
Documentation
The most complete doc is available here: https://capgo.app/docs/plugins/pay/
Compatibility
| Plugin version |
Capacitor compatibility |
Maintained |
| v8.*.* |
v8.*.* |
✅ |
| v7.*.* |
v7.*.* |
On demand |
| v6.*.* |
v6.*.* |
❌ |
| v5.*.* |
v5.*.* |
❌ |
Note: The major version of this plugin follows the major version of Capacitor. Use the version that matches your Capacitor installation (e.g., plugin v8 for Capacitor 8). Only the latest major version is actively maintained.
Install
# Install (choose one)
npm install @capgo/capacitor-pay
pnpm add @capgo/capacitor-pay
yarn add @capgo/capacitor-pay
bun add @capgo/capacitor-pay
# Then sync Capacitor (choose one)
npx cap sync
pnpm exec cap sync
yarn cap sync
bunx cap sync
Platform setup
Before invoking the plugin, complete the native configuration documented in this repository:
- Apple Pay (iOS): see
docs/apple-pay-setup.md for merchant ID creation, certificates, Xcode entitlements, and device testing.
- Google Pay (Android): follow
docs/google-pay-setup.md to configure the business profile, tokenization settings, and runtime JSON payloads.
Finish both guides once per app to unlock the native payment sheets on devices.
Google Pay request and response types are bundled with this plugin, so you do not need to install @types/googlepay unless you also use Google's web JavaScript client elsewhere in your app.
Usage
import { Pay } from '@capgo/capacitor-pay';
// Check availability on the current platform.
const availability = await Pay.isPayAvailable({
apple: {
supportedNetworks: ['visa', 'masterCard', 'amex'],
},
google: {
// Optional: falls back to a basic CARD request if omitted.
isReadyToPayRequest: {
apiVersion: 2,
apiVersionMinor: 0,
allowedPaymentMethods: [
{
type: 'CARD',
parameters: {
allowedAuthMethods: ['PAN_ONLY', 'CRYPTOGRAM_3DS'],
allowedCardNetworks: ['AMEX', 'DISCOVER', 'MASTERCARD', 'VISA'],
},
},
],
},
},
});
if (!availability.available) {
// Surface a friendly message or provide an alternative checkout.
return;
}
if (availability.platform === 'ios') {
const result = await Pay.requestPayment({
apple: {
merchantIdentifier: 'merchant.com.example.app',
countryCode: 'US',
currencyCode: 'USD',
supportedNetworks: ['visa', 'masterCard'],
paymentSummaryItems: [
{ label: 'Example Product', amount: '19.99' },
{ label: 'Tax', amount: '1.60' },
{ label: 'Example Store', amount: '21.59' },
],
requiredShippingContactFields: ['postalAddress', 'name', 'emailAddress'],
},
});
console.log(result.apple?.paymentData);
} else if (availability.platform === 'android') {
const result = await Pay.requestPayment({
google: {
environment: 'test',
paymentDataRequest: {
apiVersion: 2,
apiVersionMinor: 0,
allowedPaymentMethods: [
{
type: 'CARD',
parameters: {
allowedAuthMethods: ['PAN_ONLY', 'CRYPTOGRAM_3DS'],
allowedCardNetworks: ['AMEX', 'DISCOVER', 'MASTERCARD', 'VISA'],
billingAddressRequired: true,
billingAddressParameters: {
format: 'FULL',
},
},
tokenizationSpecification: {
type: 'PAYMENT_GATEWAY',
parameters: {
gateway: 'example',
gatewayMerchantId: 'exampleGatewayMerchantId',
},
},
},
],
merchantInfo: {
merchantId: '01234567890123456789',
merchantName: 'Example Merchant',
},
transactionInfo: {
totalPriceStatus: 'FINAL',
totalPrice: '21.59',
currencyCode: 'USD',
countryCode: 'US',
},
},
},
});
console.log(result.google.paymentData);
// Process the payment token on your backend server here.
}
Recurring payments
Apple Pay has first-class support via recurringPaymentRequest (iOS 16+):
import { Pay } from '@capgo/capacitor-pay';
await Pay.requestPayment({
apple: {
merchantIdentifier: 'merchant.com.example.app',
countryCode: 'US',
currencyCode: 'USD',
supportedNetworks: ['visa', 'masterCard'],
paymentSummaryItems: [
{ label: 'Pro Plan', amount: '9.99' },
{ label: 'Example Store', amount: '9.99' },
],
recurringPaymentRequest: {
paymentDescription: 'Pro Plan Subscription',
managementURL: 'https://example.com/account/subscription',
regularBilling: {
label: 'Pro Plan',
amount: '9.99',
intervalUnit: 'month',
intervalCount: 1,
startDate: Date.now(),
},
},
},
});
Google Pay does not have a dedicated "recurring request" object in PaymentDataRequest. For subscriptions you typically:
- Collect a token once with a normal
paymentDataRequest.
- Store it server-side and create recurring charges with your PSP/gateway (Stripe/Adyen/Braintree/etc).
import { Pay, type GooglePayPaymentDataRequest } from '@capgo/capacitor-pay';
const paymentDataRequest: GooglePayPaymentDataRequest = {
apiVersion: 2,
apiVersionMinor: 0,
allowedPaymentMethods: [
{
type: 'CARD',
parameters: {
allowedAuthMethods: ['PAN_ONLY', 'CRYPTOGRAM_3DS'],
allowedCardNetworks: ['AMEX', 'DISCOVER', 'MASTERCARD', 'VISA'],
},
tokenizationSpecification: {
type: 'PAYMENT_GATEWAY',
parameters: {
gateway: 'example',
gatewayMerchantId: 'exampleGatewayMerchantId',
},
},
},
],
merchantInfo: {
merchantId: '01234567890123456789',
merchantName: 'Example Merchant',
},
transactionInfo: {
totalPriceStatus: 'FINAL',
totalPrice: '9.99',
currencyCode: 'USD',
countryCode: 'US',
},
};
const result = await Pay.requestPayment({
google: {
environment: 'test',
paymentDataRequest,
},
});
// Send `result.google.paymentData` to your backend and use your PSP to start the subscription.
requestPayment() is the completion path on both platforms.
API
isPayAvailable(...)
isPayAvailable(options?: PayAvailabilityOptions | undefined) => Promise<PayAvailabilityResult>
Checks whether native pay is available on the current platform.
On iOS this evaluates Apple Pay, on Android it evaluates Google Pay.
Returns: Promise<PayAvailabilityResult>
requestPayment(...)
requestPayment(options: PayPaymentOptions) => Promise<PayPaymentResult>
Presents the native pay sheet for the current platform.
Provide the Apple Pay configuration on iOS and the Google Pay configuration on Android.
This promise is the completion path on both platforms.
Returns: Promise<PayPaymentResult>
getPluginVersion()
getPluginVersion() => Promise<{ version: string; }>
Get the native Capacitor plugin version
Returns: Promise<{ version: string; }>
Interfaces
PayAvailabilityResult
ApplePayAvailabilityResult
| Prop |
Type |
Description |
canMakePayments |
boolean |
Indicates whether the device can make Apple Pay payments in general. |
canMakePaymentsUsingNetworks |
boolean |
Indicates whether the device can make Apple Pay payments with the supplied networks. |
GooglePayAvailabilityResult
| Prop |
Type |
Description |
isReady |
boolean |
Whether the user is able to provide payment information through the Google Pay payment sheet. |
paymentMethodPresent |
boolean |
The current user's ability to pay with one or more of the payment methods specified in IsReadyToPayRequest.allowedPaymentMethods. This property only exists if IsReadyToPayRequest.existingPaymentMethodRequired was set to true. The property value will always be true if the request is configured for a test environment. |
PayAvailabilityOptions
ApplePayAvailabilityOptions
| Prop |
Type |
Description |
supportedNetworks |
ApplePayNetwork[] |
Optional list of payment networks you intend to use. Passing networks determines the return value of canMakePaymentsUsingNetworks. |
GooglePayAvailabilityOptions
| Prop |
Type |
Description |
environment |
GooglePayEnvironment |
Environment used to construct the Google Payments client. Defaults to 'test'. |
isReadyToPayRequest |
GooglePayIsReadyToPayRequest |
Raw IsReadyToPayRequest JSON as defined by the Google Pay API. Supply the card networks and auth methods you intend to support at runtime. |
GooglePayIsReadyToPayRequest
Self-contained Google Pay request type based on the official request objects and DefinitelyTyped definitions.
The plugin forwards the provided JSON to the native Google Pay SDK on Android, while keeping the type surface local
so consumers do not need to install @types/googlepay.
| Prop |
Type |
Description |
apiVersion |
number |
Google Pay API major version. Use 2 for current integrations. |
apiVersionMinor |
number |
Google Pay API minor version. Use 0 for current integrations. |
allowedPaymentMethods |
GooglePayAllowedPaymentMethod[] |
Payment methods you want to test for readiness. |
existingPaymentMethodRequired |
boolean |
When true, Google Pay also indicates whether an existing matching payment method is present. In the test environment this always resolves to true. |
GooglePayAllowedPaymentMethod
| Prop |
Type |
Description |
type |
GooglePayPaymentMethodType |
Supported payment method type. CARD is the only value currently accepted by Google Pay request objects. |
parameters |
GooglePayCardPaymentMethodParameters |
Parameters that control which cards can be shown and what extra data is collected. |
tokenizationSpecification |
GooglePayTokenizationSpecification |
Tokenization settings for the selected payment method. In Google Pay, this is required for PaymentDataRequest card payment methods, but ignored by IsReadyToPayRequest. |
GooglePayCardPaymentMethodParameters
| Prop |
Type |
Description |
allowedAuthMethods |
GooglePayAuthMethod[] |
Authentication methods your gateway or processor accepts. |
allowedCardNetworks |
GooglePayCardNetwork[] |
Card networks your gateway or processor accepts. |
allowPrepaidCards |
boolean |
Whether prepaid cards are allowed. Defaults to true in Google Pay. |
allowCreditCards |
boolean |
Whether credit cards are allowed. Defaults to true in Google Pay. |
allowedIssuerCountryCodes |
string[] |
Restricts users to cards issued in the provided ISO 3166-1 alpha-2 countries. |
blockedIssuerCountryCodes |
string[] |
Blocks cards issued in the provided ISO 3166-1 alpha-2 countries. This is mutually exclusive with allowedIssuerCountryCodes. |
assuranceDetailsRequired |
boolean |
Whether Google Pay should include assurance details about the selected card. |
billingAddressRequired |
boolean |
Whether a billing address is required from the buyer. |
billingAddressParameters |
GooglePayBillingAddressParameters |
Additional billing-address controls used when billingAddressRequired is true. |
cardNetworkParameters |
GooglePayCardNetworkParameters[] |
Optional network-specific processing parameters for supported networks. |
cvcRequired |
boolean |
Whether the card verification code should be returned in the payment token. This requires Google enablement for your account. |
GooglePayBillingAddressParameters
| Prop |
Type |
Description |
format |
GooglePayBillingAddressFormat |
Billing address format to return when billingAddressRequired is true. Use FULL only when you truly need the extra fields to complete the order. |
phoneNumberRequired |
boolean |
Whether a billing phone number should also be returned. |
GooglePayCardNetworkParameters
| Prop |
Type |
Description |
cardNetwork |
GooglePayCardNetwork |
Card network these network-specific parameters apply to. |
acquirerBin |
string |
Acquiring institution identification code used by some network-specific flows. |
acquirerMerchantId |
string |
Acquirer-assigned merchant identifier used by some network-specific flows. |
GooglePayGatewayTokenizationSpecification
GooglePayPaymentGatewayTokenizationParameters
Tokenization parameters for PAYMENT_GATEWAY tokenization, which sends the payment data to a supported third-party gateway for tokenization and processing.
| Prop |
Type |
Description |
gateway |
string |
Google Pay gateway identifier. |
gatewayMerchantId |
string |
Merchant identifier issued by your payment gateway when required. |
GooglePayDirectTokenizationSpecification
| Prop |
Type |
Description |
type |
'DIRECT' |
Tokenize payment data directly for merchant-side decryption. |
parameters |
GooglePayDirectTokenizationParameters |
Direct tokenization parameters for payment data cryptography. |
GooglePayDirectTokenizationParameters
| Prop |
Type |
Description |
protocolVersion |
string |
Payment data cryptography protocol version. |
publicKey |
string |
Base64-encoded elliptic-curve public key used to encrypt the payment data. |
GooglePayCustomTokenizationSpecification
| Prop |
Type |
Description |
type |
GooglePayTokenizationType |
Tokenization type understood by your Google Pay integration. |
parameters |
Record<string, string> |
Tokenization parameters. Google Pay expects string values. |
ApplePayRequestPaymentResult
| Prop |
Type |
Description |
platform |
'ios' |
Platform that resolved the payment request. |
apple |
ApplePayPaymentResult |
Apple Pay payment payload. |
ApplePayPaymentResult
| Prop |
Type |
Description |
paymentData |
string |
Raw payment token encoded as base64 string. |
paymentString |
string |
Raw payment token JSON string, useful for debugging. |
transactionIdentifier |
string |
Payment transaction identifier. |
paymentMethod |
{ displayName?: string; network?: ApplePayNetwork; type: 'credit' | 'debit' | 'prepaid' | 'store'; } |
|
shippingContact |
ApplePayContact |
|
billingContact |
ApplePayContact |
|
ApplePayContact
| Prop |
Type |
name |
{ givenName?: string; familyName?: string; middleName?: string; namePrefix?: string; nameSuffix?: string; nickname?: string; } |
emailAddress |
string |
phoneNumber |
string |
postalAddress |
{ street?: string; city?: string; state?: string; postalCode?: string; country?: string; isoCountryCode?: string; subAdministrativeArea?: string; subLocality?: string; } |
GooglePayRequestPaymentResult
| Prop |
Type |
Description |
platform |
'android' |
Platform that resolved the payment request. |
google |
GooglePayPaymentResult |
Google Pay payment payload. |
GooglePayPaymentResult
GooglePayPaymentData
| Prop |
Type |
Description |
apiVersion |
number |
Google Pay API major version returned in the response. |
apiVersionMinor |
number |
Google Pay API minor version returned in the response. |
email |
string |
Buyer email address when emailRequired was requested. |
shippingAddress |
GooglePayAddress |
Shipping address when shippingAddressRequired was requested. |
paymentMethodData |
GooglePayPaymentMethodData |
Selected payment method details and tokenized payload. |
offerData |
GooglePayOfferData |
Offer redemption data when an offer was applied. |
shippingOptionData |
GooglePaySelectionOptionData |
Selected shipping option data when shipping options were used. |
GooglePayAddress
| Prop |
Type |
Description |
name |
string |
Recipient or cardholder name. |
address1 |
string |
First address line. |
address2 |
string |
Second address line. |
address3 |
string |
Third address line. |
locality |
string |
City or locality. |
administrativeArea |
string |
State, province, or other administrative area. |
countryCode |
string |
Two-letter ISO 3166-1 alpha-2 country code. |
postalCode |
string |
Postal or ZIP code. |
sortingCode |
string |
Sorting code used in some countries. |
phoneNumber |
string |
Phone number returned when it was requested. |
iso3166AdministrativeArea |
string |
ISO 3166-2 code for the administrative area when FULL-ISO3166 formatting is used. |
GooglePayPaymentMethodData
GooglePayCardInfo
| Prop |
Type |
Description |
assuranceDetails |
GooglePayAssuranceDetails |
Optional assurance details returned when assuranceDetailsRequired was requested. |
cardNetwork |
GooglePayCardNetwork |
Card network for the selected payment method. |
cardDetails |
string |
Card details, typically the last four digits. |
billingAddress |
GooglePayAddress |
Billing address returned when billingAddressRequired was requested. |
cardFundingSource |
GooglePayCardFundingSource |
Funding source for the selected card when available. |
GooglePayAssuranceDetails
| Prop |
Type |
Description |
accountVerified |
boolean |
Whether Google verified account possession for the selected card. |
cardHolderAuthenticated |
boolean |
Whether cardholder authentication or ID&V was completed for the selected card. |
GooglePayPaymentMethodTokenizationData
| Prop |
Type |
Description |
type |
GooglePayTokenizationType |
Tokenization type used for the selected payment method. |
token |
string |
Serialized payment token or gateway payload. |
GooglePayOfferData
| Prop |
Type |
Description |
redemptionCodes |
string[] |
Offer redemption codes applied by the buyer. |
GooglePaySelectionOptionData
| Prop |
Type |
Description |
id |
string |
Identifier of the selected option. |
PayPaymentOptions
ApplePayPaymentOptions
| Prop |
Type |
Description |
merchantIdentifier |
string |
Merchant identifier created in the Apple Developer portal. |
countryCode |
string |
Two-letter ISO 3166 country code. |
currencyCode |
string |
Three-letter ISO 4217 currency code. |
paymentSummaryItems |
ApplePaySummaryItem[] |
Payment summary items displayed in the Apple Pay sheet. |
supportedNetworks |
ApplePayNetwork[] |
Card networks to support. |
merchantCapabilities |
ApplePayMerchantCapability[] |
Merchant payment capabilities. Defaults to ['3DS'] when omitted. |
requiredShippingContactFields |
ApplePayContactField[] |
Contact fields that must be supplied for shipping. |
requiredBillingContactFields |
ApplePayContactField[] |
Contact fields that must be supplied for billing. |
shippingType |
ApplePayShippingType |
Controls the shipping flow presented to the user. |
supportedCountries |
string[] |
Optional ISO 3166 country codes where the merchant is supported. |
applicationData |
string |
Optional opaque application data passed back in the payment token. |
recurringPaymentRequest |
ApplePayRecurringPaymentRequest |
Recurring payment configuration (iOS 16+). |
ApplePaySummaryItem
ApplePayRecurringPaymentRequest
| Prop |
Type |
Description |
paymentDescription |
string |
A description for the recurring payment shown in the Apple Pay sheet. |
regularBilling |
ApplePayRecurringPaymentSummaryItem |
The recurring billing item (for example your subscription). |
managementURL |
string |
URL where the user can manage the recurring payment (cancel, update, etc). |
billingAgreement |
string |
Optional billing agreement text shown to the user. |
tokenNotificationURL |
string |
Optional URL where Apple can send token update notifications. |
trialBilling |
ApplePayRecurringPaymentSummaryItem |
Optional trial billing item (for example a free trial period). |
ApplePayRecurringPaymentSummaryItem
| Prop |
Type |
Description |
intervalUnit |
ApplePayRecurringPaymentIntervalUnit |
Unit of time between recurring payments. |
intervalCount |
number |
Number of intervalUnit units between recurring payments (for example 1 month, 2 weeks). |
startDate |
string | number |
Start date of the recurring period. On supported platforms this may be either: - a number representing milliseconds since Unix epoch, or - a string in a date format accepted by the native implementation (for example an ISO 8601 date-time string or a yyyy-MM-dd date string). |
endDate |
string | number |
End date of the recurring period. On supported platforms this may be either: - a number representing milliseconds since Unix epoch, or - a string in a date format accepted by the native implementation (for example an ISO 8601 date-time string or a yyyy-MM-dd date string). |
GooglePayPaymentOptions
| Prop |
Type |
Description |
environment |
GooglePayEnvironment |
Environment used to construct the Google Payments client. Defaults to 'test'. |
paymentDataRequest |
GooglePayPaymentDataRequest |
Raw PaymentDataRequest JSON as defined by the Google Pay API. Provide transaction details, merchant info, and tokenization parameters. |
GooglePayPaymentDataRequest
Self-contained Google Pay payment request type based on the official request objects and DefinitelyTyped definitions.
The plugin forwards the provided JSON to the native Google Pay SDK on Android, while keeping the type surface local
so consumers do not need to install @types/googlepay.
| Prop |
Type |
Description |
apiVersion |
number |
Google Pay API major version. Use 2 for current integrations. |
apiVersionMinor |
number |
Google Pay API minor version. Use 0 for current integrations. |
merchantInfo |
GooglePayMerchantInfo |
Merchant information displayed in the Google Pay sheet. |
allowedPaymentMethods |
GooglePayAllowedPaymentMethod[] |
Allowed payment method configurations. |
transactionInfo |
GooglePayTransactionInfo |
Transaction details such as amount, currency, and checkout behavior. |
emailRequired |
boolean |
Whether the buyer email address should be returned. |
shippingAddressRequired |
boolean |
Whether a shipping address should be collected. |
shippingAddressParameters |
GooglePayShippingAddressParameters |
Shipping-address restrictions used when shippingAddressRequired is true. |
offerInfo |
GooglePayOfferInfo |
Merchant-provided offers to pre-populate in the Google Pay sheet. This is part of the official web request object and may not be supported by every native Android flow. |
shippingOptionRequired |
boolean |
Whether the Google Pay sheet should collect a shipping option. This is part of the official web request object and is used with dynamic price updates. |
shippingOptionParameters |
GooglePayShippingOptionParameters |
Default shipping options for the Google Pay sheet. This is part of the official web request object and is used with dynamic price updates. |
callbackIntents |
GooglePayCallbackIntent[] |
Callback intents for dynamic price updates and payment authorization on the web. These values are included for completeness with the official Google Pay request object, but the Capacitor plugin does not currently expose the corresponding web callbacks. |
GooglePayMerchantInfo
| Prop |
Type |
Description |
merchantId |
string |
Google merchant identifier. This is required for recognized production web integrations and may also be supplied on Android. |
merchantName |
string |
Merchant name displayed in the Google Pay sheet. |
softwareInfo |
GooglePaySoftwareInfo |
Optional metadata about the software integrating with Google Pay. |
GooglePaySoftwareInfo
| Prop |
Type |
Description |
id |
string |
Identifier for the software integrating with Google Pay, such as your domain name. |
version |
string |
Version of the integrating software. |
GooglePayTransactionInfo
| Prop |
Type |
Description |
transactionId |
string |
Merchant-generated correlation identifier for the transaction. |
currencyCode |
string |
ISO 4217 alphabetic currency code. Google Pay requires this for chargeable payment requests. |
countryCode |
string |
ISO 3166-1 alpha-2 country code where the transaction is processed. This is required for EEA/SCA flows and recommended for country-specific behavior. |
totalPrice |
string |
Total transaction price using an optional decimal precision of two decimal places. |
totalPriceLabel |
string |
Custom total label shown with displayItems. |
totalPriceStatus |
GooglePayTotalPriceStatus |
Status of the total price. |
transactionNote |
string |
Optional transaction note. Some payment methods, such as UPI on web, require this. |
checkoutOption |
GooglePayCheckoutOption |
Controls the submit button label shown in the Google Pay sheet. |
displayItems |
GooglePayDisplayItem[] |
Optional cart line items shown in the Google Pay sheet. |
GooglePayDisplayItem
| Prop |
Type |
Description |
label |
string |
User-visible line-item label. |
type |
GooglePayDisplayItemType |
Category of the line item. |
price |
string |
Monetary value for the item. Google Pay accepts an optional decimal precision of two decimal places. |
status |
GooglePayDisplayItemStatus |
Whether this line item is final or still pending. |
GooglePayShippingAddressParameters
| Prop |
Type |
Description |
allowedCountryCodes |
string[] |
Restricts shipping addresses to the provided ISO 3166-1 alpha-2 country codes. |
phoneNumberRequired |
boolean |
Whether a phone number should be collected with the shipping address. |
format |
GooglePayShippingAddressFormat |
Shipping address format to return when shippingAddressRequired is true. MIN is not a valid value for shipping addresses. |
GooglePayOfferInfo
| Prop |
Type |
Description |
offers |
GooglePayOfferDetail[] |
Merchant-provided offers available for the current order. |
GooglePayOfferDetail
| Prop |
Type |
Description |
redemptionCode |
string |
Redemption code that identifies the offer. |
description |
string |
User-visible description for the offer. |
GooglePayShippingOptionParameters
| Prop |
Type |
Description |
shippingOptions |
GooglePaySelectionOption[] |
Available shipping options presented to the buyer. |
defaultSelectedOptionId |
string |
Identifier of the default selected shipping option. |
GooglePaySelectionOption
| Prop |
Type |
Description |
id |
string |
Unique identifier for the option. |
label |
string |
User-visible label for the option. |
description |
string |
Optional secondary description shown under the label. |
Type Aliases
PayPlatform
'ios' | 'android' | 'web'
ApplePayNetwork
'AmEx' | 'amex' | 'Bancomat' | 'Bancontact' | 'PagoBancomat' | 'CarteBancaire' | 'CarteBancaires' | 'CartesBancaires' | 'ChinaUnionPay' | 'Dankort' | 'Discover' | 'discover' | 'Eftpos' | 'Electron' | 'Elo' | 'girocard' | 'Himyan' | 'Interac' | 'iD' | 'Jaywan' | 'JCB' | 'jcb' | 'mada' | 'Maestro' | 'maestro' | 'MasterCard' | 'masterCard' | 'Meeza' | 'Mir' | 'MyDebit' | 'NAPAS' | 'BankAxept' | 'PostFinanceAG' | 'PrivateLabel' | 'QUICPay' | 'Suica' | 'Visa' | 'visa' | 'VPay' | 'vPay'
GooglePayEnvironment
'test' | 'production'
GooglePayPaymentMethodType
'CARD' | (string & Record<never, never>)
Record
Construct a type with a set of properties K of type T
{
[P in K]: T;
}
GooglePayAuthMethod
'PAN_ONLY' | 'CRYPTOGRAM_3DS' | (string & Record<never, never>)
GooglePayCardNetwork
'AMEX' | 'DISCOVER' | 'ELECTRON' | 'ELO' | 'ELO_DEBIT' | 'INTERAC' | 'JCB' | 'MAESTRO' | 'MASTERCARD' | 'VISA' | (string & Record<never, never>)
GooglePayBillingAddressFormat
'MIN' | 'FULL' | 'FULL-ISO3166' | (string & Record<never, never>)
GooglePayTokenizationSpecification
GooglePayGatewayTokenizationSpecification | GooglePayDirectTokenizationSpecification | GooglePayCustomTokenizationSpecification
GooglePayTokenizationType
'PAYMENT_GATEWAY' | 'DIRECT' | (string & Record<never, never>)
PayPaymentResult
ApplePayRequestPaymentResult | GooglePayRequestPaymentResult
GooglePayCardFundingSource
'UNKNOWN' | 'CREDIT' | 'DEBIT' | 'PREPAID' | (string & Record<never, never>)
ApplePaySummaryItemType
'final' | 'pending'
ApplePayMerchantCapability
'3DS' | 'credit' | 'debit' | 'emv'
ApplePayContactField
'emailAddress' | 'name' | 'phoneNumber' | 'postalAddress'
ApplePayShippingType
'shipping' | 'delivery' | 'servicePickup' | 'storePickup'
ApplePayRecurringPaymentIntervalUnit
'day' | 'week' | 'month' | 'year'
GooglePayTotalPriceStatus
'NOT_CURRENTLY_KNOWN' | 'ESTIMATED' | 'FINAL' | (string & Record<never, never>)
GooglePayCheckoutOption
'DEFAULT' | 'COMPLETE_IMMEDIATE_PURCHASE' | 'CONTINUE_TO_REVIEW' | (string & Record<never, never>)
GooglePayDisplayItemType
'LINE_ITEM' | 'SUBTOTAL' | 'TAX' | 'DISCOUNT' | 'SHIPPING_OPTION' | (string & Record<never, never>)
GooglePayDisplayItemStatus
'FINAL' | 'PENDING' | (string & Record<never, never>)
GooglePayShippingAddressFormat
'FULL' | 'FULL-ISO3166' | (string & Record<never, never>)
GooglePayCallbackIntent
'OFFER' | 'PAYMENT_AUTHORIZATION' | 'SHIPPING_ADDRESS' | 'SHIPPING_OPTION' | 'PAYMENT_METHOD' | (string & Record<never, never>)