ISO 4217 alphabetic currency code.
The SDK accepts Amex, Mastercard, Visa, and Discover for Apple Pay by default. Set this property to enable other card networks, for example: ["JCB", "barcode", "chinaUnionPay"]. A full list of possible networks can be found at https://developer.apple.com/documentation/passkit/pkpaymentnetwork.
The list of items that describe a purchase. For example: total, tax, discount, and grand total.
The list of fields that you need for a shipping contact in order to process the transaction. If you include ContactField.PostalAddress in this array, you must implement the PlatformPayButton component's onShippingContactSelected
callback and call updatePlatformPaySheet
from there.
The list of fields that you need for a billing contact in order to process the transaction.
An array of shipping method objects that describe the supported shipping methods. If provided, you must implement the PlatformPayButton component's onShippingMethodSelected
callback and call updatePlatformPaySheet
from there.
Set the payment capabilities you support. If set, 3DS is required.
An optional value that indicates how to ship purchased items. Defaults to 'Shipping'.
A list of two-letter ISO 3166 country codes for limiting payment to cards from specific countries or regions.
A typical request is for a one-time payment. To support different types of payment requests, include a PaymentRequestType. Only supported on iOS 16 and up.
Use this for a recurring payment, typically a subscription.
A description that you provide of the recurring payment and that Apple Pay displays to the user in the sheet.
A URL to a web page where the user can update or delete the payment method for the recurring payment.
The regular billing cycle for the payment, including start and end dates, an interval, and an interval count.
Same as the billing property, but use this if the purchase has a trial period.
A localized billing agreement that the sheet displays to the user before the user authorizes the payment.
A URL you provide to receive life-cycle notifications from the Apple Pay servers about the Apple Pay merchant token for the recurring payment. For more information about handling merchant token life-cycle notifications, see Receiving and handling merchant token notifications.
Use this for an automatic reload or refill payment, such as a store card top-up.
A description that you provide of the recurring payment and that Apple Pay displays to the user in the sheet.
A URL to a web page where the user can update or delete the payment method for the recurring payment.
A short, localized description of the item.
This is the amount that is automatically applied to the account when the account balance drops below the threshold amount.
The balance an account reaches before you apply the automatic reload amount.
A localized billing agreement that the sheet displays to the user before the user authorizes the payment.
A URL you provide to receive life-cycle notifications from the Apple Pay servers about the Apple Pay merchant token for the recurring payment. For more information about handling merchant token life-cycle notifications, see Receiving and handling merchant token notifications.
Use this to indicate payments for multiple merchants.
Set this value to true to display the coupon code field, or pass the 'couponCode' field to autofill with a coupon code. Defaults to false. If true, you must implement the PlatformPayButton component's onCouponCodeEntered
callback and call updatePlatformPaySheet
from there.
Set this value to autofill with a coupon code. If provided, you must implement the PlatformPayButton component's onCouponCodeEntered
callback and call updatePlatformPaySheet
from there.
Set to true to run in a test environment with relaxed application / merchant requirements. This environment is suggested for early development and for easily testing SDK.
ISO 3166-1 alpha-2 country code where the transaction is processed.
ISO 4217 alphabetic currency code.
Your merchant name, displayed in the Google Pay sheet.
Set to true to request an email address. Defaults to false.
Set to false if you don't support credit cards. Defaults to true.
If true, Google Pay is considered "available" if the customer's Google Pay wallet has an existing payment method. Defaults to false.
Describes the configuration for billing address collection in the Google Pay sheet.
Set to true if billing address is required for payment. Defaults to false.
Set to true if phone number is required for payment. Defaults to false.
Defines what address fields to collect. Defaults to BillingAddressFormat.Min
An optional label to display with the amount. Google Pay may or may not display this label depending on its own internal logic. Defaults to a generic label if none is provided.
An optional amount to display for setup intents. Google Pay may or may not display this amount depending on its own internal logic. Defaults to 0 if none is provided. Provide this value in the currency’s smallest unit.
Describes the configuration for shipping address collection in the Google Pay sheet.
Set to true if shipping address is required for payment. Defaults to false.
Set to true if phone number is required for payment. Defaults to false.
Set of ISO 3166-1 alpha-2 country code values of the countries where shipping is allowed. Defaults to all shipping address countries.
Defines Google Pay behavior. Android only.
Defines Apple Pay behavior. iOS only.
Defines Google Pay behavior. Android only.
Defines Apple Pay behavior. iOS only.
iOS only.
iOS only. Use this type for a payment that occurs in the future, such as a pre-order. Only available on iOS 15 and up, otherwise falls back to ImmediateCartSummaryItem.
The unix timestamp of the date, in the future, of the payment. Measured in seconds.
iOS only. Use this type for payments that will occur immediately.
When creating items for estimates or charges whose final value is not yet known, set this to true.
iOS only. Use this type for payments that occur more than once, such as a subscription. Only available on iOS 15 and up, otherwise falls back to ImmediateCartSummaryItem.
The amount of time – in calendar units such as Day, Month, or Year – that represents a fraction of the total payment interval. For example, if you set the intervalUnit to 'Month' and intervalCount to 3, then the payment interval is three months.
The number of interval units that make up the total payment interval. For example, if you set the intervalUnit to 'Month' and intervalCount to 3, then the payment interval is three months.
The unix timestamp of the start date. Measured in seconds.
The unix timestamp of the end date. Measured in seconds.
iOS only.
A short, localized description.
The cost associated with this shipping option.
When creating items for estimates or charges whose final value is not yet known, set this to true.
A unique identifier for the shipping method.
A user-readable description of the shipping method. For example “Ships in 24 hours.” Don't repeat the content of the 'label' property.
The unix timestamp of the start date of the expected range of delivery or shipping dates for a package, or the time range when an item is available for pickup. Measured in seconds.
The unix timestamp of the end date of the expected range of delivery or shipping dates for a package, or the time range when an item is available for pickup. Measured in seconds.
Android only.
Set to true to run in a test environment with relaxed application / merchant requirements. This environment is suggested for early development and for easily testing SDK. Defaults to false.
If true
, Google Pay is considered ready if the customer's Google Pay wallet
has an existing payment method. Defaults to false.
Generated using TypeDoc
ISO 3166-1 alpha-2 country code where the transaction is processed.