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-21-2020 01:34 AM
04-28-2020 11:47 PM
First define the orderType the exact same way you did in your function, and assign it to a variable. Then instead of a custom function to create the transactionRequestType you would have a variable that serves the same purposeSo you would have something like
var order = new orderType() { invoiceNumber = paymentOrderId.ToString(), description = paymentDescription }
var transactionRequest = new transactionRequestType
{
transactionType = transactionTypeEnum.authCaptureTransaction.ToString(),
amount = amount
order = order
};
thanks
iosman
05-07-2020 12:41 PM
@iosman002 wrote:
First define the orderType the exact same way you did in your function, and assign it to a variable. Then instead of a custom function to create the transactionRequestType you would have a variable that serves the same purposeSo you would have something like
var order = new orderType() { invoiceNumber = paymentOrderId.ToString(), description = paymentDescription }
var transactionRequest = new transactionRequestType
{
transactionType = fmovies putlocker huile de ricin transactionTypeEnum.authCaptureTransaction.ToString(),
amount = amount
order = order
};
thanks
iosman
thanks my issue has been fixed.
05-09-2020 09:45 AM