wepay.calls.subscription_charge Module

class wepay.calls.subscription_charge.SubscriptionCharge(api)[source]

The /subscription_charge API calls

__call__(subscription_charge_id, **kwargs)[source]

Call documentation: /subscription_charge, plus extra keyword parameters:

Parameters:
  • access_token (str) – will be used instead of instance’s access_token, with batch_mode=True will set authorization param to it’s value.
  • batch_mode (bool) – turn on/off the batch_mode, see wepay.api.WePay
  • batch_reference_id (str) – reference_id param for batch call, see wepay.api.WePay
  • api_version (str) – WePay API version, see wepay.api.WePay
find(subscription_id, **kwargs)

Call documentation: /subscription_charge/find, plus extra keyword parameters:

Parameters:
  • access_token (str) – will be used instead of instance’s access_token, with batch_mode=True will set authorization param to it’s value.
  • batch_mode (bool) – turn on/off the batch_mode, see wepay.api.WePay
  • batch_reference_id (str) – reference_id param for batch call, see wepay.api.WePay
  • api_version (str) – WePay API version, see wepay.api.WePay
refund(subscription_charge_id, **kwargs)

Call documentation: /subscription_charge/refund, plus extra keyword parameters:

Parameters:
  • access_token (str) – will be used instead of instance’s access_token, with batch_mode=True will set authorization param to it’s value.
  • batch_mode (bool) – turn on/off the batch_mode, see wepay.api.WePay
  • batch_reference_id (str) – reference_id param for batch call, see wepay.api.WePay
  • api_version (str) – WePay API version, see wepay.api.WePay