@bizzsv/bizz-payment 1.5.4-dev → 1.5.6-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.d.ts CHANGED
@@ -23,18 +23,23 @@ 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.
29
31
  */
30
32
  on<E extends keyof PaymentFormEventMap>(event: E, listener: (data: PaymentFormEventMap[E]) => void): void;
31
33
  setup(): Promise<void>;
34
+ private setupMessageHandler;
32
35
  /**
33
36
  * When loading configuration by order (`paymentOrderCode`) or template (`paymentRequestCode`),
34
37
  * the amount is fixed from `amount_cents` and input is locked.
35
38
  */
36
39
  private applyFixedAmountFromOrderTemplate;
37
40
  private renderForm;
41
+ private renderCompletedOrderView;
42
+ private renderCancelledOrderView;
38
43
  private notifyCountriesLoadError;
39
44
  private postMessageToIframe;
40
45
  private resetForm;
@@ -187,6 +192,16 @@ export declare type PaymentFormMessage = {
187
192
  type: 'payment-form:return-initial';
188
193
  } | {
189
194
  type: 'payment-form:ready';
195
+ } | {
196
+ type: 'payment-form:crypto-incomplete';
197
+ title?: string;
198
+ message?: string;
199
+ retryLabel?: string;
200
+ } | {
201
+ type: 'payment-form:crypto-overpaid';
202
+ label?: string;
203
+ } | {
204
+ type: 'payment-form:crypto-retry';
190
205
  };
191
206
 
192
207
  declare interface PaymentFormSizingPayloadEmitter {