PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

Paypal sandbox fault

18 replies to this topic
#1
Omega

    PrestaShop Apprentice

  • Members
  • PipPip
  • 216 posts
I have tried to get paypal to work in sandbox mode, but when the order went through, it says unclaimed in the payment history, yet when I try it live and using my wife's card, everything works ok. Is there a problem with the paypal sand box??

#2
Marghoob Suleman

    PrestaShop Apprentice

  • Members
  • PipPip
  • 134 posts
I am facing same problem.
Now Online (23rd May 2009): Gift Le Lo
Marghoob Suleman
Guys please do not make any test order on my site. You are welcome to visit and shop :)

#3
Paul C

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 1005 posts
You need to configure the sandbox account separately from your live account. Have you modified the settings for automatically accepting and converting currencies in your sandbox account?

It looks like the two accounts are configured differently. Are you testing using your own "home" currency?

Paul
Free Prestashop modules and developer resources

Latest Prestashop Developer articles:
* 1.4 Plugins Revisited – Part 1
* 1.4 Plugins Revisited – Part 2

Latest News:
Prestashop Module and Theme Developers can now Advertise on eCartService.net

#4
Marghoob Suleman

    PrestaShop Apprentice

  • Members
  • PipPip
  • 134 posts
email id is same for both account (live and sandbox). I am using dollar. (Shop in Prestashop default currency)
Now Online (23rd May 2009): Gift Le Lo
Marghoob Suleman
Guys please do not make any test order on my site. You are welcome to visit and shop :)

#5
Paul C

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 1005 posts
The email address is irrelevant. You need to log into the sandbox account you've created and configure it just like you would a live account. The sandbox is a copy of the live system, and there's no link between them. You must create at least two paypal accounts in the sandbox - one for the test seller and one for the test buyer. Once you've done that:

- Log into the sandbox at developer.paypal.com
- Click Test Accounts
- Highlight your test seller account and click the orange "Enter Sandbox Test Site"
- Configure your sellers account

Paul
Free Prestashop modules and developer resources

Latest Prestashop Developer articles:
* 1.4 Plugins Revisited – Part 1
* 1.4 Plugins Revisited – Part 2

Latest News:
Prestashop Module and Theme Developers can now Advertise on eCartService.net

#6
Omega

    PrestaShop Apprentice

  • Members
  • PipPip
  • 216 posts
I have done all that, but im not getting all of the options to configure my account. See screen shot below of what options I have.

Attached Files



#7
Paul C

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 1005 posts
Doesn't look like you've set up a business account? The seller account should be, as you wouldn't be setting up a website to sell things with a personal account. Those options are for a personal account (which you would set up as your test customer).

Paul
Free Prestashop modules and developer resources

Latest Prestashop Developer articles:
* 1.4 Plugins Revisited – Part 1
* 1.4 Plugins Revisited – Part 2

Latest News:
Prestashop Module and Theme Developers can now Advertise on eCartService.net

#8
Omega

    PrestaShop Apprentice

  • Members
  • PipPip
  • 216 posts
Duh.. Should have realised. Thanks Paul

#9
Marghoob Suleman

    PrestaShop Apprentice

  • Members
  • PipPip
  • 134 posts
Hi Paul,

Thanks, I've setup the sandbox account n made a successful payment but admin panel shows "payment error".
Now Online (23rd May 2009): Gift Le Lo
Marghoob Suleman
Guys please do not make any test order on my site. You are welcome to visit and shop :)

#10
Paul C

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 1005 posts
Is it the wrong amount paid by any chance?

That's the most likely problem at the moment, as it seems there's a problem with the official 1.4 module when using different currencies than the default.

Paul
Free Prestashop modules and developer resources

Latest Prestashop Developer articles:
* 1.4 Plugins Revisited – Part 1
* 1.4 Plugins Revisited – Part 2

Latest News:
Prestashop Module and Theme Developers can now Advertise on eCartService.net

#11
Icarus

    PrestaShop Apprentice

  • Members
  • PipPip
  • 118 posts
I am having similar problems for the past two hours, my head hurts!

I have configured two sandbox accounts, one buyer, one premier seller.
When I am buying on Presta, I am redirected to paypal sandbox, where I am able to complete a payment, but then when I click the button that brings me back to presta, I am getting to the order history page, and it says "you havent placed any orders"

Also, the order is not logged in the orders tab.

Any idea what may be the cause?

#12
fx1

    PrestaShop Newbie

  • Members
  • Pip
  • 6 posts
Hi,

I have been trying to set up Paypal Sandbox for 2 days now and I am always getting the same "payment error" with amount of 0 when back to Prestashop after PayPal process. I can read here it's a bug ? When this will work in PS ? Any patch around there ?
I am using a default currency that is not available in PP dashboard, could that be the problem ?

Best regards,
Julien

#13
Icarus

    PrestaShop Apprentice

  • Members
  • PipPip
  • 118 posts
Try it with USD to make sure it is not currency related.
But, I suspect it will not work for you. I havent gotten a solution yet - using the stable PrestaShop build and sandbox paypal is not working.

#14
softpout

    PrestaShop Newbie

  • Members
  • Pip
  • 1 posts
I'm using sandbox in my mobile phone as another option.



Regards,
softpout
Placement financier

#15
Dodika

    PrestaShop Newbie

  • Members
  • Pip
  • 1 posts
браззерс порно онлайн опкончался!!
http://zhestikuljacija.pp.ua
толстые и пожилые порно http://zhest.pp.ua


а вы?

#16
tomerg3

    PrestaShop Superstar

  • US Moderators
  • 5754 posts
The most common problem with the paypal module is that when using Sandbox mode, the orders are not showing up on the shop.

The reason for that is the paypal module is currently set up to create orders only if the response it gets from the paypal site is "Completed", however when running in Sanbox mode, paypal send a response of "Pending".

I have read some documentation about changing the sandbox account to send a "Completed" response, but even after trying that, payments still appeared as pending.



In order to fix that, make the following change in /modules/paypal/validation.php line #80, it will allow for an order with a "Pending" status to go through, but only in sandbox mode



elseif ($_POST['payment_status'] != 'Completed')


Should be changed to

elseif ($_POST['payment_status'] != 'Completed' && (!Configuration::get('PAYPAL_SANDBOX') || $_POST['payment_status'] != 'Pending'))


For more paypal and other prestashop tips see http://www.presto-ch...paypal-problems
Posted Image
For the latest updates discount coupons and new module information follow us on Twitter , Facebook ,and tips on our Blog
Please do not send general questions via PM, that is what the forum is for...

#17
graham99

    PrestaShop Newbie

  • Members
  • Pip
  • 1 posts
I personally do not mind this feature of paypal sandbox. It can get annoying becuase you are not always sure how many orders you have completed due to the sandbox fault where orders do not show up unless they are confirmed "completed" by the first party site. At the end of the month though you still get a check for the right amount of money. The commission does not change or have faults, only the timing of the tracking. Ultimately paypal makes my online business so much simpler and saves me a lot of time.

#18
StickGrinder

    PrestaShop Newbie

  • Members
  • Pip
  • 2 posts
EDIT: I deleted this post since I made a correction to tomerg3's code that had no sense.
Sorry and many thanks to tomerg3!

#19
greanman

    PrestaShop Newbie

  • Members
  • Pip
  • 3 posts
Trawled through all of these forums as my orders weren't being returned into my staging site admin from PayPal Sandbox.
Ended in the realisation that if the staging site is password protected then PayPal can't return the info.
Sometimes its the simplest solution is the answer!!