add Payment#purchase tests
This commit is contained in:
parent
4b0a5b1125
commit
5c21d1c4d9
5 changed files with 67 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ class Payment < ActiveRecord::Base
|
|||
amount: amount_to_pay,
|
||||
currency: conference.tickets.first.price_currency
|
||||
|
||||
self.amount = gateway_response[:amount]
|
||||
self.last4 = gateway_response[:source][:last4]
|
||||
self.authorization_code = gateway_response[:id]
|
||||
self.status = 'success'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue