Skip to content
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

Merged
merged 19 commits into from
Jun 5, 2018
Merged

Registry #419 #829

merged 19 commits into from
Jun 5, 2018

Conversation

maciej-szlosarczyk
Copy link
Contributor

No description provided.

@maciej-szlosarczyk maciej-szlosarczyk force-pushed the credit-and-debit-card-payments branch 3 times, most recently from 144cef3 to d76e9c1 Compare April 23, 2018 08:44
@maciej-szlosarczyk maciej-szlosarczyk force-pushed the credit-and-debit-card-payments branch from d76e9c1 to 33a6971 Compare April 23, 2018 08:49
@vohmar vohmar requested a review from artur-intech April 23, 2018 09:27
@maciej-szlosarczyk
Copy link
Contributor Author

sum_cache is not used. You can check that by searching the diff from the PR.

end

def complete_transaction
raise NotImplementedError
Copy link
Contributor

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.

https://ruby-doc.org/core-2.2.2/NotImplementedError.html

%h4= "Credit card payment successful"
%hr
%dl.dl-horizontal
%dt= t(:invoice)
Copy link
Contributor

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
Copy link
Contributor

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)
Copy link
Contributor

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')?

Maciej Szlosarczyk added 2 commits April 23, 2018 15:23
Allow for nil values in `ENV['payment_intermediaries']` and `ENV['payments_banks']`
@maciej-szlosarczyk maciej-szlosarczyk force-pushed the credit-and-debit-card-payments branch from 6154bc8 to a1bbdc0 Compare April 26, 2018 11:35
@vohmar vohmar merged commit a803f47 into master Jun 5, 2018
@vohmar vohmar deleted the credit-and-debit-card-payments branch June 20, 2018 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants