title: How to create a Subscription payment using Paypal client-side rest api?
body: <p>The <a href="https://developer.paypal.com/docs/integration/direct/express-checkout/integration-jsv4/client-side-REST-integration/" rel="nofollow noreferrer">Client-side REST integration</a> documentaion describes about creating a express checkout for one or more items. </p>
  
  <p>How can i use the same for creating a subscription or Recurring payment? How should the following be modified?</p>
  
  <pre><code> payment: function(data, actions) {
          return actions.payment.create({
              transactions: [
                  {
                      amount: { total: '1.00', currency: 'USD' }
                  }
              ]
          });
      },
  </code></pre>
  
  <p>I found a similar <a href="https://devblog.paypal.com/tutorial-subscriptions-plan/" rel="nofollow noreferrer">Rest api for Node</a>. Not sure how it would be on JS.</p>