cancel
Showing results for 
Search instead for 
Did you mean: 

Accept hosted : Form token not retrieved with Authorize.net Accept hosted payment page.

I am getting below error when i try to retrieve a form token using Accept hosted payment page.

 

Request JSON:

{ "getHostedPaymentPageRequest": { "merchantAuthentication": { "name": "854bJaQa", "transactionKey": "59whetY9Dm7849BT" }, "transactionRequest": { "transactionType": "authCaptureTransaction", "amount": 56.65, "profile": { "customerProfileId": "47" }, "customer": { "email": "" }, "billTo": { "firstName": "Admin", "lastName": "Orora", "company": "Texas Dairy Queen Operators' Council", "address": "2120 Forum Parkway", "city": "Bedford", "state": "Texas", "zip": "76021", "country": "United States" } }, "hostedPaymentSettings": { "setting": [ { "settingName": "hostedPaymentReturnOptions", "settingValue": "{\"showReceipt\":false,\"url\":\"http://localhost:4200/viewcart/854/false/true?qs=0000ff84d6b94c32b1c88bc94469c42f\",\"urlText\":\"Place Order\",\"cancelUrl\":\"http://localhost:4200/viewcart/854/false/false?qs=0000ff84d6b94c32b1c88bc94469c42f\",\"cancelUrlText\":\"Cancel\"}" }, { "settingName": "hostedPaymentButtonOptions", "settingValue": "{\"text\":\"Pay\"}" }, { "settingName": "hostedPaymentStyleOptions", "settingValue": "{\"bgColor\":\"blue\"}" }, { "settingName": "hostedPaymentSecurityOptions", "settingValue": "{\"captcha\":false}" }, { "settingName": "hostedPaymentShippingAddressOptions", "settingValue": "{\"show\":false,\"required\":false}" }, { "settingName": "hostedPaymentBillingAddressOptions", "settingValue": "{\"show\":true,\"required\":true}" }, { "settingName": "hostedPaymentCustomerOptions", "settingValue": "{\"showEmail\":false,\"requiredEmail\":false}" }, { "settingName": "hostedPaymentOrderOptions", "settingValue": "{\"show\":false,\"merchantName\":\"\"}" }, { "settingName": "hostedPaymentIFrameCommunicatorUrl", "settingValue": "{\"url\":\"https://mysite.com/iFrameCommunicator.html\"}" } ] } } }

 

Response:

{ "messages": { "resultCode": "Error", "message": [ { "code": "E00013", "text": "Invalid Setting Value. hostedPaymentReturnOptionsurl must begin with http:// or https://." } ] } }

 

Can someone please review this request and help me urgently.

 

Neudesic2022
Member
0 REPLIES 0