forked from sorokin0andrey/react-native-apay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
26 lines (21 loc) · 845 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
export type APayAllowedCardNetworkType = "amex" | "mastercard"| "visa" | "privatelabel" | "chinaunionpay" | "interac" | "jcb" | "suica" | "cartebancaires" | "idcredit" | "quicpay" | "maestro"
export type APayPaymentStatusType = number
export interface APayPaymentSummaryItemType {
label: string
amount: string
}
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 }