Jump to content

[solved] desperately need help with paypal sandbox! Doesnt work :(


Recommended Posts

Guys,

 

Right, i have a prestoshop site and ive got the paypal module installed. Ive gone through the process of setting up the API etc so thats all working in 'live mode', although if i checkout and try to login using the same email it says i cant becuase the sellers email address is also the same as the buyers email.

 

So, i then logged into paypals sandbox using my main paypal account. Inside the sandbox i setup another paypal account with a brand new email address. I then enabled TEST mode inside the paypal module.

 

As soon as i enable 'live mode' in the module and try to checkout using paypal i get the following :-

 

Please try to contact the merchant:

  1. PayPal response:
  2. TIMESTAMP -> 2013-08-07T21:19:48Z
  3. L_ERRORCODE0 -> 10002
  4. L_SHORTMESSAGE0 -> Security error
  5. L_LONGMESSAGE0 -> Security header is not valid
  6. L_SEVERITYCODE0 -> Error

Now, I know this has been discussed on this forum previously but nobody has been able to answer any of the previous threads. So theres your challenge (Vekia.........where ARE you mate?)

 

Does anyone know why it works in LIVE mode (although it still wont let me login using the 2nd sandbox paypal account) and doesnt bring up the above error?

 

But yet as soon as i enable test mode i get the above error as soon as i checkout using paypal? must be something simple surely?

 

the reason I wanted to use SANDBOX is so that I could test a full transaction from start to finish. I assume you should be able to login using your sandbox paypal account and make a payment which isnt a real transaction?

 

Appreciate any input guys and thanks

Edited by vekia (see edit history)
Link to comment
Share on other sites

Hi guys,

Yes Id thought of that :) Yes you are right, the API credentials that are currently in the module ARE from my original paypal account.

 

The problem is.......when i click on the "Get my API credentials" and try to login using my paypal sandbox account, it wont let me? It's like that account doesnt exist?

 

Or am i missing something here? lol

 

Here look at this guys to show you what im seeing inside sandbox.See notes on the image :)

 

2uiv.jpg

Link to comment
Share on other sites

guys, with regards having to use new API credentials for the sandbox account, are you sure thats right?

 

The only reason I wanted a sandbox account was so that I could pretend i was a customer, add an item to my basket and then go through the paypal checkout and login to paypal using the sandbox paypal account that id set up and then make a payment from that sandbox account into my actual paypal account to see if it worked.

 

Again, am i missing the point here?

Link to comment
Share on other sites

Thansk for that Ben but like i said mate (having thought about it) I dont want to accept payments INTO the sandbox account.........i want to be able to login (as if i was a customer) and pay using that paypal sandbox account.

 

So surely i dont need to alter the API credentials inside the module do i?

Link to comment
Share on other sites

Hi, no problem. I hope I can help clear things up. You can not use your Production API Credentials for if Sandbox mode is active to test an order. You will need to have Test Sandbox API credentials.

 

:)

 

You wont be accepting payments, but on a sandbox account, it will seem like it. You need Test Sandbox API Credentials, and I believe in order to have that you need to have a Developer account with PayPal

Link to comment
Share on other sites

Right guys, im slowly getting there!!! Bare with me PLEASE :)

 

Ok, so, ive setup both a developer account and also paypal sandbox account. Inside my 'developer' site I have 3 accounts now following advice from this site https://developer.paypal.com/webapps/developer/docs/classic/lifecycle/ug_sandbox/#manage

 

you can see the accounts i have here :- The paullewis-facilitator accounts is automatically created for you when you setup a sandbox premier or personal account.

 

z3at.jpg

 

