-
Notifications
You must be signed in to change notification settings - Fork 30
/
index.d.ts
27 lines (22 loc) · 970 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
export type APayAllowedCardNetworkType = "amex" | "masterCard"| "visa" | "privatelabel" | "chinaUnionPay" | "interac" | "jcb" | "suica" | "cartebancaires" | "idcredit" | "quicpay" | "maestro" | "discover" | "cartesBancaires" | "eftpos" | "electron" | "elo" | "girocard" | "mada" | "mir" | "vPay"
export type APayPaymentStatusType = number
export interface APayPaymentSummaryItemType {
label: string
amount: string
pending?: boolean
}
export interface APayRequestDataType {
merchantIdentifier: string
supportedNetworks: APayAllowedCardNetworkType[]
countryCode: string
currencyCode: string
paymentSummaryItems: APayPaymentSummaryItemType[]
}
declare class ApplePay {
static SUCCESS: APayPaymentStatusType
static FAILURE: APayPaymentStatusType
static canMakePayments: boolean
static requestPayment: (requestData: APayRequestDataType) => Promise<string>
static complete: (status: APayPaymentStatusType) => Promise<void>
}
export { ApplePay }