@rnw-community/react-native-payments
Version:
Accept Payments with Apple Pay and Android Pay using the Payment Request API.
22 lines (20 loc) • 1.49 kB
text/typescript
import type { IOSPKContactField } from '../enum/ios-pk-contact-field.enum';
import type { IosPKMerchantCapability } from '../enum/ios-pk-merchant-capability.enum';
import type { IosPKPaymentNetworksEnum } from '../enum/ios-pk-payment-networks.enum';
// https://developer.apple.com/documentation/passkit/pkpaymentrequest?language=objc
export interface IosPaymentDataRequest {
// https://developer.apple.com/documentation/passkit/pkpaymentrequest/1619246-countrycode?language=objc
countryCode: string;
// https://developer.apple.com/documentation/passkit/pkpaymentrequest/1619248-currencycode?language=objc
currencyCode: string;
// https://developer.apple.com/documentation/passkit/pkpaymentrequest/1619257-merchantcapabilities?language=objc
merchantCapabilities: IosPKMerchantCapability[];
// https://developer.apple.com/documentation/passkit/pkpaymentrequest/1619305-merchantidentifier?language=objc
merchantIdentifier: string;
// https://developer.apple.com/documentation/passkit/pkpaymentrequest/2865928-requiredbillingcontactfields?language=objc
requiredBillingContactFields?: IOSPKContactField[];
// https://developer.apple.com/documentation/passkit/pkpaymentrequest/2865927-requiredshippingcontactfields?language=objc
requiredShippingContactFields?: IOSPKContactField[];
// https://developer.apple.com/documentation/passkit/pkpaymentrequest/1619329-supportednetworks?language=objc
supportedNetworks: IosPKPaymentNetworksEnum[];
}