2

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?

2 Answers2

0

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)

Preston PHX
  • 27,642
  • 4
  • 24
  • 44
  • Thanks for your reply! I am not able to use a sandbox buyer account since I am not allowed to Login. Or what do you mean by using a sandbox buyer account? – WonderHow20 Mar 06 '21 at 18:06
  • I don't know what you are trying to log in to, but a sandbox buyer account is used to complete a regular sandbox PayPal checkout. – Preston PHX Mar 06 '21 at 18:11
  • I thought I might be able to model the whole payment process. So that I would have been able to login at the screen (see attached picture in original post) with a sandbox buyer account and then complete the payment. I'm just able to click "proceed with sandbox purchase" and then get redirected to the app with a nonce. But no transactions are shown in the braintree sandbox account. I feel like I get something very wrong. – WonderHow20 Mar 06 '21 at 18:22
  • That's a mock flow, no actual transactions on the PayPal side. Set your environment to sandbox. But since you aren't seeing transactions in Braintree, the issue may be that you aren't creating one after the return. A BraintreePaymentMethodNonce is not a transaction; when approved it's used to submit one for settlement. – Preston PHX Mar 06 '21 at 19:30
  • I am sorry to ask you all this, but as you can see in the documentation of [flutter_braintree](https://pub.dev/documentation/flutter_braintree/latest/index.html), there ist no further description after creating the BraintreePaymentMethodNonce. You said the issue might be that I'm not creating a transaction. But how would I do that? Thank you :) – WonderHow20 Mar 07 '21 at 08:44
  • On your server. Read the Braintree documentation, https://developers.braintreepayments.com/guides/paypal/server-side/node – Preston PHX Mar 07 '21 at 13:15
  • That was a great help! Somehow I missed that part, thanks a lot. – WonderHow20 Mar 08 '21 at 08:50
0

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.

Humayun Rahi
  • 705
  • 2
  • 8
  • 17
  • I am having similar issue. I tried to use credit card, the payment got processed but I can't find any transactions in Braintree – CharlyKeleb Aug 02 '22 at 11:56