Skip to content

Commit

Permalink
Merge pull request #4 from headlesscommerce/fix-return-url
Browse files Browse the repository at this point in the history
fix: return url
  • Loading branch information
bensinca authored Dec 21, 2022
2 parents 241caf2 + f0d1f80 commit 6a5a376
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@headlesscommerce/vsf-magento-stripe",
"version": "1.0.3",
"version": "1.0.4",
"description": "Stripe Payment module for Vue Storefront Magento",
"main": "index.js",
"modules": "index.js",
Expand Down
4 changes: 2 additions & 2 deletions stripe/components/Payment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
// Get client secret from Magento Stripe module
const clientSecretResponse = await getClientSecret(cartId);
elementsOptions.value = { clientSecret: clientSecretResponse };
confirmParams.value = { return_url: '/checkout/thank-you' };
confirmParams.value = { return_url: window.location.origin + '/checkout/thank-you' };
clientSecretStatus.value = true;
});
Expand All @@ -71,7 +71,7 @@
elements,
redirect: 'if_required',
confirmParams: {
return_url: '/checkout/thank-you',
return_url: window.location.origin + '/checkout/thank-you',
payment_method_data: {
billing_details: {
"address": {
Expand Down

0 comments on commit 6a5a376

Please sign in to comment.