Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There is always Paython: <a href="https://github.com/abunsen/Paython" rel="nofollow">https://github.com/abunsen/Paython</a></p> <p>Currently supports 5+ payment gateways:</p> <ol> <li>Authorize.net </li> <li>First Data/Linkpoint</li> <li>Innovative Gateway (from intuit)</li> <li>PlugnPay</li> <li>Stripe</li> </ol> <p>Here is an example:</p> <pre><code>from paython import CreditCard, AuthorizeNet </code></pre> <p>set up a card first:</p> <pre><code>credit_card = CreditCard( number = '4111111111111111', exp_mo = '02', exp_yr = '2012', first_name = 'John', last_name = 'Doe', cvv = '911', strict = False ) </code></pre> <p>check if its valid:</p> <pre><code>if not credit_card.is_valid(): return 'houston, we have a problem' # checks card number + expiration date </code></pre> <p>Set up customer data to charge, not all fields are required:</p> <pre><code>customer_data = dict( address='123 Main St', address2='Apt 1', city='Pleasantville', state='IA', zipcode='54321', country='US', phone='654-369-9589', email='john@localwoodshop.com', ip='127.0.0.1') </code></pre> <p>authorize against gateway, options include debug output or test credentials:</p> <pre><code> api = AuthorizeNet(username='test', password='testpassword', debug=True, test=True) gateway_response = api.auth(amount='0.05', credit_card=credit_card, billing_info=customer_data, shipping_info=None) </code></pre> <p>now you can settle:</p> <pre><code> api = AuthorizeNet(username='test', password='testpassword', debug=True, test=True) gateway_response = api.settle(amount='0.05', trans_id='2156729380') </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload