Previous topic

Teams

Next topic

Deposits

This Page

Charges

class fattmerchant.controllers.charges.ChargesController(request)

Class to allow interfacing with charges within the Fattmerchant API

create(id=None, meta=None, total=None, pre_auth=None)

Creates a charge for a merchant through the API

Parameters:
  • id (string) – A payment method ID
  • meta (dict) – Any meta data for the payment i.e. tax
  • total (float) – The total amount to charge
  • pre_auth (boolean) – Whether or not to confirm funds exist
Returns:

A single transaction object

Return type:

Transaction

Raises:

InvalidRequestDataException – Raised if id is not provided or meta is not provided or total is not provided