Paypal start up testing and managing payment - paypal

I am new to Paypal integration to websites. I just created a sand box test account to try and create buttons.
I am trying to make use of Paypal subscription to my website.
Can anyone give some basic information of how can I test and increase my knowledge on Paypal integration to my website.
Thanks

Well, you are going in the right direction. You would want to sign up for a developer account at developer.paypal.com. Once you have your developer account set up, then you would want to log in and create a test sandbox buyer and sandbox account. You can use these accounts to create test subscription buttons and walk through and sign up for the subscription with your buyer account. This will allow you to test with subscriptions in the sandbox.

Related

How to test a production Paypal button?

I have a simple Paypal payment button:
on production of my e-commerce website. It works. Many customers have already bought items with it.
But now I'd like to see exactly the payment workflow from a buyer's point of view, from the start, until payment successful + IPN mail + auto-redirect to payment-success page, etc.
Paypal sandboxing seems incredibly complex, one has to create a Developer account, then 2 sandbox accounts, a facilitator (?), a buyer one, etc.
It also seems that Paypal duplicates the real content, into a virtual sandbox button, etc. This is really complex.
All I want is to try my already-working production PayPal-button with a single sandbox buyer account. How to do that?
Is there a way to test a production Paypal button with a sandbox account (with, say, 10000€), and to proceed to the payment like would do a real customer?
... instead of having to create 3 accounts (Developer + Buyer SandBox account + Seller SandBox account)
PS: I've read many docs about sandboxing in Paypal docs, but they have very old docs (deprecated), some old docs, some new docs, some very new docs, + some of them in French with different content to English version, etc. I'm totally lost!
Actually you can test payment buttons I'm testing one of those right now.
At first it seems more complex that it needs to be, but all you need to know is that the sandbox system is a different enviroment, so the only way to test a sandbox payment button is a sanbox account.
Go to your developer dashboard, create 2 accounts, 1 for the seller (pick merchant account when creating this one), 1 for the buyer.
Log in to sandbox.paypal.com with the seller, create the button as you already did, set the ipn and all you need. Place the button in your site, now test your new button and when paying log in with the buyer (sandbox account) you previously created.
There's no way to test environment for paypal buttons. I sent a few messages to them asking the same thing. The only way to test that is get int touch with them through your account and tell your test user, then they won't charge you.
Here's a translation I received a few weeks ago:
In this case, the Sandbox environment does not allow payment on PayPal
buttons because there is no sandbox system for buttons, only for email
integration or PayPal account API.
In this case we recommend that we send a URL of the buttons or even
your site already with the buttons registered.
That way any analyst can do the actual payment test for you.
Our test balance is only R $ 50,00 reais, so the buttons can not
exceed this value with product price and freight.

No funds being added to new Paypal Sandbox accounts in Developer Beta

I've added a new Business account and two new Personal accounts in Paypal Developer (the new one), and no funds have been added to the accounts. When I try to use them in my development process by signing in, once I've logged in, Paypal tells me that I need to add a credit card to continue with the payments.
I've also tried confirming the bank account through the sandbox account, and it comes up with the error Sorry - your last action could not be completed.
I can't complete the debug process without funds in the sandbox account, of course. But nothing I try will put any funds into the test accounts.
When you create a Business or Personal account in the Sandbox you have the option for selecting whether or not it has a credit card and bank account added to it. I would recommend selecting them when you create the account or they would need to be manually added and confirmed.
Navigating within a Sandbox account to make changes to it can be difficult and there are a few known issues currently that redirect you to the Live site. Those should be resolved soon.

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
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
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:
Login at developer.paypal.com
Go to Applications tab
Click on the Sandbox accounts on the left hand side
Any sandbox accounts you already created will be listed. Big blue button Create Account to create more
Think of logging in to the sandbox with your real PayPal account as logging into your Sandbox. You do this at http://developer.paypal.com.
Once you are logged into your sandbox in the middle of the screen, click on "continue testing using Sandbox test accounts".
When the next screen comes up you will see a heading of Sandbox Test Accounts and to the far right of that a button to Create Account. Click on this and then you need to create a "Personal" buyer account (your sandbox buyer who you will test with) and a "Business" seller account (your sandbox seller who you will test with).
Set up each one of these as if you were setting up a new Paypal account.
When you have them created fully you will have fictitious bank accounts to work with.
Beyond that, you may wish to check out these tutorials http://www.developphp.com/list_php_video.php where the site goes in-depth with setting up PayPal payments on a website using your own custom, basic shopping cart with a PayPal IPN (instant payment notification). You want to scroll down to the "E-Commerce Website Tutorial...". Lessons 9-20 deal with the cart and accepting PayPal. This may be an older way to do things, but it will help you get a general grounding in working with PayPal IMHO.
You also can visit https://developer.paypal.com/webapps/developer/docs/ At the bottom of the column is a heading "Classic API's" that may provide the documentation you are looking for to move forward.
Good Luck!

Paypal where to set accept digital goods payment in sandbox

I've been trying this for few days. I've created some seller accounts, one of them I created early this year and it was working fine. Then when I return for this project this March, Paypal changed the API from x.com to developer.paypal.com. The old seller accounts were still working fine and can still accept the digital goods payments from the payer accounts that I created recently, however the new seller accounts, with BUSINESS type, suppose to be able to pay and accept payments got some issues. These newly created seller accounts receive the following warning:
You are not signed up to accept payment for digitally delivered goods.
Doing some research with google, I released I have to set the paypal business account for digital goods. But I can't find where to set it from the new paypal developer control panel. Even when I tried to log in to the sandbox version of paypal.com, using the seller accounts I created in the sandbox, I still can't find where I can set it. In my business setup, there are only two options for me, one is Paypal payments pro and other other is "Virtual Terminal". Any idea? Please help....
I've found the way to add express checkout for digital goods in sandbox, but I think Paypal should pay attention to this because the way I used was very clumsy.
First sign in to sandbox and choose a business account to log in to the sandbox by using the url provided in the Application/Sanbox Accounts. Then use the account that you want to set to accept digital goods checkout to log into the sandbox url, it should be www.sandbox.paypal.com/us/home
After logged in, go to my business setup and pay attention to the setup my payment solution. Click the view all products and you will be redirected to a new page. Please note the url now, the "sandbox" is missing. Now click on the express checkout button, or whatever you want to add to the payment solution, you will be redirected again. Now pay attention to the url, insert "sandbox" to the url, e.g www.paypal.com you have to replace it with www.sandbox.paypal.com, the rest of the url remain the same. Then press enter you will be redirected back to the business setup page. Now you can see your payment solution has become express checkout. It is stupid and I hope paypal can let us choose this directly from the control panel in the near future.
An alternative hides in Profile > My selling tools > API access > Update > At the bottom - Enable Express Checkout.
When I later go to My Account > My Business Setup I see: "Your payment solution: PayPal Digital Goods (Express Checkout)"

How to safely test code updates in pages involved in online payment?

I've got a client website in production with both PayPal checkout and PayPal pro credit card payments. I need to update the code sometimes, but I want to be 100% sure that the code works. However I can't test it because I'd have to make a real payment for that.
How do you deal with this?
You can run test transactions against the sandbox box and test the different API calls. You would need to set up a developer account at developer.paypal.com. Then create a couple of test accounts such as a seller account and a buyer account. Generate your API credentials for your test seller account. Then plug those into your code, and make test API calls against that account. You can set up your test accounts to mimic your live accounts.