-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Registry #419 #829
Registry #419 #829
Conversation
* Refactor BankLink into Payments::BankLink, add Payments::EveryPay * Write tests for existing invoice views * Write basic tests for Payments module
144cef3
to
d76e9c1
Compare
d76e9c1
to
33a6971
Compare
|
app/models/payments/base.rb
Outdated
end | ||
|
||
def complete_transaction | ||
raise NotImplementedError |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we could remove methods that are required to be implemented by subclass, and instead reply on NameError
exception which will be thrown if a method is not found?
Also, it seems NotImplementedError
usage scope is a bit different.
%h4= "Credit card payment successful" | ||
%hr | ||
%dl.dl-horizontal | ||
%dt= t(:invoice) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about creating separate translation files, instead of replying on "globals" from en.yml
? t '.invoice
shortcut might be handy, for example
@@ -0,0 +1,4 @@ | |||
= form_tag "https://igw-demo.every-pay.com/transactions/", method: :post do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it really be here? This seems to be some demo instance, isn't it?
@other_pay = Payments::EveryPay.new('every_pay', @invoice, {}) | ||
|
||
# To avoid problems with time conversion. | ||
travel_to Time.at(1522542600) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks cryptic. Any chance using travel_to Time.zone.parse('xxxx-xx-xx')?
Allow for nil values in `ENV['payment_intermediaries']` and `ENV['payments_banks']`
6154bc8
to
a1bbdc0
Compare
No description provided.