module MandarinPay
Constants
- VERSION
Public Class Methods
configure(&block)
click to toggle source
# File lib/mandarin_pay.rb, line 7 def configure(&block) MandarinPay::Client.configure(&block) end
pay_url(invoice_id, total, custom_params, extra_params = {})
click to toggle source
# File lib/mandarin_pay.rb, line 17 def pay_url(invoice_id, total, custom_params, extra_params = {}) MandarinPay::PaymentInterface.new do self.total = total self.invoice_id = invoice_id self.params = custom_params end.pay_url(extra_params) end
Private Instance Methods
configure(&block)
click to toggle source
# File lib/mandarin_pay.rb, line 7 def configure(&block) MandarinPay::Client.configure(&block) end
pay_url(invoice_id, total, custom_params, extra_params = {})
click to toggle source
# File lib/mandarin_pay.rb, line 17 def pay_url(invoice_id, total, custom_params, extra_params = {}) MandarinPay::PaymentInterface.new do self.total = total self.invoice_id = invoice_id self.params = custom_params end.pay_url(extra_params) end