@aigens/aigens-sdk-applepay
v0.5.0
Published
Aigens SDK Applepay
Downloads
167
Readme
@aigens/aigens-sdk-applepay
Aigens SDK Applepay
Install
npm install @aigens/aigens-sdk-applepay
npx cap sync
API
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>
| Param | Type |
| ------------- | ------------------------------- |
| options
| { value: string; } |
Returns: Promise<{ value: string; }>
isAvailable(...)
isAvailable(options: { appleCardType: string[]; }) => Promise<AppleAvailableResult>
| Param | Type |
| ------------- | ----------------------------------------- |
| options
| { appleCardType: string[]; } |
Returns: Promise<AppleAvailableResult>
makePaymentRequest(...)
makePaymentRequest(options: { options: CreateApplePayOption; }) => Promise<ApplePayResultInterface>
| Param | Type |
| ------------- | ----------------------------------------------------------------------------------- |
| options
| { options: CreateApplePayOption; } |
Returns: Promise<ApplePayResultInterface>
completeLastTransaction(...)
completeLastTransaction(options: { options: ApplepayCompleteTransactionOption; }) => Promise<void>
| Param | Type |
| ------------- | ------------------------------------------------------------------------------------------------------------- |
| options
| { options: ApplepayCompleteTransactionOption; } |
Interfaces
AppleAvailableResult
| Prop | Type |
| ------------- | -------------------- |
| result
| boolean |
| message
| string |
ApplePayResultInterface
| Prop | Type |
| ------------------------------ | ------------------------------------------------------------- |
| paymentData
| string |
| transactionIdentifier
| string |
| paymentMethodDisplayName
| string |
| paymentMethodNetwork
| string |
| paymentMethodTypeCard
| ApplepayCardType |
CreateApplePayOption
| 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
| Prop | Type |
| -------------------------------- | ----------------------------------------------------------------------- |
| paymentAuthorizationStatus
| ApplePayCompleteEvent |
Enums
ApplepayCardType
| Members | Value |
| ------------- | ---------------------- |
| Unknown
| "unknown" |
| Debit
| "debit" |
| Credit
| "credit" |
| Prepaid
| "prepaid" |
| Store
| "store" |
| EMoney
| "eMoney" |
| Error
| "error" |
ApplePayCompleteEvent
| 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" |