Smart Checkout Integration - Server Side Implementation

drey101
New Community Member

I've managed to get the Smart Checkout integration working, purely client side, however, when I try to integrate it using my server using the exact code in the examples, I have the following three problems:

 

a)  I am getting a client side error:

```

{
"events": [
{
"level": "error",
"event": "unhandled_error",
"payload": {
"err": "SyntaxError: Unexpected end of input\n at file:///Users/drey101/payment/testHtml/index.html:59:32\n\nError: Unexpected end of input\n at tr. (https://www.paypal.com/sdk/js?client-id=sb¤cy=USD:1:50060)\n at Object. (https://www.paypal.com/sdk/js?client-id=sb¤cy=USD:1:56385)\n at JSON.parse ()\n at o (https://www.paypal.com/sdk/js?client-id=sb¤cy=USD:1:56245)\n at hr (https://www.paypal.com/sdk/js?client-id=sb¤cy=USD:1:56396)\n at Tr.u.on (https://www.paypal.com/sdk/js?client-id=sb¤cy=USD:1:61159)\n at Tr (https://www.paypal.com/sdk/js?client-id=sb¤cy=USD:1:61348)\n at https://www.paypal.com/sdk/js?client-id=sb¤cy=USD:1:65801\n at https://www.paypal.com/sdk/js?client-id=sb¤cy=USD:1:65847",
"timestamp": "1563532591234",
"referer": "www.sandbox.paypal.com",
"uid": "c10d7196d7_mta6mzy6mjc",
"env": "sandbox"
}
}
],
"meta": {},
"tracking": [
{
"ext_error_code": "payments_sdk_error",
"ext_error_desc": "Unexpected end of input",
"context_type": "button_session_id",
"context_id": "a28eb213b3_mta6mzy6mjc",
"state_name": "smart_button",
"feed_name": "payments_sdk",
"serverside_data_source": "checkout",
"client_id": "AZDxjDScFpQtjWTOUtWKbyN_bDt4OgqaF4eYXlewfBP4-8aqX3PiV8e1GWU6liB2CUXlkA59kJXE7M6R",
"page_session_id": "c10d7196d7_mta6mzy6mjc",
"referer_url": "www.sandbox.paypal.com",
"merchant_domain": "file://",
"locale": "en_US",
"integration_identifier": "AZDxjDScFpQtjWTOUtWKbyN_bDt4OgqaF4eYXlewfBP4-8aqX3PiV8e1GWU6liB2CUXlkA59kJXE7M6R",
"sdk_name": "payments_sdk",
"sdk_version": "5.0.56",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrom[Removed. Phone #s not permitted]Safari/537.36",
"user_action": "commit",
"context_correlation_id": "8cceb8a6a527f"
}
]
}

```

b) There is no login modal. The PayPal Modal shows up, starts loading, then exits immediately

 

c) I need to be able to customize the experience, but the tag `experience: { }` in the render button doesn't seem to work anymore.

 

Thanks in advance to anyone who can help!

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.