Skip to content

Releases: ZeroOneStudio/rubykassa

v0.4.0

12 Aug 17:16
Compare
Choose a tag to compare

Breaking changes in API

There is no more necessity to pass controller variable to callbacks, only notification variable is passed to a callback. There is enough to do the following:

 config.success_callback = -> (notification) {
   # your success callback
 }

v0.3.2

11 Aug 05:49
Compare
Choose a tag to compare
  • Add result_callback that allows to implement custom logic for Result URL.
  • Fix README: describe the proper way how to call controller helpers within a callback.

@notification.success is moved from RobokassaController#paid, now callback is called there. To make this action return "OK#{ invoice_id }" again add config.result_callback = -> (controller, notification) { controller.render text: notification.success } line to your initializer.