cancel
Showing results for 
Search instead for 
Did you mean: 

struggling with creating checkout page using formtitan - transaction error inside

I'm trying to setup a simple payment page on a formtitan form: https://iasservices.formtitan.com/ft07ff50da1531490463405_copy?fld16=0060Y00000JQwmO#

 

But when I try to process a payment I am getting this error:

The element 'transactionRequest' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'customer' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'customerIP, cardholderAuthentication, retail, employeeId, transactionSettings, userFields, surcharge, merchantDescriptor, subMerchant, tip' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.
 
Any help is appreciated
 
This is the reply from formtitan customer support:
'We've been looking and its a problem from your end/authorize.
 
1- you have mandatory field: bill to - state province
2- you have issue with customer field mapping :
The element 'transactionRequest' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'customer' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd
 
so its somethign with your mapping inside authorize.net
 
3-missing email
{"errorCode":"33","errorText":"Bill To State/Province is required."},{"errorCode":"33","errorText":"Email is required."}
 
you should fix the errors and also can verify with authorize.net
 
4-customer object is not supported for you
 
if the mapping is good, all will work.'
 
These images show what fields are mapped to what on authorize.net, or should be.
 
Can someone please help?FireShot Capture 013 - Copy of invoice style payment - https___formtitan.com_app__openForm=2026236.png
FireShot Capture 014 - Copy of invoice style payment - https___formtitan.com_app__openForm=2026236.png
FireShot Capture 015 - Copy of invoice style payment - https___formtitan.com_app__openForm=2026236.png
FireShot Capture 016 - Copy of invoice style payment - https___formtitan.com_app__openForm=2026236.png
nightyard
Member
5 REPLIES 5

bump

nightyard
Member

Hello @nightyard

 

Can you provide the entire XML request generated by your formtitan code?  Without that, it will be difficult to assist.

 

Richard

request:
{"createTransactionRequest":{"merchantAuthentication":{"name":"95eXTt6qx","transactionKey":"**"},"transactionRequest":{"transactionType":"authCaptureTransaction","amount":"1.23","payment":{"creditCard":{"cardNumber":"CARD----015","expirationDate":"2020-12","cardCode":"XXX"}},"billTo":{"firstName":"DevFirstName","lastName":"DevLastName","address":"DevAddress","city":"DevCity","state":"DevSTate","zip":"25000","country":"DevCountry"},"shipTo":{"firstName":"DevFirstName","lastName":"DevLastName","address":"DevAddress","city":"DevCity","state":"DevSTate","zip":"25000","country":"DevCountry"},"customer":{"email":"EMAIL"}}}}
*****
reply:
"messages":{"resultCode":"Error","message":[{"code":"E00003","text":"The element 'transactionRequest' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'customer' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'customerIP, cardholderAuthentication, retail, employeeId, transactionSettings, userFields, surcharge, merchantDescriptor, subMerchant, tip, processingOptions, subsequentAuthInformation' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'."}]}}
bump
Hi nightyard, It appears as though you have the email address in the wrong position in your request. Submitted as the following, it is successful: { "createTransactionRequest": { "merchantAuthentication": { "name": "6Dzz7r9G9D8", "transactionKey": "XXXXXXXXXXXXX" }, "transactionRequest": { "transactionType": "authCaptureTransaction", "amount": "1.24", "payment": { "creditCard": { "cardNumber": "XXXX1111", "expirationDate": "2020-12", "cardCode": "XXX" } }, "customer": { "email": "test@visa.com" }, "billTo": { "firstName": "Test", "lastName": "Test", "address": "123 Main Street", "city": "Kirkland", "state": "WA", "zip": "98004", "country": "USA" }, "shipTo": { "firstName": "Test", "lastName": "Testing", "address": "456 Main St", "city": "Kirkland", "state": "WA", "zip": "98004", "country": "usa" } } } } Response: { "transactionResponse": { "responseCode": "1", "authCode": "12CD56", "avsResultCode": "Y", "cvvResultCode": "M", "cavvResultCode": "2", "transId": "40016620236", "refTransID": "", "transHash": "8A705773E45826824276E0D3CD1C01F1", "testRequest": "0", "accountNumber": "XXXX1111", "accountType": "Visa", "messages": [ { "code": "1", "description": "This transaction has been approved." } ], "transHashSha2": "1094832A8DD6FBF5F6A08ECA1853057993D42249A4F38C1810CB4C4CD621A0BFC67E29C764037E6F7433D760A5A2E58DFE5C798CF595B6357FA985F6AD70A2A4", "networkTransId": "123456789 NNN H" }, "messages": { "resultCode": "Ok", "message": [ { "code": "I00001", "text": "Successful." } ] } } I hope this is helpful to you. Regards, Elaine