Skip to content

Commit

Permalink
Rapidez v2 support (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jade-GG authored Mar 5, 2024
1 parent 3de4264 commit 2cd272c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": "^8.0|^8.1",
"php": "^8.0|^8.1|^8.2",
"guzzlehttp/guzzle": "^7.2",
"illuminate/support": "^9.0|^10.0",
"rapidez/core": "~0.77|^1.0"
"rapidez/core": "^2.0"
},
"autoload": {
"psr-4": {
Expand Down
6 changes: 3 additions & 3 deletions resources/js/mollie.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
document.addEventListener('turbo:load', () => {
window.app.$on('checkout-credentials-saved', () => {
window.app.magentoCart('get', 'mollie/payment-token').then(response => {
window.app.checkout.mollie = response.data
window.app.checkout.mollie = response
})
});

Expand All @@ -10,10 +10,10 @@ document.addEventListener('turbo:load', () => {
return;
}
window.app.checkout.doNotGoToTheNextStep = true
window.magento.post('mollie/transaction/start', {
window.magentoAPI('post', 'mollie/transaction/start', {
token: window.app.checkout.mollie
}).then(response => {
window.location.replace(response.data)
window.location.replace(response)
})
});
})

0 comments on commit 2cd272c

Please sign in to comment.