Integration and Testing

Authorize.Net API questions and help with your payment integration.

Reply
Contributor
Posts: 18
Registered: ‎07-11-2018

Payment Form - Fields In Accept hosted payment form

 Hi Guys,

 

Want to ask you the following:

 

Im trying to customize the hoster form from the merchant intarface (sandbox).

 

I go to account page and the find the link "Payment Form". But when I disabel some fields and whant to update the header or footer the change does not get reflected?

 

This works for the accept hosted form?

 

settingType[] settings = new settingType[7];

settings[0] = new settingType
{
settingName = settingNameEnum.hostedPaymentButtonOptions.ToString(),
settingValue = "{\"text\": \"Pay\"}"
};

settings[1] = new settingType
{
settingName = settingNameEnum.hostedPaymentOrderOptions.ToString(),
settingValue = "{\"show\": true}"
};

settings[2] = new settingType
{
settingName = settingNameEnum.hostedPaymentPaymentOptions.ToString(),
settingValue =
"{\"cardCodeRequired\": false, \"showCreditCard\": true, \"showBankAccount\": false}"
};

//hostedPaymentIFrameCommunicatorUrl
settings[3] = new settingType
{
settingName = settingNameEnum.hostedPaymentIFrameCommunicatorUrl.ToString(),
settingValue = "{\"url\": \"" + iframeUrl + "\"}"
};

//hostedPaymentReturnOptions
settings[4] = new settingType
{
settingName = settingNameEnum.hostedPaymentReturnOptions.ToString(),
settingValue = "{\"showReceipt\": false, \"cancelUrl\": \"" + iframeUrl +
"#action=cancel\", \"cancelUrlText\": \"Cancel\"}"
};

settings[5] = new settingType
{
settingName = settingNameEnum.hostedPaymentCustomerOptions.ToString(),
settingValue = "{\"showEmail\": false, \"requiredEmail\": false, \"addPaymentProfile\": true}"
};

settings[6] = new settingType
{
settingName = settingNameEnum.hostedPaymentBillingAddressOptions.ToString(),
settingValue = "{\"show\": true, \"required\": true}"
};

 

This si how Im creating the form.

 

Thanks for any help!