Showing results for 
Search instead for 
Did you mean: 

Smart Checkout Integration - Server Side Implementation

New Community Member
Posted on

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. (¤cy=USD:1:50060)\n at Object. (¤cy=USD:1:56385)\n at JSON.parse ()\n at o (¤cy=USD:1:56245)\n at hr (¤cy=USD:1:56396)\n at Tr.u.on (¤cy=USD:1:61159)\n at Tr (¤cy=USD:1:61348)\n at¤cy=USD:1:65801\n at¤cy=USD:1:65847",
"timestamp": "1563532591234",
"referer": "",
"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": "",
"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!

Haven't Found your Answer?

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