PayPal Express - return URL

  • Posts: 10
  • Thank you received: 0
6 years 7 months ago #275975

Hello,

I have set the PayPal Express plugin and the payment is working as expected, but the only issue we have is return URL. When the payment is completed I am returned to the page from where I was redirected to PayPal with product(s) in cart. Is there a way to clear the cart and have a custom "Thank you" page after successful payment?

Thank you.

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

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
6 years 7 months ago #275994

Hello,

The paypal express plugin is a special plugin which redirect the customer into Paypal so it can use the Paypal checkout system to create its order.
When the customer come back in your website, it should go through a special URL which perform a redirection depending the order creation status.

It can be the "ctrl=order&task=cancel" or "ctrl=checkout&task=after_end" (the URL can be SEF so you should see "order/task-cancel" or "order/cancel" depending how your website is configured).

What is the final URL you got when you come back from Paypal checkout ?

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Last edit: 6 years 7 months ago by Jerome.

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

  • Posts: 10
  • Thank you received: 0
6 years 7 months ago #276050

Thank you for your prompt reply on this matter. Final URL is the page from which I am redirected to PayPal.
For example: If I am on the Checkout first page that contains Cart content and I proceed with the payment, I am redirected to the same page when the payment is successful/complete. My goal is to be redirected to some (custom) page on my site and with empty Cart.

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

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
6 years 7 months ago #276062

Hello,

Please answer to my question and provide us the URL.
You can remove the domain name if you want ; but we need the real and concret information otherwise we won't be able to go further.

Thanks


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 10
  • Thank you received: 0
6 years 7 months ago #276138

Hello,

I have already answered on the question.

Final URL is the page from which I am redirected to PayPal.


That means that I am redirected to any page from which I clicked on PayPal Express button.

URL:
Part of the message is hidden for the guests. Please log in or register to see it.



Part of the message is hidden for the guests. Please log in or register to see it.


Thank you.

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

  • Posts: 4486
  • Thank you received: 609
  • MODERATOR
6 years 7 months ago #276142

Hello,

You have to understand that an Url can pass some parameters, that able us to better understand things :
Ex: www.YourWebsite.com /index.php?option=com_hikashop&ctrl=checkout&task=after_end
=> where you have a structure like this &Key_name=Value and in some case payment platform server may add some parameters.

Awaiting elements from you.

regards

Last edit: 6 years 7 months ago by Philip.

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

  • Posts: 10
  • Thank you received: 0
6 years 7 months ago #276461


Part of the message is hidden for the guests. Please log in or register to see it.

For example, above is the URL from which we were redirected to PayPal Express Checkout page.

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

  • Posts: 10
  • Thank you received: 0
6 years 7 months ago #276506

...and here is the address to which we were returned after successful payment.


Part of the message is hidden for the guests. Please log in or register to see it.

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

  • Posts: 12953
  • Thank you received: 1778
6 years 7 months ago #276475

Hello,

What we actually need is the Final URL in which you are redirected after paying for your order through the PayPal platform.

For example:
- To pay for your order you'll click on the "Pay with PayPal express" button
- You'll then be redirected to the PayPal platform to pay your order
- And then you'll be redirected to your website ==> We want to know how is structured that final URL.

Thank you.

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

  • Posts: 10
  • Thank you received: 0
6 years 7 months ago #276548

Final URL is: index.php?option=com_hikashop&ctrl=checkout&task=after_end&Itemid=197&order_id=33

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

  • Posts: 4486
  • Thank you received: 609
  • MODERATOR
6 years 7 months ago #276580

Hello,

Now I understand fully the situation, here my idea in order to have what you asking for "have a custom thank you page" :
1°) Let your "Return url" option in your Paypal Express specific configuration empty.
=> By doing this, you will be automatically redirect to the generic thank you page.
2°) Custom the generic HikaShop thank you page by creating an override view
=> See this tutorial in order to process the override on " after_end" view.
Note : This will required some php knowledge.

Hope this will fit your needs.

Regards

