0.0.24 • Published 10 months ago

@paulmojicatech/apple-pay v0.0.24

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

apple-pay

Capacitor plugin to integrate Apple Pay into application

Install

npm install @paulmojicatech/apple-pay
npx cap sync

API

echo(...)

echo(options: { value: string; }) => Promise<{ value: string; }>
ParamType
options{ value: string; }

Returns: Promise<{ value: string; }>


canMakePayments()

canMakePayments() => Promise<{ canMakePayments: boolean; }>

Returns: Promise<{ canMakePayments: boolean; }>


showApplePaySheet(...)

showApplePaySheet(options: ApplePayRequestOptions) => Promise<{ success: boolean; }>
ParamType
optionsApplePayRequestOptions

Returns: Promise<{ success: boolean; }>


showInAppPurchaseSheet(...)

showInAppPurchaseSheet(options: { productIdentifiers: string[]; }) => Promise<{ success: boolean; }>
ParamType
options{ productIdentifiers: string[]; }

Returns: Promise<{ success: boolean; }>


addListener(string, ...)

addListener(eventName: string, listenerFunc: ListenerCallback) => Promise<PluginListenerHandle>
ParamType
eventNamestring
listenerFuncListenerCallback

Returns: Promise<PluginListenerHandle>


restoreInAppPurchase()

restoreInAppPurchase() => Promise<{ success: boolean; }>

Returns: Promise<{ success: boolean; }>


Interfaces

ApplePayRequestOptions

PropType
merchantIdstring
countryCodestring
currencyCodestring
supportedNetworksstring[]
merchantCapabilitiesstring[]
paymentSummaryItemsPaymentSummaryItem[]
recurringSummaryItemsRecurrentPaymentSummaryItem[]

PaymentSummaryItem

PropType
labelstring
amountstring

RecurrentPaymentSummaryItem

PropType
startDatestring
intervalUnitRecurringPaymentIntervalUnit
managementURLstring
intervalCountnumber

PluginListenerHandle

PropType
remove() => Promise<void>

Type Aliases

RecurringPaymentIntervalUnit

'day' | 'week' | 'month' | 'year'

ListenerCallback

(err: any, ...args: any[]): void

0.0.24

10 months ago

0.0.21

10 months ago

0.0.16

10 months ago

0.0.15

10 months ago

0.0.11

10 months ago

0.0.9

10 months ago