You are viewing the PayPal Community Archives. This content may be old or outdated. Leave the Archive
Chat with our moderator team every Wednesday between 1-2pm PT (4-5pm ET). Learn more in Community Events
I'm working on integrating the smart buttons on the front-end, and I have the PayPal SDK included:
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!
©1999-2021 PayPal, Inc. All rights reserved.