Last edit: 6 years 7 months ago by Philip.

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

  • Posts: 10
  • Thank you received: 0
6 years 7 months ago #276732

Thank you for the explanation on that matter. We have the option to enter or leave empty the custom URL field in PayPal API and that is not an issue. Main issue is to have empty cart after successful payment and return from PayPal page to the site.

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

  • Posts: 4486
  • Thank you received: 609
  • MODERATOR
6 years 7 months ago #276790

Hello,

You mean that when your customer go back from Paypal the cart isn't empty ?...
The fact to let, the return url plugin option empty was to trigger the automatic redirection to after_end view, that you can custom via an override, in order to have a custom view as you requested.
Did you try to see what happened when you let this input empty ? Does this empty the cart ?

If that not empty the cart, can you provide a step by step procedure in order to try to reproduce your cart issue.
Awaiting news from you.

Regards

Last edit: 6 years 7 months ago by Philip.

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

  • Posts: 10
  • Thank you received: 0
6 years 7 months ago #276870

Here is the setting for PayPal Express plugin. I will provide you with the all checkout steps as soon as possible.

Attachments:

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

  • Posts: 10
  • Thank you received: 0
6 years 6 months ago #277134

Hello,

Sorry for the late reply. Attached are the screenshots for every page in buy and checkout process. Every page is marked with number (1, 2, 3,... 8.)

Last edit: 6 years 6 months ago by vasx. Reason: emoticon is inserted instead of number 8

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

  • Posts: 4486
  • Thank you received: 609
  • MODERATOR
6 years 6 months ago #277155

Hello,

I just analysed the Paypal Express in order to see the root issue, and right now I don't understand how you can be back on the checkout... Where did you get your Paypal Express plugin ?

Regards

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

  • Posts: 10
  • Thank you received: 0
6 years 6 months ago #277221

Hello,

I don't understand your question. :) PayPal Plugin is included in HikaShop.

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

  • Posts: 4486
  • Thank you received: 609
  • MODERATOR
6 years 6 months ago #277241

Hello,

I just want to confirm that this is the default HikaShop Paypal Express plugin as I'm unable to understand how you can have this kind of result.
And there is something more, I don't understand in this screenshot :



I don't know how this parameters can be here, and especially if you leave the Return Url input empty in the your payment configuration...
Did you set it in your Paypal account ?... Does this tell you something ?
Awaiting news from you

Regards

Attachments:
Last edit: 6 years 6 months ago by Philip.

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

  • Posts: 34
  • Thank you received: 2
4 years 10 months ago #306274

Hi, I have the same question.

I just enable paypal express check out from hikashop plugin.

I am using sandbox to proceed with the payment but it return to an empty page.

This is the return-url > www.example.com/?option=com_hikashop&ctr...order_token=b1uIunV9

I have leave the return-url empty.



What is the problem?

I would like it to return to overview page of the order by customer.

Hope to hear from you soon.

Kind regards,
Jern

Attachments:

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
4 years 10 months ago #306281

Hi,

Is the page completely blank or only the main area ?
If it's only the main area, then it means that your template is not displaying the messages added by HikaShop.
HikaShop uses the core Joomla messaging system to display messages on your website so if you don't see any message when you don't enter correct information during the checkout process, that's probably because your Joomla template does not contain the tag to display Joomla messages: <jdoc:include type="message" />

Or sometimes, your template has an option to turn that display off. So first, check about such option in your template options screen and turn it on.
If you don't find it, please edit the index.php file from your template and make sure the tag <jdoc:include type="message" /> is added to it.
If not, please add it just before the tag <jdoc:include type="component" />
This tag should already be present in all templates.

If the page is completely blank, it means that there is a fatal error during the processing of that page. In that case, please activate the "error reporting" and "debug mode" settings of the Joomla configuration and try again. You should then get some error message on that blank page which will help us understand what's going on. Also, in that case, please provide the version number of your HikaShop.

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

Time to create page: 0.135 seconds
Powered by Kunena Forum