Skip to content

Commit

Permalink
Rapidez v1 checkout-success order data compatibility (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jade-GG authored Oct 20, 2023
1 parent 0787bd7 commit f4231a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"require": {
"php": "^8.0|^8.1",
"illuminate/support": "^9.0|^10.0",
"rapidez/core": "~0.54|^1.0"
"rapidez/core": "^1.0"
},
"config": {
"sort-packages": true
Expand Down
10 changes: 4 additions & 6 deletions resources/js/components/MSPPending.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@
magento.get(`/multisafepay/orders/${orderId}/${token}`).then(response => {
if(['processing', 'success', 'complete'].includes(response.data?.status)) {
this.completed = true;
this.order = {
increment_id: orderId,
payment_method: response.data.payment.method,
shipping_method: response.data.shipping_description,
email: response.data.customer_email,
}
this.order = Object.assign({
sales_order_items: response.data.items,
sales_order_payments: [response.payment],
}, response.data)
} else {
window.setTimeout(this.checkStatus, 2000);
}
Expand Down

0 comments on commit f4231a7

Please sign in to comment.