I received an error when I try to send getHostedPaymentPageRequest.
Based on https://developer.authorize.net/api/reference/features/accept_hosted.html
Request:
{ "getHostedPaymentPageRequest": { "merchantAuthentication": { "name": "xxxx", "transactionKey": "xxxx" }, "transactionRequest": { "transactionType": "authCaptureTransaction", "amount": "1.00", "profile": { "customerProfileId": "xxx" } }, "hostedPaymentSettings": { "setting": [{ "settingName": "hostedPaymentPaymentOptions", "settingValue": "{\"customerProfileId\": true}" }] } } }
Response:
{ "messages": { "resultCode": "Error", "message": [ { "code": "E00013", "text": "Failed to add Option hostedPaymentPaymentOptions \r\n Property 'customerProfileId' has not been defined and the schema does not allow additional properties. Line 1, position 21." } ] } }
It looks like a customerProfileId is not supported in hostedPaymentPaymentOptions. Any ideas?
02-03-2020 11:11 AM
Hello,
The customerProfileId is posted in the 'transactionRequest' object of the 'getHostedPaymentPageRequest', it takes a numeric string value.
"transactionRequest": { "transactionType": "authCaptureTransaction", "amount": "20.00", "profile": { "customerProfileId": "123456789" },
02-06-2020 04:53 AM - edited 02-06-2020 04:54 AM