cancel
Showing results for 
Search instead for 
Did you mean: 

Accept Hosted form address validation

Hi there!
I'm starting using Accept Hosted form, but I have my own donor's data form implemented. When I'm trying to send this data in "Request token" post with "hostedPaymentBillingAddressOptions" switched off it processes without having donor's data to transaction data. And when I'm trying to send it with "hostedPaymentBillingAddressOptions" switched on it shows donor's data in form and saves it but without any validation.

Can anyone help with it? In two words:
1) How to pass donor's data to transaction without displaying it in Accept Hosted form?
2) If there is no way to do the 1st - can I set donor's data to be readonly in form? Or when should I switch validation on?

 

Here is the XML I send to "https://apitest.authorize.net/xml/v1/request.api" to get token, if it will help.

<getHostedPaymentPageRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
	<merchantAuthentication>
		<name>MY_NAME</name>
		<transactionKey>MY_KEY</transactionKey>
	</merchantAuthentication>
	<transactionRequest>
		<transactionType>authCaptureTransaction</transactionType>
		<amount>20.00</amount>
		<billTo>
			<firstName>Ellen</firstName>
			<lastName>Johnson</lastName>
			<address>14 Main Street</address>
			<city>Pecan Springs</city>
			<state>TX</state>
			<zip>78783</zip>
			<country>USA</country>
		</billTo>
	</transactionRequest>
	<hostedPaymentSettings>
		<setting>
			<settingName>hostedPaymentButtonOptions</settingName>
			<settingValue>{"text": "Pay"}</settingValue>
		</setting>
		<setting>
			<settingName>hostedPaymentBillingAddressOptions</settingName>
			<settingValue>{"show": false}</settingValue>
		</setting>
		<setting>
			<settingName>hostedPaymentIFrameCommunicatorUrl</settingName>
			<settingValue>{"url":"MY_URL"}</settingValue>
		</setting>
		<setting>
			<settingName>hostedPaymentReturnOptions</settingName>
			<settingValue>{"showReceipt" : false, "cancelUrl": "MY_URL", "cancelUrlText": "Close"}</settingValue>
		</setting>
	</hostedPaymentSettings>
</getHostedPaymentPageRequest>

Thanks for help.

Kipa
Member
10 REPLIES 10

How to get the other address field in AccetpUI payment form?

I just see first name , lastname , zipcode and Credit card fields