Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set up a PayPal sandbox "Seller" account, a "Buyer" account and an Application Tutorial

I am trying to set up a Web site which is using PayPal. Unfortunately the PayPal developer site/concept is heavily changed, so all tutorials I found are seem to be useless. For example this (very good) youtube tutorial which is very clear is using not existing pages and functions...

So please try to help me only with up to date information/tutorial.

Please note my questions is not about using API, it is about how to set up an app, and a testing sandbox configuration from the ground.

1) As far as I understand I must have a real PayPal account because dev site uses PayPal account for logon (new). Logged in with this account then I can create sandbox accounts. However I would like to create a "Seller" sandbox account and a "Buyer" sandbox account. (missed I something?) Using the new developer site it is not possible. I can create only one kind of sandbox account. In the referenced video there are two types of sandbox accounts: "seller" and "buyer" in the preconfigured accounts. Or "Seller" simply means Business account?

2) I must have an application id to use the API. Note: I inherited a working legacy code which is using the classic API, so no REST please. In the video (old PayPal dev site) there is a left side menu "API and Payment Card credentials" In the new PayPal dev site no such thing. Instead there is a "My Apps".

I've tried to set up an application. It approved automatically. In its metadata I see a live and a sandbox app id.

What is not clear: To what account is associated this newly created app? I've created it logged in with my real paypal credentials. More: ??? When filling the app creation form there was an input field titled: "Supply Test Account Name and Password". First of all how can I type the name and a password to one input field? Secondly What is it? Maybe if I use this app with its sandbox app id then this account will be the Seller (got the money) and if I change the app id to the live one associated this app, then my real PayPal account got the money?

However my goal was to completely simulate the payment process so

1) Create a Seller sandbox account (got API credentials) 2) Associate an application to that Seller account, and get the app id. 3) Create a buyer sandbox account

4a) Configure my web site with Seller API credentials and sandbox app id 4b) Orchestrate a buy process using my website, PayPal API and the 2 sandbox account

5) Check the Seller and Buyer sandbox account's transactions.

Thanks in advance

like image 865
g.pickardou Avatar asked May 22 '13 14:05

g.pickardou


People also ask

How do I use PayPal sandbox account?

During the test phase, use the sandbox endpoints and your sandbox account details in each PayPal API request that you make. Create and manage your set of sandbox accounts from the sandbox Accounts page. Use the Sandbox test site to review the transactions associated with the calls you make using your sandbox accounts.


2 Answers

Seller account = Business account

Buyer account = Personal account

You probably only need to create one of each in Developer Sandbox Accounts , but there's no limit if your testing requires some more

To obtain the new REST API credentials, create an App in My Apps & Credentials and select the sandbox Business account to use

Legacy APIs: If testing an old integration, you can still get Classic NVP/SOAP credentials for a business account by viewing its "Profile" within your list of sandbox accounts

like image 142
Preston PHX Avatar answered Oct 21 '22 20:10

Preston PHX


Just found myself in the same situation. Like you say it seems to be constantly evolving - not even sure if some of the answers here are still up to date.

Walked through it like this:

  1. Login at developer.paypal.com
  2. Go to Applications tab
  3. Click on the Sandbox accounts on the left hand side
  4. Any sandbox accounts you already created will be listed. Big blue button Create Account to create more

enter image description here

like image 45
hawbsl Avatar answered Oct 21 '22 22:10

hawbsl