2click.js || Installation

@Pay's 2click.js allows you to generate mobile web payment buttons and @Pay-enable your existing payment forms.


Supported Browsers

In order to accept payments or register cards successfully with the @Pay JavaScript SDK, your Customer must be using IE8+, Chrome, Firefox 3+, or Safari 5.1+ (OSX / iOS) and must have Javascript enabled.

Installation

2click.js is installed by placing the following code snippet into your web page and replacing 'org_xyz' with your @Pay ID (obtained from your @Pay dashboard).

jQuery 1.9.1 is included because 2click.js requires jQuery version 1.9.1 or higher. If you already have jQuery on your webpage, skip the first line of the code snippet.

1
2
3
4
5
6
7
8
9
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
  <script type="text/javascript" src="https://dashboard.atpay.com/api/v4/js/atpay.js"></script>
  <script type="text/javascript">
          $(function( ){
                atpay.config( {
                  organization_sid:    "org_xyz"
                } );
          });
  </script>