Payment

class altapay.Payment(version=None, header=None, body=None, api=None)

Bases: altapay.resource.Resource

create(terminal, shop_orderid, amount, currency, **kwargs)

Create a payment request.

Parameters:
  • terminal – name of the targeted AltaPay terminal
  • shop_orderid – your order ID to be attached to the payment resource
  • amount – order amount in floating point
  • currency – currency for the payment resource
  • **kwargs – used for remaining, optional, payment request parameters, see the AltaPay documentation for a full list. Note that you will need to use lists and dictionaries to map the URL structures from the AltaPay documentation into these kwargs.
Return type:

True if a payment was created, otherwise False.