@swirepay-developer/swirepay-payment-sdk 1.0.7 → 1.0.8
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
|
@@ -347,9 +347,9 @@ export class SwirepayGooglePay extends PaypalPaymentMethod {
|
|
|
347
347
|
if (window?.paypal) {
|
|
348
348
|
await window?.paypal?.Googlepay()?.confirmOrder({ orderId, paymentMethodData: paymentData?.paymentMethodData });
|
|
349
349
|
}
|
|
350
|
-
await this.action(resData?.entity?.gid, resData?.entity?.psClientSecret);
|
|
351
|
-
resolve({ orderId, ...
|
|
352
|
-
if (this.successCallback) await this.successCallback({ orderId, ...
|
|
350
|
+
const sucessData = await this.action(resData?.entity?.gid, resData?.entity?.psClientSecret);
|
|
351
|
+
resolve({ orderId, ...sucessData });
|
|
352
|
+
if (this.successCallback) await this.successCallback({ orderId, ...sucessData });
|
|
353
353
|
}
|
|
354
354
|
} catch (err) {
|
|
355
355
|
resolve({ transactionState: "ERROR" });
|
|
@@ -716,10 +716,10 @@ export class SwirepayApplePay extends PaypalPaymentMethod {
|
|
|
716
716
|
billingContact: payment.billingContact,
|
|
717
717
|
});
|
|
718
718
|
|
|
719
|
-
await this.action(resData?.entity?.gid, resData?.entity?.psClientSecret);
|
|
719
|
+
const sucessData = await this.action(resData?.entity?.gid, resData?.entity?.psClientSecret);
|
|
720
720
|
|
|
721
721
|
session.completePayment(window.ApplePaySession.STATUS_SUCCESS);
|
|
722
|
-
resolve({ orderId, ...
|
|
722
|
+
resolve({ orderId, ...sucessData });
|
|
723
723
|
} catch (err) {
|
|
724
724
|
console.error("Apple Pay flow error:", err);
|
|
725
725
|
session.completePayment(window.ApplePaySession.STATUS_FAILURE);
|