apple-pay
Version:
Wrapper for working with Apple Pay payments
19 lines (17 loc) • 686 B
TypeScript
declare type TOptions = {
onValidateMerchant(event: ApplePayJS.ApplePayValidateMerchantEvent): void;
onPaymentAuthorized(event: ApplePayJS.ApplePayPaymentAuthorizedEvent): void;
paymentRequest: ApplePayJS.ApplePayPaymentRequest;
};
declare type TSupportedNetworksVersion = Record<string, number>;
declare enum TStatusCode {
'STATUS_SUCCESS' = 0,
'STATUS_FAILURE' = 1,
'STATUS_INVALID_BILLING_POSTAL_ADDRESS' = 2,
'STATUS_INVALID_SHIPPING_POSTAL_ADDRESS' = 3,
'STATUS_INVALID_SHIPPING_CONTACT' = 4,
'STATUS_PIN_REQUIRED' = 5,
'STATUS_PIN_INCORRECT' = 6,
'STATUS_PIN_LOCKOUT' = 7
}
export { TOptions, TStatusCode, TSupportedNetworksVersion };