@aigens/aigens-sdk-applepay
Aigens SDK Applepay
npm install @aigens/aigens-sdk-applepay
npx cap sync
echo(options: { value: string; }) => Promise<{ value: string; }>
Param |
Type |
options |
{ value: string; } |
Returns: Promise<{ value: string; }>
isAvailable(options: { appleCardType: string[]; }) => Promise<AppleAvailableResult>
Param |
Type |
options |
{ appleCardType: string[]; } |
Returns: Promise<AppleAvailableResult>
makePaymentRequest(options: { options: CreateApplePayOption; }) => Promise<ApplePayResultInterface>
Returns: Promise<ApplePayResultInterface>
completeLastTransaction(...)
completeLastTransaction(options: { options: ApplepayCompleteTransactionOption; }) => Promise<void>
Prop |
Type |
result |
boolean |
message |
string |
Prop |
Type |
paymentData |
string |
transactionIdentifier |
string |
paymentMethodDisplayName |
string |
paymentMethodNetwork |
string |
paymentMethodTypeCard |
ApplepayCardType |
Prop |
Type |
appleMerchantIdentifier |
string |
appleCardType |
string[] |
countryCode |
string |
currencyCode |
string |
items |
{ label: string; amount: number; }[] |
shippingMethods |
{ label?: string; amount?: number; identifier?: string; detail?: string; }[] |
billingAddressRequirement |
string |
shippingAddressRequirement |
string |
shippingType |
string |
ApplepayCompleteTransactionOption
Members |
Value |
Unknown |
"unknown" |
Debit |
"debit" |
Credit |
"credit" |
Prepaid |
"prepaid" |
Store |
"store" |
EMoney |
"eMoney" |
Error |
"error" |
Members |
Value |
Success |
"success" |
Failure |
"failure" |
InvalidBillingAddress |
"invalid-billing-address" |
InvalidShippingAddress |
"invalid-shipping-address" |
IailinvalidShippingContacted |
"invalid-shipping-contact" |
RequirePin |
"require-pin" |
IncorrectPin |
"incorrect-pin" |
LockedPin |
"locked-pin" |