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

Add purchase form and check purchase response #8

Merged
merged 4 commits into from
Oct 7, 2021

Conversation

bguban
Copy link
Contributor

@bguban bguban commented Sep 12, 2021

#7

Copy link
Member

@galulex galulex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contribution. Nice work. Would like to have one change otherwise looks good

lib/wayforpay/payments.rb Outdated Show resolved Hide resolved

```erbruby
# checkout.html.erb
<%= Wayforpay::Helpers.purchase_form(
Copy link
Member

@galulex galulex Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will it work as regular rails helper (form_for, link_to)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope. I can remove self. part from the method definition and in this case you can just include the module into your controller but in case if somebody is going to use the gem outside rails then it can be not so clear.
I prefer the current implementation because it's straight, explicit, and simple.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@galulex should I do any changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@galulex any updates? Do you want me to change my code somehow?

@galulex
Copy link
Member

galulex commented Oct 7, 2021

@bguban Sorry I am AFK. Merging now and will push to rubygems next week

@galulex galulex merged commit da5cdb6 into activebridge:master Oct 7, 2021
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.

2 participants