Module: TpagaService::RefundApi

Extended by:
RefundApi
Included in:
RefundApi
Defined in:
lib/tpaga_service/api/refund_api.rb

Instance Method Summary collapse

Instance Method Details

#get_refund_credit_card_charge(transaction_id) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/tpaga_service/api/refund_api.rb', line 5

def get_refund_credit_card_charge(transaction_id)
#   @refund_req = Tpaga::CreditCardRefund.new(id: transaction_id)
#   return Tpaga::RefundApi.refund_credit_card_charge(@refund_req)
# rescue Tpaga::ClientError => e
#   data = JSON.parse(e.message, object_class: OpenStruct)
#   TpagaService.raise_errors(e) unless data.status == 404
#   raise Packen::ApiError.new(data.status, data.status, I18n.translate("errors.tpaga_service.#{data.status}"), {source: e.class})
end