So, the API credentials I am now using in my shop are the ones for my sandbox business account ([email protected] and I have TEST mode enabled in my module and its now working! It's stopped bringing up that timestamp error that it was before.

 

So, I add a few items to my cart and i go through the checkout process until i get to 'pay by paypal' and I click that. It then takes me to the paypal login screen where i can login using an existing account or as a guest.

 

If I choose to login using my PREMIER account (paul16442@gmail) it then asks me to 'Link a card' and unless I put in some legitimate card detaisl it wont let me proceed.

 

If i choose to pay as a guest instead then everything is cool, becuase i obviously dont need to login using paypal account at all so thats fine.

 

To be honest, I'm a bit lost now gentleman :(

 

I'm not sure, despite setting everything up, how i go about goign through my checkout process, loging into a paypal account and making a fake payment into my facilitator paypal account as though i was a guess.

 

any ideas please? sorry lads, all this is totally new to me and its the first time ive used prestashop so its taking some organising!

Link to comment
Share on other sites

Update guys!

 

FINALLY! I think ive got it working! YEEEEEEE HAAAAAAAAAA! lol (see below though pls)

 

I've just setup a new sandbox account and set it up as a 'Personal' / 'buyer' account and added a fake balance of £5000. I then went to my shop, went through the checkout process and it worked. I then checked my sandbox notifications for my main account and can see the notification to tell me that someone made a payment. I also checked the balance of the paypal account i used to make the payment and the balance of £5000 had been reduced by £21.99 as if they had paid using that account.

 

So, I have only one question right now guys! lol

 

The paypal account I used to pay for the goods has a paypal balance of £5000. BUT when i login (at the end of the checkout) I only have the option to "pay using paypal balance". In other words I cant pay by credit card, despite the fact that if i click on 'profile' for the account i used to pay with.....it does have a credit card associated with it. although its obviously a bogus one that was added automatically.

 

So how can i get it so that when i pay using this sandbox account, it also gives me the option to pay using card?

 

Thanks again for being patient guys, really appreciate the work you put into helping others out :)

Edited by dazlia (see edit history)
  • Like 1
Link to comment
Share on other sites

Update guys!

 

FINALLY! I think ive got it working! YEEEEEEE HAAAAAAAAAA! lol (see below though pls)

 

I've just setup a new sandbox account and set it up as a 'Personal' / 'buyer' account and added a fake balance of £5000. I then went to my shop, went through the checkout process and it worked. I then checked my sandbox notifications for my main account and can see the notification to tell me that someone made a payment. I also checked the balance of the paypal account i used to make the payment and the balance of £5000 had been reduced by £21.99 as if they had paid using that account.

 

So, I have only one question right now guys! lol

 

The paypal account I used to pay for the goods has a paypal balance of £5000. BUT when i login (at the end of the checkout) I only have the option to "pay using paypal balance". In other words I cant pay by credit card, despite the fact that if i click on 'profile' for the account i used to pay with.....it does have a credit card associated with it. although its obviously a bogus one that was added automatically.

 

So how can i get it so that when i pay using this sandbox account, it also gives me the option to pay using card?

 

Thanks again for being patient guys, really appreciate the work you put into helping others out :)

 

What PayPal version are you using? If you are using the PayPal for USA UK and Canada then you may need to select a different setting for your configuration.

Link to comment
Share on other sites

i think that we can mark this thread as [solved] and change the topic a bit, we have a nice step by step tutorial here related to creating own paypal sandbox for test purposes in prestashop

 

don't you think Benjamin?

Link to comment
Share on other sites

  • 2 years later...
Guest locen

Hi, in sandbox mode is it possible that i receive "awaiting paypal payment"?

paypal version 3.10.9 

shop version 1.6.0.9

 

thanks :)

Edited by locen (see edit history)
Link to comment
Share on other sites

  • 5 months later...

bonjour,
je suis bloqué depuis plusieurs jours avec un problème Paypal.
j'ai intégré le module PayPal v3.11.1 sur mon site développé avec prestashop 1.6.1.5
je suis en mode test sous localhost , j'ai créé les comptes fictifs perso et business sur la sandbox.
j'ai renseigné les codes API du compte business
mais quand j'effectue un achat avec Paypal j'ai le message suivant :

Error occurred:
Veuillez contacter le marchant:
<b>PayPal response:</b>

je suis sous Apache/2.2.29 (Unix) mod_wsgi/3.5 Python/2.7.10 PHP/7.0.0 mod_ssl/2.2.29 OpenSSL/0.9.8zg DAV/2 mod_fastcgi/2.4.6 mod_perl/2.0.9 Perl/v5.22.0

est ce que quelqu'un pourrait me venir en aide.
merci bcp

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...