Hello, I am new to PayPal Checkout and setup a simple payment page. I mostly just copied and pasted an existing solution as below: function initPayPalButton() { paypal.Buttons({ style: { shape: 'rect', color: 'gold', layout: 'vertical', label: 'paypal', }, onClick: function(data, actions) { if(validateShipping()) { return actions.resolve(); } else { return actions.reject(); } }, createOrder: function(data, actions) { return actions.order.create({ purchase_units: [{ "amount":{"currency_code":"USD", "value":finalAmount } }] }); }, finalAmount is just a JavaScript variable. In any case, everything was testing just fine in Sandbox mode, however, when I tested it live, only paying from PayPal accounts tested okay. Paying using the credit card processing resulted in a series of $1.00 holding. Now it just keeps giving me various error messages, including 400 error (which is strange because paying from PayPal accounts would not give me that error). Can anyone tell me what am I doing wrong?
... View more