Getting API error PAYEE_ACCOUNT_INVALID, I set the payee to my merchant id.

chrisgitre
New Community Member

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.

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.