add more tests
This commit is contained in:
parent
c0c84b9dbf
commit
38ae24c6b3
6 changed files with 157 additions and 9 deletions
|
|
@ -47,7 +47,7 @@ class Payment < ActiveRecord::Base
|
|||
end
|
||||
unless response.success?
|
||||
errors.add(:base, response.message)
|
||||
self.status = 2
|
||||
self.status = 'failure'
|
||||
return false
|
||||
end
|
||||
self.user_id = user.id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue