module OffsitePayments::Integrations::Allpay

Constants

PAYMENT_ALIPAY
PAYMENT_ATM
PAYMENT_BARCODE
PAYMENT_CREDIT_CARD
PAYMENT_CVS
PAYMENT_TYPE
SUBPAYMENT_ATM_BOT
SUBPAYMENT_ATM_CHINATRUST
SUBPAYMENT_ATM_ESUN
SUBPAYMENT_ATM_FIRST
SUBPAYMENT_ATM_FUBON
SUBPAYMENT_ATM_HUANAN
SUBPAYMENT_ATM_TAISHIN
SUBPAYMENT_CVS_CVS
SUBPAYMENT_CVS_FAMILY
SUBPAYMENT_CVS_HILIFE
SUBPAYMENT_CVS_IBON
SUBPAYMENT_CVS_OK

Public Class Methods

notification(post) click to toggle source
# File lib/offsite_payments/integrations/allpay.rb, line 48
def self.notification(post)
  Notification.new(post)
end
service_url() click to toggle source
# File lib/offsite_payments/integrations/allpay.rb, line 34
def self.service_url
  mode = OffsitePayments.mode
  case mode
  when :production
    'https://payment.ecpay.com.tw/Cashier/AioCheckOut'
  when :development
    'https://payment-stage.ecpay.com.tw/Cashier/AioCheckOut'
  when :test
    'https://payment-stage.ecpay.com.tw/Cashier/AioCheckOut'
  else
    raise StandardError, "Integration mode set to an invalid value: #{mode}"
  end
end
setup() { |self| ... } click to toggle source
# File lib/offsite_payments/integrations/allpay.rb, line 52
def self.setup
  yield(self)
end