Giter Site home page Giter Site logo

authorize-net's Introduction

Authorize.net Boilerplate

This repo is not meant to be copy / pasted ( though largely could be ), however gives some stripped down code examples from a production application that uses Authorize.net's JS SDK to:

  1. Create Customers
  2. Create Payment Profiles
  3. Charge Customers
  4. Handle Webhook events
  5. Get Payment details

I did not write ANY of this code, though I can speak to some of it, but there was 0 documentation prior to me joining, so my knowledge on WHY certain decision's were made is limited.

This code is probably not the best implementation, but it has proven to work fairly consistently.

authorize-net-client.js holds all of the root functions. payments-controllers is where those root functions get called. payments-helpers is just 2 functions to help a couple of controllers. authorize-net-error-codes.js was an implementation to consolidate the enormous list of errors they can throw and what we mostly ran into.

Most of this is just ripped from https://github.com/AuthorizeNet/sample-code-node/tree/ef9e5c2d9e0379b5f47a0ebcb6847e711fe196ef because the Authorize.net documentation is so bad.

Authorize.net portal

I'm not sure what additional setup is required within the authorize.net portal, but one thing for sure is the AVS ( Address Verification System ) being configured.

There are also some Velocity Flags that you'll probably want to disable. We literally had payments fail to go through because we had a spike in people trying to give us money. It was really dumb.

authorize-net's People

Contributors

lucasbaze avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.