@bizzsv/bizz-payment 1.5.3-dev → 1.5.5-dev
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.cjs +19 -6
- package/dist/index.d.ts +14 -1
- package/dist/index.global.js +19 -6
- package/dist/index.js +81 -18
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,8 @@ export declare class BizzPaymentForm {
|
|
|
23
23
|
private nakaPollingInterval;
|
|
24
24
|
private pendingAlert;
|
|
25
25
|
private currentCryptoChargeId;
|
|
26
|
+
private isCryptoOverpaid;
|
|
27
|
+
private lastCryptoOverpaidSuccess;
|
|
26
28
|
constructor(config: PaymentFormConfig);
|
|
27
29
|
/**
|
|
28
30
|
* Subscribe to host-side events.
|
|
@@ -30,7 +32,8 @@ export declare class BizzPaymentForm {
|
|
|
30
32
|
on<E extends keyof PaymentFormEventMap>(event: E, listener: (data: PaymentFormEventMap[E]) => void): void;
|
|
31
33
|
setup(): Promise<void>;
|
|
32
34
|
/**
|
|
33
|
-
* When loading configuration by order template (`paymentRequestCode`),
|
|
35
|
+
* When loading configuration by order (`paymentOrderCode`) or template (`paymentRequestCode`),
|
|
36
|
+
* the amount is fixed from `amount_cents` and input is locked.
|
|
34
37
|
*/
|
|
35
38
|
private applyFixedAmountFromOrderTemplate;
|
|
36
39
|
private renderForm;
|
|
@@ -186,6 +189,16 @@ export declare type PaymentFormMessage = {
|
|
|
186
189
|
type: 'payment-form:return-initial';
|
|
187
190
|
} | {
|
|
188
191
|
type: 'payment-form:ready';
|
|
192
|
+
} | {
|
|
193
|
+
type: 'payment-form:crypto-incomplete';
|
|
194
|
+
title?: string;
|
|
195
|
+
message?: string;
|
|
196
|
+
retryLabel?: string;
|
|
197
|
+
} | {
|
|
198
|
+
type: 'payment-form:crypto-overpaid';
|
|
199
|
+
label?: string;
|
|
200
|
+
} | {
|
|
201
|
+
type: 'payment-form:crypto-retry';
|
|
189
202
|
};
|
|
190
203
|
|
|
191
204
|
declare interface PaymentFormSizingPayloadEmitter {
|