Reply
Highlighted
Contributor
Posts: 17
Registered: ‎01-25-2019

Gets JS error after submit payment form

Getting following error after getting navigated to https://test.authorize.net/payment/payment

url

 

ERROR TypeError: Cannot read property 'billTo' of null
at e.initializeBillingAddress (main.bundle.js:1)

main.bundle.js:1 ERROR TypeError: Cannot read property 'offsetHeight' of null

Contributor
Posts: 17
Registered: ‎01-25-2019

Re: Gets JS error after submit payment form

Found the problem. Submitting to incorrect URL,

It should not be a forms submit be a JSON call to


Sandbox API Endpoint: https://apitest.authorize.net/xml/v1/request.api

sending a Transaction Object with dataValue init