Showing results for 
Search instead for 
Did you mean: 

Integration Problem: How can I add the Invoice-number?

Posted on

Hi, Im using this standard Code: echo '<script src=""></script>

<div id="paypal-button-container"></div>


    // Render the PayPal button


        // Set your environment

        env: \'production\', // sandbox | production

        // Specify the style of the button

        locale: \'de_DE\',
        style: {
            label: \'checkout\',
            size:  \'small\',    // small | medium | large | responsive
            shape: \'pill\',     // pill | rect
            color: \'gold\'      // gold | blue | silver | black

        // PayPal Client IDs - replace with your own
        // Create a PayPal app:

        client: {
            production: \'Production_ID\'

        payment: function(data, actions) {
            return actions.payment.create({
                payment: {
                    transactions: [
                            amount: { total: '.$_POST['gesamtsumme'].', currency: \'EUR\' }

        onAuthorize: function(data, actions) {
            return actions.payment.execute().then(function() {
                window.alert(\'Payment Complete!\');

    }, \'#paypal-button-container\');



I see : Amount XY was sent by XY But I dont know to which Invoice that payment belongs to... How can I add the Invoice-Number?

Haven't Found your Answer?

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