mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 09:21:43 +02:00
change logic, added tests
This commit is contained in:
parent
e00e87a15c
commit
d28afca00f
5 changed files with 115 additions and 52 deletions
|
@ -64,6 +64,10 @@ class PaymentOrder < ApplicationRecord
|
|||
false
|
||||
end
|
||||
|
||||
def payment_reference?
|
||||
response && response['payment_reference'].present?
|
||||
end
|
||||
|
||||
def base_transaction(sum:, paid_at:, buyer_name:)
|
||||
BankTransaction.new(
|
||||
description: invoice.order,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue