Invalid sdk meta

dmpalmer
New Community Member

I'm working on integrating the smart buttons on the front-end, and I have the PayPal SDK included: 

 

//www.paypal.com/sdk/js?client-id=<my_client_id>

And it is loaded correctly. 

 

However, when I click on the PayPal button, the modal window comes up with the spinning progress indicator, and if I look in Developer Tools (Chrome), I see this HTTP 400 error response:

 

Invalid sdk meta: eyJ1cmwiOiIvL3d3dy5wYXlwYWwuY29tL3Nkay9qcz9jbGllbnQtaWQ9QVZnM3dtUDZYMElJTTVTRFhITFRpWHhkTjdfQzdaQmltX3d5Y1FnZzlXc0xRdzZQNnBiYXJzZ0pjQUQzRVhCYmp2YXZmX0RuOExzam5EbG8mZGlzYWJsZS1mdW5kaW5nPWNyZWRpdCxjYXJkIiwic3RhZ2VIb3N0Ijoid3d3LnNhbmRib3gucGF5cGFsLmNvbSIsImFwaVN0YWdlSG9zdCI6Ind3dy5zYW5kYm94LnBheXBhbC5jb20ifQ

 

This error message is happening when this URL is requested: https://www.sandbox.paypal.com/smart/buttons

 

I notice that there is a query parameter on this URL: sdkMeta

 

When I remove this parameter from the 'buttons' URL, the request seems to work fine. Since I'm not the one populating the that URL (the 'buttons' URL) i can't really do anything about this.

 

I followed the directions: https://developer.paypal.com/docs/checkout/integrate/#2-add-the-paypal-script-to-your-web-page

 

I'm not sure if i'm missing anything, any guidance would be appreciated!

 

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.