Skip to main content

Posts

Showing posts from December, 2021

AuthorizeNet Accept Sample App - Uncaught TypeError t is undefined

Solution for AuthorizeNet Accept Hosted Form (accept-sample-app) example. For error: Uncaught TypeError: t is undefined https://jstest.authorize.net/v3/AcceptUI.js As a developer, it is very annoying when documentation ignores a step that is crucial in testing of the sample code. For AuthorizeNet "Accept Sample App" code it was as simple as a class name "AcceptUI", reading the minified javascript code in reverse was no fun. At the same time, every sample code should be a standalone example, if it inherits from previous code, then one should mention that this code is continuation of xyz. Why provide a bookmark directly to the sample code, when the code requires additional code that is mentioned three-four pages up? Sample from page: https://developer.authorize.net/api/reference/features/acceptjs.html#Using_the_Hosted_Payment_Information_Form