Returning to shop from PayPal Sandbox

  • Posts: 61
  • Thank you received: 0
13 years 4 months ago #21959

I'm testing the shop using the payPal Sandbox - when I complete the transaction & return to the shop, the items I've paid for are still in the cart. Here are the settings:

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
13 years 4 months ago #21976

You should look at the option "Clean cart when order is" in the checkout tab of the configuration.

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

  • Posts: 61
  • Thank you received: 0
13 years 4 months ago #21985

I have that option set to 'confirmed'. The only other option is 'created' - do I set it to that?

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
13 years 4 months ago #21996

Yes, please try that.

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

  • Posts: 61
  • Thank you received: 0
13 years 3 months ago #22033

I changed it to 'created'. The cart is now emptied when the transaction is complete - unfortunately it also empties the cart if the user cancels the payment and returns to the store.

Last edit: 13 years 3 months ago by Ottmar. Reason: better description

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
13 years 3 months ago #22051

Yes, when you set it to created, the cart is emptied when the order is created, before redirecting to paypal.
When set to confirmed, the cart should only be emptied when redirected to the shop after the payment is successful.

I don't know why it's not the case. Whe is the URL on your browser, once you're redirected to your shop ? normally, you should be redirected to the after_end task of the checkout controller where the cart will be emptied if in the session.

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

  • Posts: 61
  • Thank you received: 0
13 years 3 months ago #22052

When I cancel the payment in PayPal, the URL I'm returned to is: component/hikashop/product/listing

When I pay the URL is:

/index.php?mc_gross=18.00&invoice=22&protection_eligibility=Eligible&address_status=confirmed&item_number1=&payer_id=XYY7DLE2QM4JW&tax=0.00&address_street=XXXXXXXX&payment_date=08%3A32%3A27+Jul+27%2C+2011+PDT&payment_status=Completed&charset=windows-1252&address_zip=SY7+9AH&mc_shipping=0.00&mc_handling=0.00&first_name=Test&mc_fee=0.81&address_country_code=GB&address_name=XXXX+XXXX&notify_version=3.2&custom=&payer_status=verified&business=XXXXXXXXXbiz%40gmail.com&address_country=United+Kingdom&num_cart_items=1&mc_handling1=0.00&address_city=XXXXXXXX&payer_email=XXXXXXXXXXXXXper%40gmail.com&verify_sign=AiPC9BjkCyDFQXbSkoZcgqH3hpacAyg0IuAZ6xqE9TXGrxMaHpyvUxoW&mc_shipping1=0.00&tax1=0.00&payment_type=instant&txn_id=3NJ2696554439192W&last_name=User&receiver_email=XXXXXXXXXXXXXbiz%40gmail.com&item_name1=Total+price&address_state=&payment_fee=&quantity1=1&receiver_id=7VFUL73NMF7QW&txn_type=cart&mc_currency=GBP&mc_gross_1=18.00&residence_country=GB&test_ipn=1&transaction_subject=Shopping+Cart&payment_gross=&merchant_return_link=Return+to+XXXXXXXX's+Test+Store

Only the price is displayed in PayPal, not the products purchased - is this correct??

I've sent you a PM.

Last edit: 13 years 3 months ago by Ottmar.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
13 years 3 months ago #22073

The URL component/hikashop/product/listing is the default redirect URL when the cart is empty.
But that was not your problem right ? The problem is that you still have the products in the cart after the payment is successful right ? What is the URL during the redirect ?

It's normal that you don't see the products details if you didn't turn on the "send details of the order" option in the plugin.

I'll look at the PM.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
13 years 3 months ago #22084

I reverted the option "Clean cart when order is" so that I could see the problem but it's working fine...
You probably though that it was the same cart when it fact is was a previous cart which was attached to your user account which was displayed after your current cart was emptied.
With my account on your website it works great.

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

  • Posts: 61
  • Thank you received: 0
13 years 3 months ago #22097

Thanks for your time - using the settings you left, cleared the server cache, cleared cache & cookies on my PC, when I pay for the items in the cart on PayPal the same items are still in the cart when I return to the site!

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
13 years 3 months ago #22107

Did you try with a new user ?
Did you try with the user account you provided to us ?
Because it should work properly.

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

  • Posts: 61
  • Thank you received: 0
13 years 3 months ago #22111

OK, I've tried (in Firefox 5):

    Created a new user in Joomla admin - bought item - item still in cart after PayPal payment

    Created a new user in Joomla front-end shop - bought item - item still in cart after PayPal payment

    Used the user that I created for you to test - bought item - item still in cart after PayPal payment

I cleared cookie & cache after each test.

I repeated the tests in IE - same results.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
13 years 3 months ago #22142

After more debug, it seems that paypal overrides the parameters in the return URL on your account. Reading on that online, it seems to come from this: www.x.com/docs/DOC-1552
So you apparently have the IPN deactivated on your paypal account. You should try to activate it.
Also, they recommend to try to add the parameter rm=2 when redirecting to paypal in order to avoid that behaviour.
So you should try to add the code:
,"rm"=>"2"
after the line:
"charset" => "utf-8"
in the file plugins/hikashoppayment/paypal.php and then try again. If that doesn't work, please try to look at your paypal settings for the IPN option.

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

  • Posts: 61
  • Thank you received: 0
13 years 3 months ago #22143

Nicolas, thank you again for investigating.

Looking at the IPN settings in the PayPal sandbox, they want me to supply 'IPN handler URL'. Any idea what should this be?

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

  • Posts: 61
  • Thank you received: 0
13 years 3 months ago #22144

OK, I added rm=>2 and it works now. I presume that this is an issue with the sandbox - I hope that when I move it to production this problem will go away.

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

Time to create page: 0.081 seconds
Powered by Kunena Forum