Adding product descriptor to Smart Button script without the use of soft-descriptor method
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have been searching how to add a product descriptor without the use of the soft-descriptor method. Is there a way to do this?
Here is a snippet code I retrieved from the Developer site. How do I add descriptors (name of product, recipient name etc...) to this code? Thanks.
*****
// Set up a payment
payment: function(data, actions) {
return actions.payment.create({
transactions: [
{
amount: {
total: '0.01',
currency: 'USD'
}
}]
});
},
// Execute the payment
onAuthorize: function(data, actions) {
return actions.payment.execute().then(function() {
// Show a confirmation message to the buyer
window.alert('Thank you for your purchase!');
});
}
}, '#paypal-button');
****
- Labels:
-
Payflow Pro
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Update soft descriptions on buyer's credit card statement PayPal JS SDK in SDKs
- The Merchant is not enabled to pass SoftDescriptor or SoftDescriptorCity in Sandbox Environment
- my server call v2/checkout/orders/ paypal sandbox return 404 Not Found in REST APIs
- Sandbox account payment error code 1 in SDKs