コード例 #1
0
 def consultar(cls, transaction_id):
     request = GatewayRequest(LocawebGatewayConfig.base_endpoint(), action="/" + str(transaction_id))
     response = GatewayResponse(response=request.get(cls.gateway_params()))
     return response.parse()
コード例 #2
0
 def cancelar(cls, transaction_id):
     request = GatewayRequest(LocawebGatewayConfig.base_endpoint(), action="/" + str(transaction_id) + "/estornar")
     response = GatewayResponse(response=request.post(cls.gateway_params()))
     return response.parse()
コード例 #3
0
 def criar(cls, params={}):
     request = GatewayRequest(LocawebGatewayConfig.base_endpoint(), action="/")
     response = GatewayResponse(response=request.post(cls.gateway_params(params)))
     return response.parse()