Skip to content

Commit

Permalink
fix: paypal on cancel flow (#965)
Browse files Browse the repository at this point in the history
* fix: paypal on cancel flow

* fix: paypal on cancel flow
  • Loading branch information
shanikantsingh committed Sep 7, 2023
1 parent 2e929de commit 9f97b91
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ function _initializeBillingEvents() {
onError: function onError( /* error, component */
) {
paypalTerminatedEarly = false;
$('#dwfrm_billing').trigger('submit');
paymentFromComponent({
cancelTransaction: true,
merchantReference: document.querySelector('#merchantReference').value});
},
onAdditionalDetails: function onAdditionalDetails(state /* , component */) {
paypalTerminatedEarly = false;
Expand Down Expand Up @@ -687,4 +689,4 @@ exports.initAccount = function () {
};
exports.renderGenericComponent = function () {
renderGenericComponent();
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ async function initializeBillingEvents() {
},
onError: (/* error, component */) => {
paypalTerminatedEarly = false;
$('#dwfrm_billing').trigger('submit');
paymentFromComponent({
cancelTransaction: true,
merchantReference: document.querySelector('#merchantReference').value});
},
onAdditionalDetails: (state /* , component */) => {
paypalTerminatedEarly = false;
Expand Down

0 comments on commit 9f97b91

Please sign in to comment.