Closed danielfmiranda closed 4 months ago
I think the solution would be to have a separate account to make the testing PayPal donations with that is not the merchant account.
Why we did not run into this earlier and why it does not surface for one-time donation and other monthly donations is a mystery though
https://developer.paypal.com/tools/sandbox/accounts/
Looks like we've been using the wrong account to make the test donations for a while.
Description
When trying to make a $5 paypal donation on the Mozilla Foundation donate staging site, the following error gets returned on the front end:
The following error also gets returned in the backend logs:
Failed Braintree transaction: PayPal buyer account can't be the same as the seller account
This error only occurs on the Mozilla Foundation donate staging site, and not on the Thunderbird staging site or localhost dev sites (when using the env file found in 1password).
Braintree Env Variables
BRAINTREE_MERCHANT_ID
BRAINTREE_MERCHANT_ACCOUNTS
BRAINTREE_MERCHANT_ACCOUNTS_PAYPAL_MICRO
BRAINTREE_PLANS
BRAINTREE_PUBLIC_KEY
BRAINTREE_PRIVATE_KEY
BRAINTREE_TOKENIZATION_KEY
If I had to guess, the ones most likely causing this bug are
BRAINTREE_MERCHANT_ACCOUNTS
orBRAINTREE_MERCHANT_ACCOUNTS_PAYPAL_MICRO
.This is because when I had
BRAINTREE_MERCHANT_ACCOUNTS_PAYPAL_MICRO=usd=...
set to the one used in thunderbird, I was able to make a $5 donation successfully.To Reproduce
Steps to reproduce the behavior:
Expected behavior
The test donation should go through, and take redirect you to the thank you page.