@getopenpay/openpay-js 0.1.20-alpha.c891c7b → 0.1.21-alpha.b1155fc

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
@@ -55,6 +55,9 @@ export declare type Config = ElementsFormProps & AllCallbacks;
55
55
  declare type CurrentStatus<T> = InitialStatus | SuccessStatus<T> | ErrorStatus;
56
56
 
57
57
  declare type CustomInitParams = {
58
+ // You can put custom params for your init flows here
59
+
60
+ // For stripe link
58
61
  stripeLink?: {
59
62
  /**
60
63
  * The height of the Stripe Link button. By default, the height of the buttons are 44px.
@@ -341,6 +344,11 @@ declare class LoadedOncePublisher<T> {
341
344
  }
342
345
 
343
346
  declare type OjsContext = {
347
+ /**
348
+ * The secure token for the checkout session.
349
+ */
350
+ checkoutSecureToken: string;
351
+
344
352
  /**
345
353
  * The form element for the OJS form (non-CDE form).
346
354
  */
@@ -429,6 +437,11 @@ declare const OjsFlows = {
429
437
  run: runStripeLinkFlow,
430
438
  },
431
439
 
440
+ // Pockyt
441
+ pockytPaypal: {
442
+ run: runPockytPaypalFlow,
443
+ },
444
+
432
445
  // 👉 Add more flows here
433
446
 
434
447
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -503,6 +516,7 @@ export declare class OpenPayForm {
503
516
  * Runs the common credit card flow
504
517
  */
505
518
  submitCard: () => void;
519
+ generalSubmit: (method: "pockyt-paypal") => void;
506
520
  /**
507
521
  * Alias for submitCard
508
522
  */