Payment REST API
HemalathaR
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Dec-22-2022
06:57 AM
Hi Team,
I am working on an application that was created 4 years ago and the PayPal transactions were working fine until last year. Now, when I tested the application payments via credit card are not working. From the developers website I learnt that the use of the PayPal REST /payments APIs to accept credit card payments is restricted. Instead, you can accept credit card payments with Braintree direct.
I am using https://api.sandbox.paypal.com/v1/payments/payment for transactions and receiving response as 'PAYEE_ACCOUNT_INVALID'.
Below is the input sent:
{
"intent": "sale",
"payer": {
"payment_method": "credit_card",
"funding_instruments": [
{
"credit_card_token": {
"credit_card_id": "CARD-4A281579HU0503902MOSC2VA",
"expire_month": 1,
"expire_year": 2028
}
}
]
},
"transactions": [
{
"amount": {
"currency": "USD",
"total": "29.99"
},
"description": "Monthly Subscription"
}
]
}
Please help me understand what the issue is and a workaround for the same.
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.
Related Content
- where does paypal payments go to if there is no linked phone or email to the seller ? in PayPal Payments Standard
- Couldn't receive International payment in PayPal Payments Standard
- Is it possible to make payments in RON (Romanian Leu) through PayPal? in REST APIs
- My PayPal is not allowing me to receive or send requests. in PayPal Payments Standard
- "System error. Please try again later" when connecting to paypal sandbox account with my android app in Sandbox Environment