mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 23:24:48 +02:00
Move payment method fetching logic to Model, rewrite tests for EveryPay component
This commit is contained in:
parent
fa1687baf0
commit
b6469f3dfe
10 changed files with 139 additions and 77 deletions
|
@ -12,7 +12,7 @@ class PaymentCallbackTest < ApplicationIntegrationTest
|
|||
invoice = payable_invoice
|
||||
assert_matching_bank_transaction_exists(invoice)
|
||||
|
||||
request_params = every_pay_request_params.merge(invoice_id: invoice.id)
|
||||
request_params = every_pay_request_params.merge(payment_order: invoice.id)
|
||||
post "/registrar/pay/callback/every_pay", params: request_params
|
||||
|
||||
assert_response :ok
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue