Redirect following checkout

  • Posts: 109
  • Thank you received: 1
4 years 7 months ago #317279

-- 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?

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
4 years 7 months ago #317286

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.

Please Log in or Create an account to join the conversation.

  • Posts: 109
  • Thank you received: 1
4 years 7 months ago #317312

There isn't a field for return URL.

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
4 years 7 months ago #317314

Hi,

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.

  • Posts: 109
  • Thank you received: 1
4 years 7 months ago #317321

We have had a custom payment plugin made to work with Payroc — see attached.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
4 years 7 months ago #317330

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.

Please Log in or Create an account to join the conversation.

  • Posts: 109
  • Thank you received: 1
4 years 7 months ago #317351

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.

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
4 years 7 months ago #317354

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.

The following user(s) said Thank You: dagroupinc

Please Log in or Create an account to join the conversation.

  • Posts: 109
  • Thank you received: 1
4 years 7 months ago #317392

That makes total sense—thank you.

Please Log in or Create an account to join the conversation.

Time to create page: 0.063 seconds
Powered by Kunena Forum