Sandbox Test Notifications - Missing Item Descriptions

ProPerf
Contributor
Contributor

Hi all,

I'm testing my client-side REST API setup using sandbox accounts. It's all working except the notification emails don't mention the item descriptions anywhere. These are crucial as they include the purchase options. Does anyone know how to enable this?

Login to Me Too
5 REPLIES 5

MTS_Justin
Moderator
Moderator
Hi,

Can you provide a screenshot of the notification and a copy of the API request you submitted so that I can review them ?

Was my post helpful? If so, please give me a kudos!
Login to Me Too

ProPerf
Contributor
Contributor

Please see below, the item "description" information doesn't appear anywhere on the notification.

 

Thanks

 

 

 

paypal_notification.jpg

 

paypal.Button.render({

env: 'sandbox', // Or 'production',

client: {
// create IDs here: https://developer.paypal.com/developer/applications/create
sandbox: '----',
production: 'xxxxxxxxx'
},
style: {
size: 'responsive',
color: 'gold',
shape: 'rect',
label: 'checkout'
},

commit: true, // Show a 'Pay Now' button

payment: function(data, actions) {
return actions.payment.create({
"intent": "sale",
"payer": {
"payment_method": "paypal"
},
payment: {
transactions: [
{
amount: {
total: '<?=$total?>',
currency: 'GBP',
details: {
subtotal: "<?=$total-$shipping_total?>",
shipping: '<?=$shipping_total?>'
}

},
"description": "Brace Pimp Checkout",
"payment_options": {
"allowed_payment_method": "INSTANT_FUNDING_SOURCE"
},
"item_list": {
"items": [
{
"name": "CI Knee Brace | Bubbles",
"description": "Size: Large | Measurements: 1in, 2in, 3in",
"quantity": "1",
"price": "3"
}
]
} // item list
}
], // transactions
"redirect_urls": {
"return_url": "",
"cancel_url": ""
}
}, // payment
commit: true // Optional: show a 'Pay Now' button in the checkout flow

});
}, // payment: function(data, actions)

Login to Me Too

MTS_Justin
Moderator
Moderator
Hi @ProPerf

Apologies for the delay in responding, I was out of the office on holidays.

You mentioned the item descriptions weren't provided in the email notification. Which REST API variable did you use to pass the item description and can you provide a REST transaction id which I can review to see which details were recorded when the transaction was processed ?


Was my post helpful? If so, please give me a kudos!
Login to Me Too

ProPerf
Contributor
Contributor

Hello,

I have a transaction ID of 18P83298Y4657052D

The item data is being sent in the format of the example on the API Docs:

 "items": [
{
"name": "hat",
"description": "Brown hat.",
"quantity": "5",
"price": "3",
"tax": "0.01",
"sku": "1",
"currency": "USD"
},
{
"name": "handbag",
"description": "Black handbag.",
"quantity": "1",
"price": "15",
"tax": "0.02",
"sku": "product34",
"currency": "USD"
}
],

The text in the 'description' field is "Left Leg | 1in, 2in, 3in | Standard | OPTIONS: Knee Guard, White Badge"

however this does not appear anywhere in the "Order Details" section of the "Transaction Details" page or in the confirmation email. 

Login to Me Too

MTS_Justin
Moderator
Moderator
The transaction id "18P83298Y4657052D" is not recognized as sandbox transaction id.

Please check the transaction id again and ensure it is for the sandbox environment or provide an alternative sandbox transaction id.

Was my post helpful? If so, please give me a kudos!
Login to Me Too

Haven't Found your Answer?

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