title: Using Paypal Rest API with Node
body: <p>I am having a problem debugging my paypal integration with Node and the rest api <a href="https://github.com/paypal/rest-api-sdk-nodejs" rel="nofollow">https://github.com/paypal/rest-api-sdk-nodejs</a></p>
  
  <ul>
  <li>I created a Paypal account</li>
  <li>I got the creditials for the app</li>
  <li>I created an app and set a password for a user </li>
  <li>I log into the sandbox with that user</li>
  <li>I don`t see any transaction history</li>
  </ul>
  
  <p>The code snippet is as follows :</p>
  
  <pre><code>var config_opts = {
      'host': 'api.sandbox.paypal.com',
      'port': '',
      'client_id': 'my id',
      'client_secret': 'my secret'
   };
  
    var create_payment_json = {
      "intent": "sale",
      "payer": {
      "payment_method": "paypal"
  },
  "redirect_urls": {
      "return_url": "http://localhost:3000",
      "cancel_url": "http://localhost:3000"
  },
  "transactions": [{
      "amount": {
          "currency": "USD",
          "total": "10.00"
      },
      "description": "This is the payment description."
  }]
    };
  
       paypal_sdk.payment.create(create_payment_json, config_opts, function (err, res) {
  if (err) {
      console.log( err );
  }
  
  if (res) {
      console.log("Create Payment Response");
      console.log(res);
  }  
   });
  </code></pre>
  
  <p>The response I get is as follows:</p>
  
  <pre><code>{ id: 'PAY-55J119327J2030636KLXMVJI',
    create_time: '2014-02-02T22:45:57Z',
    update_time: '2014-02-02T22:45:57Z',
    state: 'created',
    intent: 'sale',
    payer: 
     { payment_method: 'paypal',
       payer_info: { shipping_address: {} } },
    transactions: 
     [ { amount: [Object],
         description: 'This is the payment description.' } ],
    links: 
     [ { href: 'https://api.sandbox.paypal.com/v1/payments/payment/PAY-  55J119327J2030636KLXMVJI',
         rel: 'self',
         method: 'GET' },
   {     href: 'https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&amp;token=EC-90D3081342725343U',
         rel: 'approval_url',
         method: 'REDIRECT' },
   {     href: 'https://api.sandbox.paypal.com/v1/payments/payment/PAY-55J119327J2030636KLXMVJI/execute',
         rel: 'execute',
         method: 'POST' } ] }
  </code></pre>
  
  <p>I am wondering if there is some additional step in authenticating that I am missing ?</p>