Skip to content

Commit

Permalink
Set token and mask again when showing checkout success (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
indykoning authored Nov 7, 2023
1 parent af542a0 commit 7776de8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions resources/js/components/MSPPending.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
<script>
import { mask as useMask } from 'Vendor/rapidez/core/resources/js/stores/useMask'
import { token as useToken } from 'Vendor/rapidez/core/resources/js/stores/useUser'
export default {
props: {
token: {
type: String,
default: useToken.value,
},
mask: {
type: String,
default: useMask.value,
},
},
data() {
return {
completed: false,
Expand Down Expand Up @@ -30,6 +44,9 @@
magento.get(`/multisafepay/orders/${orderId}/${token}`).then(response => {
if(['processing', 'success', 'complete'].includes(response.data?.status)) {
useToken.value = this.token;
useMask.value = this.mask;
this.completed = true;
this.order = Object.assign({
sales_order_items: response.data.items,
Expand Down

0 comments on commit 7776de8

Please sign in to comment.