@getopenpay/openpay-js 0.1.19-alpha.c318266 → 0.1.21-alpha.4b7874e

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
@@ -1,3 +1,4 @@
1
+ import { ApplePayOption } from '@stripe/stripe-js/dist/stripe-js/elements/apple-pay';
1
2
  import { PaymentRequest as PaymentRequest_2 } from '@stripe/stripe-js';
2
3
  import { Subject } from 'rxjs';
3
4
  import { z } from 'zod';
@@ -54,6 +55,9 @@ export declare type Config = ElementsFormProps & AllCallbacks;
54
55
  declare type CurrentStatus<T> = InitialStatus | SuccessStatus<T> | ErrorStatus;
55
56
 
56
57
  declare type CustomInitParams = {
58
+ // You can put custom params for your init flows here
59
+
60
+ // For stripe link
57
61
  stripeLink?: {
58
62
  /**
59
63
  * The height of the Stripe Link button. By default, the height of the buttons are 44px.
@@ -340,6 +344,11 @@ declare class LoadedOncePublisher<T> {
340
344
  }
341
345
 
342
346
  declare type OjsContext = {
347
+ /**
348
+ * The secure token for the checkout session.
349
+ */
350
+ checkoutSecureToken: string;
351
+
343
352
  /**
344
353
  * The form element for the OJS form (non-CDE form).
345
354
  */
@@ -428,6 +437,11 @@ declare const OjsFlows = {
428
437
  run: runStripeLinkFlow,
429
438
  },
430
439
 
440
+ // Pockyt
441
+ pockytPaypal: {
442
+ run: runPockytPaypalFlow,
443
+ },
444
+
431
445
  // 👉 Add more flows here
432
446
 
433
447
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -502,6 +516,7 @@ export declare class OpenPayForm {
502
516
  * Runs the common credit card flow
503
517
  */
504
518
  submitCard: () => void;
519
+ generalSubmit: (method: "pockyt-paypal") => void;
505
520
  /**
506
521
  * Alias for submitCard
507
522
  */
@@ -521,6 +536,7 @@ declare type PaymentRequestStartParams = {
521
536
  overridePaymentRequest?: {
522
537
  amount: Amount;
523
538
  pending: boolean;
539
+ stripeApplePay?: ApplePayOption;
524
540
  };
525
541
  };
526
542