Getting API error PAYEE_ACCOUNT_INVALID, I set the payee to my merchant id.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
I am attempting to collect payments from my clients by using their credit card information using the nodejs paypal-rest-sdk
const paymentData = {
intent : 'sale' ,
payer : {
payment_method : 'credit_card' ,
funding_instruments : [
{
credit_card : {
number : '****' ,
type : 'visa' ,
expire_month : ** ,
expire_year : *** ,
cvv2 : '***' ,
first_name : 'John' ,
last_name : '[emoved]' ,
},
},
],
},
transactions : [
{
amount : {
total : '10.00' ,
currency : 'USD' ,
},
payee : {
merchant_id : 'mymerchantid' ,
},
description : 'SETC Processing Fees.' ,
},
],
};
I send this data to paypal.payment.create(paymentData, ....) but i receive an error PAYEE_ACCOUNT_INVALID
I am currently using sandbox.

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Which api can get oauth2.0 authorization_code? in REST APIs
- Something went wrong. Contact the merchant for help. in PayPal Payments Standard
- NOT ENABLED TO VAULT PAYMENT SOURCE in Sandbox Environment
- Not receiving any confirmation emails for sandbox account in Sandbox Environment
- merchant onboarding in Payflow