Optional
billingPrepopulated billing address.
If you have an up-to-date billing address on file, you can set it here. This billing address appears in the payment sheet. The user can either use the address you specify or select a different address.
Note that a Contact object that represents a billing contact contains information for only the postalAddress property. All other properties in the object are undefined.
Optional
countryThe merchant’s two-letter ISO 3166 country code.
When using Braintree, this field is automatically populated.
Optional
couponThe initial coupon code for the payment request.
Set the value to undefined or the empty string to indicate that there’s no initial coupon.
Optional
currencyThe three-letter ISO 4217 currency code that determines the currency this payment request uses.
When using Braintree, this field is automatically populated.
Payment processing protocols and card types that you support.
The "ThreeDS" and "EMV" values of ApplePayMerchantCapability specify the supported cryptographic payment protocols. At least one of these two values is required.
Check with your payment processors about the cryptographic payment protocols they support. As a general rule, if you want to support China UnionPay cards, you use EMV.
To support cards from other networks—like American Express, Visa, or Mastercard—use ThreeDS.
To filter the types of cards to make available for the transaction, pass the "Credit" and "Debit" values. If neither is passed, all card types will be available.
Optional
merchantApple Pay Merchant ID
When using Braintree, this field is automatically populated.
This value must match one of the merchant identifiers specified by the Merchant IDs Entitlement key in the app’s entitlements.
For more information on adding merchant IDs, see Configure Apple Pay (iOS, watchOS).
Optional
paymentAn array of payment summary item objects that summarize the amount of the payment.
Discussion
A typical transaction includes separate summary items for the order total, shipping cost, tax, and the grand total.
Apple Pay uses the last item in the paymentSummaryItems array as the grand total for the purchase shown in Listing 1. The PKPaymentAuthorizationViewController class displays this item differently than the rest of the summary items. As a result, there are additional requirements placed on both its amount and its label.
Your payment processor might have additional requirements, such as a minimum or maximum payment amount.
In iOS 15 and later you can create three different types of payment summary items:
Note In versions of iOS prior to version 12.0 and watchOS prior to version 5.0, the amount of the grand total must be greater than zero.
Optional
requiredA list of fields that you need for a billing contact in order to process the transaction.
Optional
requiredA list of fields that you need for a shipping contact in order to process the transaction.
Optional
shippingPrepopulated shipping address.
If you have an up-to-date shipping address on file, you can set this property to that address. This shipping address appears in the payment sheet. When the view is presented, the user can either keep the address you specified or enter a different address.
Note that a Contact object that represents a shipping contact contains information for only the postalAddress, emailAddress, and phoneNumber properties. All other properties in the object are undefined.
Optional
shippingList of supported shipping methods for the user to chose from.
paymentRequest.shippingMethods = [{
label: "Free Shipping",
amount: "0.00",
identifier: "free",
detail: "Arrive by July 2"
}, {
label: "Standard Shipping",
amount: "3.29",
identifier: "standard",
detail: "Arrive by June 29"
}, {
label: "Express Shipping",
amount: "24.69",
identifier: "express",
detail: "Ships withing 24h"
}];
Optional
supportedA list of ISO 3166 country codes to limit payments to cards from specific countries or regions.
Optional
supportedThe payment methods that you support.
When using Braintree, this field is automatically populated (so the value is not used).
This property constrains the payment methods that the user can select to fund the payment. For possible values, see ApplePayPaymentNetwork.
In macOS 12.3, iOS 15.4, watchOS 8.5, and Mac Catalyst 15.4 or later, specify payment methods in the order you prefer.
For example, to specify the default network to use for cobadged cards, set the first element in the array to the default network, and alternate networks afterward in the order you prefer.
Apps supporting debit networks should check for regional regulations. For more information, see Complying with Regional Regulations.
Optional
supportsA Boolean value that determines whether the payment sheet displays the coupon code field.
Set the value to true to display the coupon code field.
Request for payment with Apple Pay.
Including information about payment processing capabilities, the payment amount, and shipping information.
Details here: https://developer.apple.com/documentation/passkit/pkpaymentrequest/