Sha256: 893251dd0cfadc4dbf9dae435a3a7ccd47e88d1d6ea4c3cd8bee0d7c67b44ab6

Contents?: true

Size: 861 Bytes

Versions: 2

Compression:

Stored size: 861 Bytes

Contents

# -*- encoding : utf-8 -*-
Rubykassa.configure do |config|
  config.login = ENV["ROBOKASSA_LOGIN"]
  config.first_password = ENV["ROBOKASSA_FIRST_PASSWORD"]
  config.second_password = ENV["ROBOKASSA_SECOND_PASSWORD"]
  config.mode = :test # or :production
  config.http_method = :get # or :post
  config.xml_http_method = :get # or :post


  # Result callback is called in RobokassaController#paid action if valid signature
  # was generated. It should always return "OK#{ invoice_id }" string, so implement
  # your custom logic above `render text: notification.success` line

  config.result_callback = ->(notification) { render text: notification.success }

  # Define success or failure callbacks here like:

  # config.success_callback = ->(notification) { render text: 'success' }
  # config.fail_callback = ->(notification) { redirect_to root_path }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubykassa-0.4.2 lib/generators/rubykassa/templates/rubykassa.rb
rubykassa-0.4.1 lib/generators/rubykassa/templates/rubykassa.rb