@paypercut/checkout-js 1.1.8 → 1.1.9

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.mjs CHANGED
@@ -87,7 +87,7 @@ class Emitter {
87
87
  * Production configuration (for merchants)
88
88
  */
89
89
  const productionConfig = {
90
- version: "1.1.8",
90
+ version: "1.1.9",
91
91
  defaultCheckoutOrigin: 'https://buy.paypercut.io',
92
92
  defaultApiOrigin: 'https://api.paypercut.io',
93
93
  defaultVaultApiUrl: 'https://api.basistheory.com',
@@ -1906,8 +1906,8 @@ class CheckoutImpl {
1906
1906
  this.emitter.emit(SdkEvent.Loaded);
1907
1907
  break;
1908
1908
  case 'CHECKOUT_SUCCESS':
1909
- const { payment_method = {} } = data;
1910
- this.emitter.emit(SdkEvent.Success, { payment_method });
1909
+ const { payment_method = {}, payment = null } = data;
1910
+ this.emitter.emit(SdkEvent.Success, { payment_method, payment });
1911
1911
  break;
1912
1912
  case 'CHECKOUT_ERROR':
1913
1913
  // Forward error payload (if provided) to SDK consumers