I am using https://javadoc.io/doc/com.braintreepayments.gateway/braintree-java/latest/com/braintreegateway/BraintreeGateway.html to create a BraintreeGateway object.
I need to update my development and production tokens. If I go to https://developer.paypal.com/developer/applications/ I can see a Generate Sandbox Access Token button on the Sandbox tab, but if I click the Live tab there is no such button - I can see an email under the Live Account heading and if I click on it I can see the live access token with a reset icon next to it. Is resetting the token right now my only option? Am I able to create a new token and phase out the old one safely?
There is only one Braintree access token per account, so for live mode this corresponds to the live PayPal account you signed into https://developer.paypal.com with.
Refreshing an account's access token will replace it with a new one, invalidating the old one -- so the only 'safe' way to do this is to schedule a brief maintenance window in your lowest traffic period.
(For sandbox mode, your developer account allows you to create as many different sandbox business accounts as you want for testing, and so each one can have its own Braintree access token.)
Related
I've created a PayPal app on a new account. I am accepting payments in a sandbox environment using REST API. It's all working. But when it comes to live environment, I need change an account which will receive real payments. Is it possible, or I have to create a PayPal app on that account, which suppose to receive real payments?
Yes, it is possible to use different account for live payments. You will need to login to https://developer.paypal.com with that account's login. Then, create a new REST app or use an existing one if any. On top right corner, there are tabs displaying Sandbox | Live. Select Live. Then, use the client ID and secret for live environment.
Also, make sure that the account has permission to run whatever operation you want to use in live environment. Go to My Account menu on the left side to check it out.
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 am trying to find out how to give a developer the least amount of access they need to my business PayPal account for my app. How should I set this up so I protect my private account information from the developer while allowing them enough access to develop?
They need access to test and develop with the PayPal APIs. I created a sandbox account for the app, I gave the developer the Sandbox ID and API Credentials along with the sandbox test accounts I created.
The developer asked if I could give them the login for my PayPal developer account so they can see the Dashboard for testing and see can transactions. I don't think this is the right way or they could access my bank, and company information.
I have read the PayPal documentation for information about this but can't find much. This guide has the most information I've found but not exactly what I am looking for.
In your account, go to your profile settings and find Manage Users. There you can add a user and select the amount of access they can have. Give them the username and password you make for them, NEVER give your email and password.
To get started using adding users to your account and managing their levels of access, log in to your PayPal account, go to your Profile, and click Manage Users under Account Information.
https://www.paypal.com/cgi-bin/webscr?cmd=p/sell/permissions-outside
Your developer does not need access to your account at all, regular paypal.com or developer.paypal.com.
They would simply login to developer.paypal.com with their own PayPal account and create their own test accounts for use in the sandbox. They can build your app using their own test accounts, and then hand it over to you so that you can simply update the API credentials with your live values and ensure the code is running live instead of against the sandbox at that point.
developer from India can create Paypal sandbox account as i am also from India and created sandbox account.
Use this,
https://www.paypal.com/businessprofile/mytools/apiaccess
go to paypal, all tools, you can see manage API, press update, then you'll see that screen. Im doing it right now, i don't know if it will work.
I'm trying to test a Paypal Classic API integration and am having issues finding my Test Credentials.
Current error returned is: Authentication failed. API credentials are incorrect.
This makes sense as I'm using the Sandbox AppId and Live credentials for the account (which I know where to get obviously).
I've found this page: https://developer.paypal.com/webapps/developer/docs/classic/lifecycle/sb_credentials/
which tells me where to go to get test credentials but I can't find the place it's talking about.
Logging in with the business account doesn't have the sections displayed in the graphic. Am I supposed to be logging in with a different account?
Any pointers appreciated.
Go to https://developer.paypal.com and log in (by clicking on the Log In button in the upper-right corner). Use the email address and password from your live PayPal account to log in.
Click Dashboard.
Under Sandbox, click Accounts.
There should be a facilitator account there (e.g., youremail-facilitator#yourdomain.com). You can either use that account for the following steps, or you can click on Create Account and create a new account to use for the following steps.
Click on the email address of the account.
You'll see two links appear underneath the email address: Profile and Notifications. Click on Profile.
Click the API Credentials tab.
I am develop site with Opencart. Integrate PayPal Website Payment Pro with test mode. Select Test Mode yes in admin panel.
But in front side when i go for payment and enter visa card number and other stuff and click confirm payment then display error This transaction cannot be processed due to an invalid merchant configuration.
I follow below steps:
Log out Paypal account
clearing browser cache and cookies (I use firefox).
Go to developer.paypal.com and login with the real paypal account (not the Sandbox one)
Go to Applications
Click on Sandbox accounts
(Optional) Import your old accounts from your former Sandbox account after the redirect to the accounts page
Click on the account you want to log in to
Choose Sandbox site
Log in to that site using your test bussiness account
Go to My Profile
In Account information click on Request API Credentials
Still i have same issue. Before i got Secury header is not valid. I try lots of time but not getting proper mistake.
You don't really need to use Sandbox to do testing, there are other alternatives, such as to use another paypal and transact $0.01 via Authorization mode. (This way you can reject the payment)
Try using Paypal Express Checkout instead. All you need to do is to fill up the API credentials and everything will work.
You need to upgrade your Sandbox account to Business Pro.
Login to https://developer.paypal.com
Go to Dashboad and open Sandbox -> Accounts
Choose an account and click Profile
On the Profile tab click Upgrade to Pro.
Note that you should have a Business Sandbox account to be able to upgrade it to pro.