@getopenpay/openpay-js 0.2.18 → 0.2.21
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 +10 -11
- package/dist/index.es.js +776 -758
- package/dist/index.umd.js +12 -12
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -188,6 +188,7 @@ declare enum ElementTypeEnum {
|
|
|
188
188
|
CARD_NUMBER = 'card-number',
|
|
189
189
|
CARD_EXPIRY = 'card-expiry',
|
|
190
190
|
CARD_CVC = 'card-cvc',
|
|
191
|
+
CDE_BRIDGE = 'cde-bridge',
|
|
191
192
|
}
|
|
192
193
|
|
|
193
194
|
declare type ElementTypeEnumValue = ElementTypeEnum[keyof ElementTypeEnum];
|
|
@@ -495,20 +496,13 @@ declare type LoopCryptoFlowCustomParams =
|
|
|
495
496
|
| {
|
|
496
497
|
customer: Omit<CustomerResponse, 'paymentMethods' | 'merchants' | 'dateCreated'>;
|
|
497
498
|
payin: PayInCompleteEvent;
|
|
498
|
-
// TODO: Move these to nonCdeFormInput prop
|
|
499
|
-
email?: string;
|
|
500
|
-
firstName?: string;
|
|
501
|
-
lastName?: string;
|
|
502
499
|
success: true;
|
|
503
500
|
}
|
|
504
501
|
| {
|
|
505
|
-
|
|
506
|
-
// TODO: Move these to nonCdeFormInput prop
|
|
507
|
-
email?: string;
|
|
508
|
-
firstName?: string;
|
|
509
|
-
lastName?: string;
|
|
502
|
+
failureDetails: PayInFailedEvent;
|
|
510
503
|
success: false;
|
|
511
|
-
}
|
|
504
|
+
}
|
|
505
|
+
| undefined;
|
|
512
506
|
|
|
513
507
|
declare type LoopCryptoWidgetProps = {
|
|
514
508
|
paymentUsdAmount: number;
|
|
@@ -658,7 +652,12 @@ declare type OnCheckoutError = (message: string, errorCode?: string) => void;
|
|
|
658
652
|
|
|
659
653
|
declare type OnCheckoutStarted = () => void;
|
|
660
654
|
|
|
661
|
-
declare type OnCheckoutSuccess = (
|
|
655
|
+
declare type OnCheckoutSuccess = (
|
|
656
|
+
invoiceUrls: string[],
|
|
657
|
+
subscriptionIds: string[],
|
|
658
|
+
customerId: string,
|
|
659
|
+
processorsUsed: string[]
|
|
660
|
+
) => void;
|
|
662
661
|
|
|
663
662
|
declare type OnSetupPaymentMethodSuccess = (paymentMethodId: string) => void;
|
|
664
663
|
|