am using this code and login using sandbox buyer account... <div id="paypal-button"></div> <script src="https://www.paypalobjects.com/api/checkout.js"></script> <script> paypal.Button.render({ env: 'sandbox', client: { sandbox: 'xxxxxxxxx', production: 'xxxxxxxxx' }, commit: true, payment: function(data, actions) { return actions.payment.create({ payment: { transactions: [ { amount: { total: '1.00', currency: 'USD' } } ] } }); }, onAuthorize: function(data, actions) { return actions.payment.execute().then(function(payment) { }); } }, '#paypal-button'); </script>
... View more