I'm trying to integrate the Smart Buttons Javascript SDK into my application as per the documentation. When I click on the PayPal or the Credit Card button, I get, "Failed to load resource: the server https://www.sandbox.paypal.com/v2/checkout/orders responded with a status of 400 (Bad Request)". I've supplied my Client ID where it pulls-in the SDK (src="https://www.paypal.com/sdk/js?client-id=SB_CLIENT_ID">), but how do I supply the Secret? Also, where does the SDK handle the CORS headers?
... View more