cancel
Showing results for 
Search instead for 
Did you mean: 

How to send product-name with Paypal-payment?

Highlighted
New Community Member

How to send product-name with Paypal-payment?

I inserted a PayPal Plus payment on the website and it works. Now I would like to add a product name or a purpose, which is then displayed in the overview of the transactions, so that I can assign the payment. Where do I have to insert this text in the html code so that it appears as information in the later transaction?

 

The code is:

<div id="paypal-button-container"></div>
<script src="https://www.paypal.com/sdk/js?client-id=AXUlD_XI4-N6Ca8H18aWbyTseuErSJNmei0VBFGN4SlOFnhyFBVFEVC6ekIU..." data-sdk-integration-source="button-factory"></script>
<script>
paypal.Buttons({
env: 'production',
client: {
sandbox: 'demo_sandbox_client_id',
production: 'AXUlD_XI4-N6Ca8H18aWbyTseuErSJNmei0VOFnhyFBVFEVC6ekIUNT86z3l0UtzZM'
},
style: {
shape: 'pill',
color: 'gold',
layout: 'vertical',
label: 'pay',

},
createOrder: function(data, actions) {
return actions.order.create({
purchase_units: [{
amount: {
value: '1',
currency: 'EUR'
}
}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(details) {
alert('Transaction completed by ' + details.payer.name.given_name + '!');
});
}
}).render('#paypal-button-container');
</script>