capacitor-apple-pay-plugin
A Capacitor plugin for Apple Pay
npm install capacitor-apple-pay-plugin
npx cap sync
canMakePayments() => Promise<{ isPayment: boolean; }>
Returns: Promise<{ isPayment: boolean; }>
canMakePayments(options: CanMakePaymentsNetworks) => Promise<{ isPayment: boolean; }>
Returns: Promise<{ isPayment: boolean; }>
makePaymentRequest(request: PaymentRequest) => Promise<PaymentResponse>
Returns: Promise<PaymentResponse>
completeLastTransaction(...)
completeLastTransaction(options: { status: string; }) => Promise<void>
Param |
Type |
options |
{ status: string; } |
Prop |
Type |
usingNetworks |
PaymentNetwork[] |
capabilities |
MerchantCapability[] |
Prop |
Type |
token |
{ paymentData?: string; transactionIdentifier: string; paymentMethod: { displayName?: string; secureElementPass?: { deviceAccountNumberSuffix: string; deviceAccountIdentifier: string; primaryAccountIdentifier: string; primaryAccountNumberSuffix: string; devicePassIdentifier?: string; pairedTerminalIdentifier?: string; }; }; } |
Prop |
Type |
merchantIdentifier |
string |
countryCode |
string |
currencyCode |
string |
supportedCountries |
string[] |
supportedNetworks |
PaymentNetwork[] |
paymentSummaryItems |
PaymentSummaryItem[] |
requiredShippingContactFields |
ContactField[] |
requiredBillingContactFields |
ContactField[] |
merchantCapabilities |
MerchantCapability[] |
billingContact |
PaymentContact |
shippingContact |
PaymentContact |
Prop |
Type |
emailAddress |
string |
phoneNumber |
string |
name |
PersonNameComponents |
postalAddress |
{ street?: string; city?: string; postalCode?: string; country?: string; isoCountryCode?: string; subAdministrativeArea?: string; subLocality?: string; } |
Prop |
Type |
familyName |
string |
givenName |
string |
namePrefix |
string |
middleName |
string |
nameSuffix |
string |
nickname |
string |
phoneticRepresentation |
PersonNameComponents |
'masterCard' | 'visa' | 'amex' | 'quicPay' | 'chinaUnionPay' | 'discover' | 'interac' | 'privateLabel'
'capability3DS' | 'capabilityCredit' | 'capabilityDebit' | 'capabilityEMV'
'pending' | 'final'
'emailAddress' | 'name' | 'phoneNumber' | 'phoneticName' | 'postalAddress'