-
Notifications
You must be signed in to change notification settings - Fork 6
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
Conversation
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.
Thanks for contribution. Nice work. Would like to have one change otherwise looks good
|
||
```erbruby | ||
# checkout.html.erb | ||
<%= Wayforpay::Helpers.purchase_form( |
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.
Will it work as regular rails helper (form_for
, link_to
)?
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.
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.
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.
@galulex should I do any changes?
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.
@galulex any updates? Do you want me to change my code somehow?
@bguban Sorry I am AFK. Merging now and will push to rubygems next week |
#7