cancel
Showing results for 
Search instead for 
Did you mean: 

getHostedPaymentPageRequest settings error E00013

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? 

actdata
Member
1 REPLY 1

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" },

 

 

Powered by NexWebSites.com -
Certified Authorize.net developers
NexusSoftware
Trusted Contributor