- Posts: 109
- Thank you received: 1
Redirect following checkout
- dagroupinc
-
Topic Author
- Offline
Less
More
6 years 5 months ago #317279
by dagroupinc
Redirect following checkout was created by dagroupinc
-- HikaShop version -- : 4.2.3
-- Joomla version -- : 3.9.16
-- PHP version -- : 7.2
Where do we configure the URL that a customer is taken to when their purchase is complete?
-- Joomla version -- : 3.9.16
-- PHP version -- : 7.2
Where do we configure the URL that a customer is taken to when their purchase is complete?
Please Log in or Create an account to join the conversation.
6 years 5 months ago #317286
by nicolas
Replied by nicolas on topic Redirect following checkout
Hi,
In the menu System>Payment methods, you can edit your payment methods. In their settings, you should normally have a "return URL" parameter were you can enter such URL.
In the menu System>Payment methods, you can edit your payment methods. In their settings, you should normally have a "return URL" parameter were you can enter such URL.
Please Log in or Create an account to join the conversation.
- dagroupinc
-
Topic Author
- Offline
Less
More
- Posts: 109
- Thank you received: 1
6 years 5 months ago #317312
by dagroupinc
Replied by dagroupinc on topic Redirect following checkout
There isn't a field for return URL.
Please Log in or Create an account to join the conversation.
6 years 5 months ago #317314
by nicolas
Replied by nicolas on topic Redirect following checkout
Hi,
Which payment plugin are you using then ?
Could you provide a screenshot of the settings of the payment method ?
Which payment plugin are you using then ?
Could you provide a screenshot of the settings of the payment method ?
Please Log in or Create an account to join the conversation.
- dagroupinc
-
Topic Author
- Offline
Less
More
- Posts: 109
- Thank you received: 1
6 years 5 months ago #317321
by dagroupinc
Replied by dagroupinc on topic Redirect following checkout
We have had a custom payment plugin made to work with Payroc — see attached.
Please Log in or Create an account to join the conversation.
6 years 5 months ago #317330
by nicolas
Replied by nicolas on topic Redirect following checkout
Hi,
Well, you need to modify the code of that plugin to handle the return like you want.
I can't say how though as I don't know how that plugin was written.
Well, you need to modify the code of that plugin to handle the return like you want.
I can't say how though as I don't know how that plugin was written.
Please Log in or Create an account to join the conversation.
- dagroupinc
-
Topic Author
- Offline
Less
More
- Posts: 109
- Thank you received: 1
6 years 5 months ago #317351
by dagroupinc
Replied by dagroupinc on topic Redirect following checkout
I'll inquire but it seems this should be a core/system level config instead of on a plugin level? Like in System>Checkout>Checkout "Continue Shopping Button's URL" field
Please Log in or Create an account to join the conversation.
6 years 5 months ago #317354
by nicolas
Replied by nicolas on topic Redirect following checkout
Hi,
When you have a payment method "bank transfer" and a payment method "paypal" on your checkout (which is a common example), if you want custom return URLs, you usually want to display something different based on the payment method selected. For the bank transfer, you want to display a page with instructions on how to do the bank transfer, while for the PayPal payment method, you just want to display a thank you message and/or redirect to the order details page.
So that's why we have a system to have the setting at the payment method level.
Also, note that it's the plugin who gives the URL where to return to to the payment gateway. So even if there was a way to do that "globally" for all the payment methods, if the plugin doesn't redirect to a generic URL where HikaShop can take the control of the redirection, that would just be discarded.
So to me, there is a practical and a technical reason for why it's made like that.
When you have a payment method "bank transfer" and a payment method "paypal" on your checkout (which is a common example), if you want custom return URLs, you usually want to display something different based on the payment method selected. For the bank transfer, you want to display a page with instructions on how to do the bank transfer, while for the PayPal payment method, you just want to display a thank you message and/or redirect to the order details page.
So that's why we have a system to have the setting at the payment method level.
Also, note that it's the plugin who gives the URL where to return to to the payment gateway. So even if there was a way to do that "globally" for all the payment methods, if the plugin doesn't redirect to a generic URL where HikaShop can take the control of the redirection, that would just be discarded.
So to me, there is a practical and a technical reason for why it's made like that.
The following user(s) said Thank You: dagroupinc
Please Log in or Create an account to join the conversation.
- dagroupinc
-
Topic Author
- Offline
Less
More
- Posts: 109
- Thank you received: 1
6 years 5 months ago #317392
by dagroupinc
Replied by dagroupinc on topic Redirect following checkout
That makes total sense—thank you.
Please Log in or Create an account to join the conversation.
Time to create page: 0.254 seconds