Ejemplo n.º 1
0
 def get(payment_id):
     """Get the payment records."""
     try:
         response, status = PaymentService.get_payment(payment_id), HTTPStatus.OK
     except BusinessException as exception:
         response, status = {'code': exception.code, 'message': exception.message}, exception.status
     return jsonify(response), status
Ejemplo n.º 2
0
 def get(payment_id):
     """Get the payment records."""
     try:
         response, status = PaymentService.get_payment(
             payment_id), HTTPStatus.OK
     except BusinessException as exception:
         return exception.response()
     return jsonify(response), status