A Capacitor plugin for Apple Pay
npm install capacitor-apple-pay-plugin
npx cap sync
canMakePayments()
canMakePayments(...)
makePaymentRequest(...)
completeLastTransaction(...)
- Interfaces
- Type Aliases
canMakePayments() => Promise<{ isPayment: boolean; }>
Returns: Promise<{ isPayment: boolean; }>
canMakePayments(options: CanMakePaymentsNetworks) => Promise<{ isPayment: boolean; }>
Param | Type |
---|---|
options |
CanMakePaymentsNetworks |
Returns: Promise<{ isPayment: boolean; }>
makePaymentRequest(request: PaymentRequest) => Promise<PaymentResponse>
Param | Type |
---|---|
request |
PaymentRequest |
Returns: Promise<PaymentResponse>
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 |
---|---|
label |
string |
amount |
number |
type |
PaymentSummaryItemType |
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'