I have a simple issue here. I have a code thats calling an API to check if a given Paypal email is valid. The api is PayPal's AdapativeAccounts/GetVerifiedStatus, url: https://svcs.sandbox.paypal.com/AdaptiveAccounts/GetVerifiedStatus
If I give it a real paypal email to the sandbox url, it says unregistered. But if I move it to production and use the api's prod url, it works! So, whats the issue here? Should I grab a fake email from PP somewhere and use these data to test the api? That would make sense as Paypal might want to protect somehow the accounts from malicious sandbox users..
anyone knows?
The Sandbox isn't linked to the live site. Each site is completely isolated from the other. Just because an account exists on the live site, it doesn't mean that it exists on the Sandbox (or vice versa).
If you're going to check that an account exists on the Sandbox, you need to create it on the Sandbox first (unless you're trying to check that the account doesn't exist -- in which case, don't create the account). The easiest way is to use the PayPal Developer Portal -- https://developer.paypal.com. Log in with the email address and password for your live PayPal account, then go to Applications->Sandbox accounts->Create Account.
Related
After I finished configuring the Paypal checkout plugin, I continue to proceed checking out, first time I can check out with my account even though the url that Odoo or Paypal lead to was sandbox.paypal.com, but with the second time I check out it don't work anymore though I can still login my account at Paypal.com, it said "Wrong username, password" times after times after I tried to login with my account at the sandbox.paypal.com url. Someone please help me, thanks in advance!
Edit: I found this but I dont know how to get it to work with Odoo Paypal button.
Testing on the Live System
It is a good idea to test on the live system to make sure the switch to the live system doesn't introduce any problems. Some things to consider when testing on live:
You will need access to a Personal account with a credit card linked and a verified Business account.
Switch from the sandbox URL https://www.sandbox.paypal.com/cgi-bin/webscr to the live site URL https://www.paypal.com/cgi-bin/webscr.
Pre-fund the Personal account to avoid incurring charges on the credit card.
Test transactions can be as little as $0.01 USD.
Payments may be refunded resulting in a full fee credit.
It is good practice to log all IPNs received in a log file or database.
If the redirect URL is sandbox.paypal.com, you need to login it by your sandbox account, not live account.
Refer to https://developer.paypal.com/docs/integration/paypal-here/sandbox-testing/managing-sandbox-accounts/ to create a sandbox account or modify existing sandbox account's password.
I'm trying to create Sandbox accounts and many times it says there are issue creating my account, other times it creates but it is unverified... (both cloning the 2 pre-created accounts or creating brand new ones).
Am I doing anything wrong? I need them verified to avoid limits and stuff... and obviously, I won't go through a verification process for a test account.
Any help?
You answered your own question.
You need a paypal account, with your real paypal account you log into the developers sandbox. There you can create test apps and users
It's not your fault, I also noticed the sandbox environment / developer dashboard / account creation process are full of errors.
Some hints:
Don't create test account using the developer dashboard, create directly from www.sandbox.paypal.com and add it to dashboard by clicking the link in "Want to link existing Sandbox Account with your developer account? Click Here and provide credentials of your sandbox account"
As it's a sandbox account, it won't send email to your real email address, instead, after you did Step 1, you can click on the sandbox test account list in developer dashboard, and access the "notifications". Which list the "emails" paypal sent. Be warned most of the emails are garbage as they are based64 encoded HTML, decoding them shows incomplete HTML code. You may try to setup your paypal account so that notification are sent in plain text, not HTML. You will need these email to get your account verified.
Even if your account has no money, try to send some and it should automatically create some for you.
I'm trying to create a billing agreement in my sandbox environment but got this cryptic error:
At this time, we are unable to process your request. Please return to [my] Test Store and try another option.
How would I debug this?
My code so far includes:
Create an API token
Creating a billing plan
Activate the billing plan
Create the billing agreement
Everything works until step 4.
I'm using the code from the REST PHP SDK samples.
This problem was solved here by clearing the cache. I've tried that as well as another newly installed browser, but the problem remains.
Tips?
Edit: Billing agreements are enabled in the app as stated here. It might be specific to Germany, as I am in Germany too.
unfortunately it is specific to Germany:
"Recurring payments cannot be created for buyers in Germany or China. In this case, you can use reference transactions as an alternate solution."
https://developer.paypal.com/webapps/developer/docs/classic/express-checkout/integration-guide/ECRecurringPayments/#limitations
Here is my suggestion:
Login to PayPal. https://www.paypal.com/signin
Go to the Sandbox Test Accounts
https://developer.paypal.com/developer/accounts
Create a new
personal sandbox test account (email address, password, country,
verified, etc). If you see no create button, then you will have to
clone one by clicking on the icon at the right the table row. Just
make sure you are cloning one of type PERSONAL.
Clear the PayPal cookies using your browser settings. (This will log you out of PayPal)
Now, you can run your script and when you are redirected to PayPal for
payment approval you will have to type the credentials of the newly
created personal test account.
In short, what I suggest you do is creating a new personal sandbox test account and clearing your browser cookies.
Good luck
I have an asp.net website that is supposed to allow users to make payments with Paypal. I want to test it with the Paypal sandbox.
So I created a developer/business account at "developer.paypal.com'.
Using this account I created a lot of fake email accounts, some personal, some business, for testing. But now, I want to tell the website to enable IPN, and also, to send IPN notifications to a particular URL. I don't see a place on the site to do that. (I assume this would be in the sandbox site, not in the real site).
Any help is appreciated.
Try enabling it on the account level (log into the sandbox account and set it there). There is an IPN simulator as well.
I have a website that I'm trying to hook paypal up to with a php script. php builds the query string and then submits to https://www.paypal.com/cgi-bin/webscr with the query string attached. I can verify that this works fine. I haven't processed a payment but it directs to PayPal with the correct quantities and prices, etc.
However when I change to https://www.sandbox.paypal.com/cgi-bin/webscr I get an error when I try to process that says there was a problem with the merchants PayPal account.
I have created several test accounts on PayPal sandbox but from what I can tell looking around it seems I need another merchant account in the sandbox? If so, I don't see how to do this. I'm guessing I need to change the "?business=mycode" portion of the query string but I don't know how to figure out what to change it to...
Anyway I looked around a while and can't find the answer, can anyone help or direct me to another post that answers this (I looked but couldn't find it, or at least didn't understand it if I did)?
When changing back from live to sandbox, all you should need to change if using a non hosted button is the URL to reflect the environment that you are trying to test with and the value of the business variable. This can be set to either your email address of the actual test or live seller account or the merchant id. If you have not already created an account for testing. You can do so by going to PayPal's Developer Site, and creating a developer account. Then once you have done this, you can log into the developer account and go to the Applications tab. Once on this page, click the link for sandbox accounts on the left, and create a preconfigured test seller account. This will generate an email address linked to a test account. This will be the email address that you will need to use. If this doesn't work, can you provide the string that you are submitting over to PayPal or the button code that you are using and I will take a look at it.
There is error in API key for sandbox testing in Paypal... It is due to corrupt key generation which is not properly decoded on sandbox server when you send a purchase request.
I tried using following sandbox public credentials and it works fine for me
username: sdk-three_api1.sdk.com
password: QFZCWN5HZM8VBG7Q
key: A-IzJhZZjhg29XQ2qnhapuwxIDzyAZQ92FRP5dqBzVesOkzbdUONzmOU
however I tried several times using the sandbox merchant account that i have created myself.... but was unable to ACK success.