What am I doing wrong? Payment only works I cannot transfer an ID to PayPal. I need something so that I can assign the payment. The best is a parameter that is then specified in the CSV (sales download). id -> doesn't work invoice_id -> doesn't work <script> paypal.Buttons({ createOrder: function(data, actions) { return actions.order.create({ purchase_units: [{ id: "12345", amount: { value: '10.00' }, invoice_id: 'test12345', }], application_context: { shipping_preference: 'NO_SHIPPING', }, }); }, onApprove: function(data, actions) { return actions.order.capture().then(function(details) { PayOK(); }); }, style: { color: 'blue' } }).render('#paypal-button-container'); </script>
... View more