@swirepay-developer/swirepay-payment-sdk 1.0.5 → 1.0.7

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/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@swirepay-developer/swirepay-payment-sdk",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "swirepay sdk for apple and google pay",
5
- "main": "paypalWalletPaymentSDK.js",
5
+ "main": "swirepayPaypalWalletPayment.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
8
8
  },
@@ -348,8 +348,8 @@ export class SwirepayGooglePay extends PaypalPaymentMethod {
348
348
  await window?.paypal?.Googlepay()?.confirmOrder({ orderId, paymentMethodData: paymentData?.paymentMethodData });
349
349
  }
350
350
  await this.action(resData?.entity?.gid, resData?.entity?.psClientSecret);
351
- resolve({ transactionState: "SUCCESS" });
352
- if (this.successCallback) await this.successCallback(resData?.entity);
351
+ resolve({ orderId, ...resData });
352
+ if (this.successCallback) await this.successCallback({ orderId, ...resData });
353
353
  }
354
354
  } catch (err) {
355
355
  resolve({ transactionState: "ERROR" });