Capacitor plugin to integrate Apple Pay into application
npm install @paulmojicatech/apple-pay
npx cap sync
echo(...)
canMakePayments()
showApplePaySheet(...)
showInAppPurchaseSheet(...)
addListener(string, ...)
restoreInAppPurchase()
- Interfaces
- Type Aliases
echo(options: { value: string; }) => Promise<{ value: string; }>
Param | Type |
---|---|
options |
{ value: string; } |
Returns: Promise<{ value: string; }>
canMakePayments() => Promise<{ canMakePayments: boolean; }>
Returns: Promise<{ canMakePayments: boolean; }>
showApplePaySheet(options: ApplePayRequestOptions) => Promise<{ success: boolean; }>
Param | Type |
---|---|
options |
ApplePayRequestOptions |
Returns: Promise<{ success: boolean; }>
showInAppPurchaseSheet(options: { productIdentifiers: string[]; }) => Promise<{ success: boolean; }>
Param | Type |
---|---|
options |
{ productIdentifiers: string[]; } |
Returns: Promise<{ success: boolean; }>
addListener(eventName: string, listenerFunc: ListenerCallback) => Promise<PluginListenerHandle>
Param | Type |
---|---|
eventName |
string |
listenerFunc |
ListenerCallback |
Returns: Promise<PluginListenerHandle>
restoreInAppPurchase() => Promise<{ success: boolean; }>
Returns: Promise<{ success: boolean; }>
Prop | Type |
---|---|
merchantId |
string |
countryCode |
string |
currencyCode |
string |
supportedNetworks |
string[] |
merchantCapabilities |
string[] |
paymentSummaryItems |
PaymentSummaryItem[] |
recurringSummaryItems |
RecurrentPaymentSummaryItem[] |
Prop | Type |
---|---|
label |
string |
amount |
string |
Prop | Type |
---|---|
startDate |
string |
intervalUnit |
RecurringPaymentIntervalUnit |
managementURL |
string |
intervalCount |
number |
Prop | Type |
---|---|
remove |
() => Promise<void> |
'day' | 'week' | 'month' | 'year'
(err: any, ...args: any[]): void