Skip to content

Commit

Permalink
Fix typo in javascript resulting failing payment-page payment functio…
Browse files Browse the repository at this point in the history
…nality
  • Loading branch information
Zales0123 committed Aug 31, 2020
1 parent 592f05c commit ddfc5fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/views/payFromPaymentPage.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
method: 'post'
}).then(function(res) {
return res.status === 400 ? window.location.reload() : res.json();
}).then(data => data.orderID);
}).then(data => data.order_id);
},
onApprove: function(data, actions) {
return fetch(completePayPalOrderFromPaymentPageUrl, {
Expand Down

0 comments on commit ddfc5fc

Please sign in to comment.