With Braintree sandbox account, PayPal is enabled by default. With use of dropin js and sandbox API keys, payment form looks like this for me in sandbox account.
I am using following code as given in braintree documentation,
<script>
braintree.setup(
// Replace this with a client token from your server
"{{$clientToken}}",
'dropin', {
container: 'dropin'
});
</script>
But when I use Production API keys, the PayPal option is not visible anymore. I only see credit card form. I have linked PayPal merchant account to Braintree and PayPal seems to be enabled.
Reposting from a comment as I think this may have gotten to the bottom of it.
I'm one of the developers that works on the Pay with PayPal product at Braintree. PayPal should be enabled for you in production once you've linked your account. There are a few things that could be going wrong, e.g. if you're using a currency that isn't supported, or using a very old browser and a web page that doesn't use HTTPS.
If you're still having issues getting the PayPal button I encourage you to drop an email to our support team and they will help you see what the issue is.
Related
I am building a marketplace app and want to include payment via PayPal with Braintree (see documentation: flutter_braintree). Right now I am working with a braintree sandbox trial account.
As far as I am understanding it correctly, I have to save the braintree tokenizationKey for every company to enable payments directly to them and not to the marketplace. Due to test reasons I included the tokenizationKey of my braintree sandbox account.
I am successfully directed to the PayPal checkout page where I can't login since it's in sandbox mode. When I select "proceed with sandbox purchase" I am then redirected to the application and do receive a BraintreePaymentMethodNonce.
Here you can find the screen where I can't login.
But somehow I can't see any transactions in the dashboard of my sandbox account.
Am I mistaken with the way tokenization works or where is the problem?
I am successfully directed to the PayPal checkout where I can't login since it's in sandbox mode.
Use a sandbox buyer (personal) account from https://www.paypal.com/signin?intent=developer&returnUri=https%3A%2F%2Fdeveloper.paypal.com%2Fdeveloper%2Faccounts%2F
If the companies only have PayPal accounts rather than Braintree accounts, you can use PayPal via Braintree and a braintree access_token from PayPal for authentication to get the client token on your server (no tokenizationKey)
I was also having the same issue. Now I found the solution. All you have to do is link you braintree sandbox to your paypal sandbox. Here is the process of linking your sandbox accounts.
I am using Braintree SDK on ASP.NET Core and I can create transactions using the access code generated from developers.paypal.com however all transactions are accepted by the payment processor and gateway.
I've tried to enter the magic amounts that are supposed to trigger declines as listed on the Braintree documentation however I think that they only work when you use a Braintree sandbox access token and not a PayPal sandbox access token (mentioned here). I've tried using an error code as an amount as documented on the PayPal API documentation here but that was accepted as well as a valid amount and the transaction went through.
Do I have to sign up for a Braintree sandbox account and to be able to get one of the decline codes documented here?
Full Disclosure: I work at Braintree. If you need any further assistance, feel free to contact support.
If you are using the PayPal access codes, in order to receive the decline codes, you'll want to use the mocked checkout flow and will need to setup a Braintree sandbox.
I am developing a PHP site where you can sign up to a subscription with an initial amount.
I am using the PayPal NVP api as it seems the most comprehensive.
Setting this up with a PayPal user is fine. I am also trying to set this up for credit/debit cards.
When testing in the sandbox I keep getting the following response:
DPRP is disabled for this merchant
I have enabled BUSINESS-pro in the sandbox account as it suggests but I am still getting the error.
There seems to be lots of conflicting information in the developer documentation/ web searches that this functionality is still available for the NVP api service.
If not, can someone point me towards the correct solution or API reference to enable me to do this?
Many Thanks
If you want to use DPRP for sandbox account, you need to contact PayPal technical team to enable it, just submit a ticket at https://www.paypal-techsupport.com/ (click contact support at the bottom), someone will toggle the function for you.
It seems to me that you can type in any random username/password combination and both the drop-in UI widget and the backend will accept it as a valid PayPal account. The payment will go through and everything.
Is there a way I can set Braintree sandbox to only accept real PayPal accounts?
Full disclosure: I work at Braintree. If you have any further questions, feel free to contact support.
The Braintree Sandbox allows you to pass any email address and password you like into the PayPal dialog, as mentioned in Braintree's documentation. You can test with the fake PayPal nonces found on the Testing and Go-Live page, but keep in mind, Braintree didn't actually design the PayPal sandbox for handling end-to-end tests. All PayPal transactions made in the sandbox use the same, fake PayPal account. Because of that, there's no way to configure your Sandbox account to accept real PayPal accounts. We recommend that when you go live, you perform a few low-value sale transactions with each of the payment methods you plan to accept, including PayPal.
You can test cases where the information in a PayPal account is bad in the same way you would test a bad credit card: use one of the fake invalid nonces from our Testing and Go-Live page. If your code is handling those cases correctly, you can be confident that it will be able to handle a PayPal account with bad information as well.
I have a test environment for my website that I normally use the Paypal Sandbox on to test transactions before going live. I would like to test the Enhanced Recurring Payments feature, but I can't find the option to do so (the links to add more features direct me to the live site), and nothing I've found on Google has given an answer on how to test Enhanced Recurring Payments on Paypal Sandbox since it's been changed.
Is ERP supported on Paypal Sandbox, or do I just not know how to access this option? Any help or advice would be appreciated. Thanks in advance.
Sign up in the sandbox here: https://www.sandbox.paypal.com/us/cgi-bin/?cmd=_product-go&product=premium_services
(for the curious, I got this URL by going to paypal.com/erp and then adding "sandbox." in front of the resulting URL's paypal.com)
Log in with your test account email/password (something like aaaaaa_############_biz#emaildomain.com )
If it says "Please login to use the PayPal Sandbox features.", that's an issue with the new sandbox that's being worked on--for now, clear all your paypal.com cookies , log in to developer.paypal.com again, and then visit the above URL again