mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 07:04:47 +02:00
Cover EveryPay / BankLink payments with tests
This commit is contained in:
parent
b6469f3dfe
commit
6418924faf
7 changed files with 145 additions and 61 deletions
|
@ -57,14 +57,9 @@ class Registrar
|
|||
private
|
||||
|
||||
def check_supported_payment_method
|
||||
return if supported_payment_method?
|
||||
return if PaymentOrder.supported_method?(params[:bank], shortname: true)
|
||||
|
||||
raise(StandardError, 'Not supported payment method')
|
||||
end
|
||||
|
||||
def supported_payment_method?
|
||||
method_name = PaymentOrder.type_from_shortname(params[:bank])
|
||||
PaymentOrder.supported_method?(method_name)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue