Esempio n. 1
0
def update_subscription(sub_id=None):
    cc, options = setup_update()
    options['subscription_id'] = sub_id
    gateway = AuthorizeNet(options, gateway_mode='test')
    result = gateway.update_recurring('100', cc, **options)

    print unicode(result)
Esempio n. 2
0
def subscribe():
    cc, options = setup_subscribe()
    gateway = AuthorizeNet(options, gateway_mode='test')
    result = gateway.recurring('100', cc, **options)

    print unicode(result)
    return result['subscriptionId']
Esempio n. 3
0
def cancel_subscription(sub_id=None):
    cc, options = setup_subscribe()
    gateway = AuthorizeNet(options, gateway_mode='test')
    result = gateway.cancel_recurring(sub_id)
    
    print unicode(result)