REST API - description field not populating
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We are attempting to use the REST API to submit direct credit card sales. For some reason, when we send the "description", it never populations the desription field.
We actually use two different accounts and get different results from each. On one account, the description that we send ends up in the Item Title field... but the description seems to be a default description from PayPal:
Description: | Betty Buyer has just sent you $1.00 USD with PayPal |
On the other account, we get the same result in the description field. However, there is no Item Title field at all.
Here is what I am sending in cURL (step 2 of 3... after we get the Access Token:
curl.exe -v "https://api.paypal.com/v1/payments/payment" ^ -H "Content-Type: application/json" ^ -H "Authorization: Bearer A102.XKTajQGXv4X-A3YyY1_rLdtIldFlJIcR5oQo2rdiMyickGMTWJJlutpXwGGW8nlz.EDpsnZduEgsOkh6wEGiX9MNuBab" ^ -d "{\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"number\":\"4xxxxxxxxxxx1111\",\"type\":\"visa\",\"expire_month\":\"05\",\"expire_year\":\"2020\",\"first_name\":\"Betty\",\"last_name\":\"Buyer\"}}]},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"description\":\"1234\"}]}"
When we use this with read data, the payment goes thru.... everything seems in order except this description field.
Is this something we are doing wrong? Or is this on PayPal's end?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ask for assistance over here where the coders hang out: https://developer.paypal.com/support/
Kudos & Solved are greatly appreciated. 🙂
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- how to edit the packing slip so that shipping is shown in About Settings (Archive)
- Paypal IPN integration with Woocommerce in About Settings (Archive)
- Drop Down Option Box and Shipping Issues in About Settings (Archive)
- Custom number in download history for subscription buttons in About Business (Archive)