title: How to config IPN for PayPal Express Checkout?
body: <p>I would like use PayPal Express Checkout and I use the official client side example of PayPal. </p>
  
  <p><a href="https://developer.paypal.com/demo/checkout/#/pattern/client" rel="nofollow noreferrer">https://developer.paypal.com/demo/checkout/#/pattern/client</a></p>
  
  <pre><code>&lt;script src="https://www.paypalobjects.com/api/checkout.js"&gt;&lt;/script&gt;
  
  &lt;div id="paypal-button-container"&gt;&lt;/div&gt;
  
  &lt;script&gt;
  
      // Render the PayPal button
  
      paypal.Button.render({
  x
          // 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: '&lt;insert production client id&gt;'
          },
  
          // Set to 'Pay Now'
  
          commit: true,
  
          // Wait for the PayPal button to be clicked
  
          payment: function(actions) {
  
              // Make a client-side call to the REST api to create the payment
  
              return actions.payment.create({
                  transactions: [
                      {
                          amount: { total: '0.01', 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() {
                  window.alert('Payment Complete!');
              });
          }
  
      }, '#paypal-button-container');
  
  &lt;/script&gt;
  </code></pre>
  
  <p>My question is, how I can pass the notifiy_url to get the confirmation of payment and the data of the customer?</p>
  
  <p>I assuming that onAuthorize function isn't enough.
  If someone could clarify I will appreciate.</p>
  
  <p>Thanks for help!</p>