Gateway¶
This module is the primary class for communicating with the AkuLaku API.
-
class
akulaku.gateway.AkuLakuGateway(app_id, secret_key, use_sandbox=False)[source]¶ Bases:
objectThis class for communication with Akulaku API
-
base_url¶ Get URL from AkuLaku API
-
cancel_payment(order_number)[source]¶ Post Cancel Payment Akulaku
Parameters: order_number ('int') – Returns: string
-
create_order(order_request)[source]¶ Sends a new order to the AkuLaku API
Parameters: order_request (akulaku.models.NewOrderRequest) – Returns: the ‘OrderId’ from AkuLaku. Needed for subsequent actions. Return type: int
-