This plugin serves as a wrapper for Apple Pay, facilitating the generation of an Apple Pay token and its subsequent transmission to the backend.
This plugin serves as a wrapper for Apple Pay, facilitating the generation of an Apple Pay token and its subsequent transmission to the backend.
Feel free to open new PRs.. :)
ApplePayShippingContact
.ApplePayShippingMethod
.npm install capacitor-jd-apple-pay
npx cap sync
canMakePayment() => Promise<{ success: boolean; }>
Returns: Promise<{ success: boolean; }>
completePayment(params: ApplePayCompleteRequest) => Promise<void>
Param | Type |
---|---|
params |
ApplePayCompleteRequest |
requestPayment(params: ApplePayPaymentRequest) => Promise<ApplePayResponseRequest>
Param | Type |
---|---|
params |
ApplePayPaymentRequest |
Returns: Promise<ApplePayResponseRequest>
Prop | Type |
---|---|
status |
'success' | 'failure' |
Prop | Type |
---|---|
paymentData |
string |
transactionIdentifier |
string |
Prop | Type |
---|---|
merchantIdentifier |
string |
merchantCapabilities |
ApplePayMerchantCapability[] |
supportedNetworks |
ApplePaySupportedNetworks[] |
total |
ApplePayLineItem |
countryCode |
string |
currencyCode |
string |
'supports3DS' | 'supportsCredit' | 'supportsDebit'
'amex' | 'discover' | 'JCB' | 'masterCard' | 'visa'
{ amount: string; label: string; }