class MandarinPay::Configuration

Constants

ATTRIBUTES

Public Class Methods

new() click to toggle source
# File lib/mandarin_pay/configuration.rb, line 9
def initialize
  self.merchant_id      = "your_merchant_id"
  self.sharedsec        = "sharedsec"
  self.success_callback = ->(_notification) { render text: "success" }
  self.fail_callback    = ->(_notification) { render text: "fail" }
  self.result_callback  = ->(_notification) { render text: notification.success }
end