title: How to show Product details in paypal express checkout
body: <p>I have implemented express checkout like this</p>
  
  <p>// Render the PayPal button</p>
  
  <p>paypal.Button.render({</p>
  
  <pre><code>// Set your environment
  
  env: 'sandbox', // sandbox | production
  
  // PayPal Client IDs - replace with your own
  // Create a PayPal app: https://developer.paypal.com/developer/applications/create
  
  client: {
      sandbox:    'AZDxjDScFpQtjWTOUtWKbyN_bDt4OgqaF4eYXlewfBP4-8aqX3PiV8e1GWU6liB2CUXlkA59kJXE7M6R',
      production: 'Aco85QiB9jk8Q3GdsidqKVCXuPAAVbnqm0agscHCL2-K2Lu2L6MxDU2AwTZa-ALMn_N0z-s2MXKJBxqJ'
  },
  
  // Set to 'Pay Now'
  
  commit: true,
  
  // Wait for the PayPal button to be clicked
  
  payment: function() {
  
      // Make a client-side call to the REST api to create the payment
  
      return paypal.rest.payment.create(this.props.env, this.props.client, {
          transactions: [
              {
                  amount: { total: '&lt;?php echo $cart-&gt;total(); ?&gt;', currency: 'USD' }
              }
          ]
      });
  },
  
  // Wait for the payment to be authorized by the customer
  
  onAuthorize: function(data, actions) {
  
      // Execute the payment
  
      return actions.payment.execute().then(function() {
          document.querySelector('#paypal-button-container').innerText = 'Payment Complete!';
          window.location.href = 'cartaction.php?action=place0rder';
      });
  }
  </code></pre>
  
  <p>}, '#paypal-button-container');</p>
  
  
  
  <p>where $cart->total() is total payable amount of all products. it works totally fine.</p>
  
  <p>But i want to display all products name price and description as shown in following image.</p>
  
  <p><a href="https://i.stack.imgur.com/YoBs0.png" rel="nofollow noreferrer">When we click Amount it shows item details</a></p>
  
  <p>But here in my case It just shows amount like below.</p>
  
  <p><a href="https://i.stack.imgur.com/rRPIK.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>What should I add in the code to achieve this. Any help please?</p>