Adding product descriptor to Smart Button script without the use of soft-descriptor method

momidan
Contributor
Contributor

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');

****

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

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