cancel
Showing results for 
Search instead for 
Did you mean: 

After parsing a value an unexpected character was encountered:

This is my request body:

 

'{ "getHostedPaymentPageRequest": { "merchantAuthentication": { "name": "********", "transactionKey": "*********" }, "transactionRequest": { "transactionType": "authCaptureTransaction", "amount": "20.00", "profile": { "customerProfileId": "123456789" }, "customer": { "email": "ellen@mail.com" }, "billTo": { "firstName": "Ellen", "lastName": "Johnson", "company": "Souveniropolis", "address": "14 Main Street", "city": "Pecan Springs", "state": "TX", "zip": "44628", "country": "USA" } }, "hostedPaymentSettings": { "setting": [ { "settingName": "hostedPaymentReturnOptions", "settingValue": "{\"showReceipt\": false, \"url\": \"https://www.google.com\", \"urlText\": \"Continue\", \"cancelUrl\": \"https://www.google.com\", \"cancelUrlText\": \"Cancel\"}" }, { "settingName": "hostedPaymentButtonOptions", "settingValue": "{\"text\": \"Pay\"}" }, { "settingName": "hostedPaymentStyleOptions", "settingValue": "{\"bgColor\": \"blue\"}" }, { "settingName": "hostedPaymentPaymentOptions", "settingValue": "{\"cardCodeRequired\": false, \"showCreditCard\": true, \"showBankAccount\": true}" }, { "settingName": "hostedPaymentSecurityOptions", "settingValue": "{\"captcha\": false}" }, { "settingName": "hostedPaymentShippingAddressOptions", "settingValue": "{\"show\": false, \"required\": false}" }, { "settingName": "hostedPaymentBillingAddressOptions", "settingValue": "{\"show\": true, \"required\": false}" }, { "settingName": "hostedPaymentCustomerOptions", "settingValue": "{\"showEmail\": false, \"requiredEmail\": false, \"addPaymentProfile\": true}" }, { "settingName": "hostedPaymentOrderOptions", "settingValue": "{\"show\": true, \"merchantName\": \"G and S Questions Inc.\"}" }, { "settingName": "hostedPaymentIFrameCommunicatorUrl", "settingValue": "{\"url\": \"https://mysite.com/special\"}" } ] } } }'

 

 

getting the below error:

 

{"messages":{"resultCode":"Error","message":[{"code":"E00001","text":"After parsing a value an unexpected character was encountered: s. Path 'getHostedPaymentPageRequest.hostedPaymentSettings.setting[0].settingValue', line 1, position 603."}]}}

 

can somebody please help me out

 

 

ajit
Member
0 REPLIES 0