@aigens/aigens-sdk-applepay
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

@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"

Dependencies (0)

    Dev Dependencies (14)

    Package Sidebar

    Install

    npm i @aigens/aigens-sdk-applepay

    Weekly Downloads

    33

    Version

    0.5.0

    License

    MIT

    Unpacked Size

    75.5 kB

    Total Files

    27

    Last publish

    Collaborators

    • aigens