Skip to content

Commit

Permalink
fix(apple-pay): fix PKPaymentRequest must have valid merchantCapabili…
Browse files Browse the repository at this point in the history
…ties in iOS 12 & 13 #3314

add missing IMerchantCapabilities and ISupportedNetworks types
  • Loading branch information
raychz committed Feb 22, 2020
1 parent 300f75e commit a8eebb9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/@ionic-native/plugins/apple-pay/index.ts
Expand Up @@ -27,6 +27,8 @@ export type ICompleteTransaction = 'Payment status applied.';
export type IUpdateItemsAndShippingStatus =
| 'Updated List Info'
| 'Did you make a payment request?';
export type IMerchantCapabilities = '3ds' | 'credit' | 'debit' | 'emv';
export type ISupportedNetworks = 'visa' | 'amex' | 'discover' | 'masterCard';

export interface IPaymentResponse {
billingNameFirst?: string;
Expand Down Expand Up @@ -84,6 +86,8 @@ export interface IOrder extends IOrderItemsAndShippingMethods {
billingAddressRequirement?: IBillingRequirement | IBillingRequirement[];
shippingAddressRequirement?: IBillingRequirement | IBillingRequirement[];
shippingType?: IShippingType;
merchantCapabilities?: IMerchantCapabilities | IMerchantCapabilities[];
supportedNetworks?: ISupportedNetworks | ISupportedNetworks[];
}

export interface ISelectedShippingContact {
Expand Down

0 comments on commit a8eebb9

Please sign in to comment.