@getopenpay/openpay-js 0.3.14-alpha.8f138b8 → 0.3.15-alpha.72b791a

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -691,6 +691,17 @@ declare const OjsFlows = {
691
691
  init: initAuthnetGooglePayFlow,
692
692
  run: runAuthnetGooglePayFlow,
693
693
  },
694
+
695
+ adyenGooglePay: {
696
+ init: initAdyenGooglePayFlow,
697
+ run: runAdyenGooglePayFlow,
698
+ },
699
+
700
+ adyenApplePay: {
701
+ init: initAdyenApplePayFlow,
702
+ run: runAdyenApplePayFlow,
703
+ },
704
+
694
705
  // 👉 Add more flows here
695
706
 
696
707
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -768,6 +779,14 @@ export declare class OpenPayForm {
768
779
  publisher: LoadedOncePublisher<InitApplePayFlowResult>;
769
780
  initialize: (initParams: InitOjsFlowParams) => Promise<void>;
770
781
  };
782
+ readonly adyenGooglePay: {
783
+ publisher: LoadedOncePublisher<InitGooglePayFlowResult>;
784
+ initialize: (initParams: InitOjsFlowParams) => Promise<void>;
785
+ };
786
+ readonly adyenApplePay: {
787
+ publisher: LoadedOncePublisher<InitApplePayFlowResult>;
788
+ initialize: (initParams: InitOjsFlowParams) => Promise<void>;
789
+ };
771
790
  };
772
791
  private deviceToken;
773
792
  private isSubmitting;
@@ -804,18 +823,6 @@ export declare class OpenPayForm {
804
823
  private checkValidFormInstance;
805
824
  getAvailablePaymentMethods: () => Promise<({
806
825
  name: string;
807
- } | {
808
- processor: PaymentProcessor;
809
- isAvailable: boolean;
810
- isLoading: boolean;
811
- startFlow: (customParams?: ApplePayFlowCustomParams) => Promise<void>;
812
- name: string;
813
- } | {
814
- processor: PaymentProcessor;
815
- isAvailable: boolean;
816
- isLoading: boolean;
817
- startFlow: (customParams?: GooglePayFlowCustomParams) => Promise<void>;
818
- name: string;
819
826
  } | {
820
827
  isAvailable: true;
821
828
  widgetProps: LoopCryptoWidgetProps;
@@ -824,6 +831,12 @@ export declare class OpenPayForm {
824
831
  } | {
825
832
  isAvailable: false;
826
833
  name: string;
834
+ } | {
835
+ processor: PaymentProcessor;
836
+ isAvailable: boolean;
837
+ isLoading: boolean;
838
+ startFlow: (customParams?: ApplePayFlowCustomParams) => Promise<void>;
839
+ name: string;
827
840
  } | {
828
841
  processor: "stripe";
829
842
  isAvailable: true;
@@ -843,6 +856,12 @@ export declare class OpenPayForm {
843
856
  isAvailable: boolean;
844
857
  startFlow: () => Promise<void>;
845
858
  name: string;
859
+ } | {
860
+ processor: PaymentProcessor;
861
+ isAvailable: boolean;
862
+ isLoading: boolean;
863
+ startFlow: (customParams?: GooglePayFlowCustomParams) => Promise<void>;
864
+ name: string;
846
865
  })[]>;
847
866
  generalSubmit: <T extends SubmitMethod>(method: T, settings?: SubmitSettings<T>) => Promise<void>;
848
867
  /**
@@ -862,10 +881,13 @@ export declare class OpenPayForm {
862
881
  declare interface PayInCompleteEvent extends PayinResponse {}
863
882
 
864
883
  declare enum PayInFailed {
884
+ // Create payment method
885
+ METHOD_CREATION_FAILED = 'methodCreationFailed',
865
886
  INSUFFICIENT_BALANCE = 'insufficientBalance',
866
887
  INSUFFICIENT_AUTHORIZATION = 'insufficientAuthorization',
867
888
  SIGNED_MESSAGE_REQUIRED = 'signedMessageRequired',
868
889
  CUSTOMER_CREATION_FAILED = 'customerCreationFailed',
890
+ // Create pay-in
869
891
  PAYMENT_FAILED = 'paymentFailed',
870
892
  TRANSACTION_FAILED = 'transactionFailed',
871
893
  }
@@ -1074,7 +1096,7 @@ declare interface PaymentMethodTokenExchangeRate {
1074
1096
  timestamp: number;
1075
1097
  }
1076
1098
 
1077
- declare const PaymentProcessor = z.enum(['stripe', 'airwallex', 'authorize_net']);
1099
+ declare const PaymentProcessor = z.enum(['stripe', 'airwallex', 'authorize_net', 'adyen']);
1078
1100
 
1079
1101
  declare type PaymentProcessor = z.infer<typeof PaymentProcessor>;
1080
1102
 
@@ -1141,6 +1163,8 @@ declare type ProcessorSpecificSubmitSettings<T extends SubmitMethod = SubmitMeth
1141
1163
  'airwallex-apple-pay': ApplePayFlowCustomParams;
1142
1164
  'authorizenet-google-pay': GooglePayFlowCustomParams;
1143
1165
  'authorizenet-apple-pay': ApplePayFlowCustomParams;
1166
+ 'adyen-google-pay': GooglePayFlowCustomParams;
1167
+ 'adyen-apple-pay': ApplePayFlowCustomParams;
1144
1168
  'loop-crypto': LoopCryptoFlowCustomParams;
1145
1169
  paypal: PaypalFlowCustomParams;
1146
1170
  }[T];
@@ -1173,6 +1197,8 @@ export declare enum SubmitMethods {
1173
1197
  airwallexApplePay = 'airwallex-apple-pay',
1174
1198
  authorizenetGooglePay = 'authorizenet-google-pay',
1175
1199
  authorizenetApplePay = 'authorizenet-apple-pay',
1200
+ adyenGooglePay = 'adyen-google-pay',
1201
+ adyenApplePay = 'adyen-apple-pay',
1176
1202
  loopCrypto = 'loop-crypto',
1177
1203
  paypal = 'paypal',
1178
1204
  }
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { F as e, O as i, l as r, m as s } from "./index-IhVTmqce.js";
1
+ import { F as e, O as i, l as r, m as s } from "./index-t_jj6Thx.js";
2
2
  import "penpal";
3
3
  import "uuid";
4
4
  export {