Method: PaymentRails::InvoicePaymentGateway#invoice_payment_builder
- Defined in:
- lib/paymentrails/gateways/InvoicePaymentGateway.rb
#invoice_payment_builder(response) ⇒ Object
32 33 34 35 36 37 38 39 40 |
# File 'lib/paymentrails/gateways/InvoicePaymentGateway.rb', line 32 def invoice_payment_builder(response) invoice_payment = InvoicePayment.new data = JSON.parse(response) data.each do |key, value| next unless key === 'invoicePayment' loosely_hydrate_model(invoice_payment, value) end invoice_payment end |