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