<commit_before>#encoding: utf-8

require 'cgi'
require 'digest/md5'

module ActiveMerchant #:nodoc:
  module Billing #:nodoc:
    module Integrations #:nodoc:
      module Allpay
        class Helper < ActiveMerchant::Billing::Integrations::Helper

          ### 常見介面

          # 廠商編號
          mapping :merchant_id, 'MerchantID'
          mapping :account, 'MerchantID' # AM common
          # 廠商交易編號
          mapping :merchant_trade_no, 'MerchantTradeNo'
          mapping :order, 'MerchantTradeNo' # AM common
          # 交易金額
          mapping :total_amount, 'TotalAmount'
          mapping :amount, 'TotalAmount' # AM common
          # 付款完成通知回傳網址
          mapping :return_url, 'ReturnURL' # AM common
          # Client 端返回廠商網址
          mapping :client_back_url, 'ClientBackURL'
          # mapping :return_url, 'ClientBackURL' # AM common
          # 付款完成 redirect 的網址
          mapping :redirect_url, 'OrderResultURL'
          # 交易描述
          mapping :description, 'TradeDesc'

          ### Allpay 專屬介面

          # 交易類型
          mapping :payment_type, 'PaymentType'

          # 選擇預設付款方式
          #   Credit:信用卡
          #   WebATM:網路 ATM
          #   ATM:自動櫃員機
          #   CVS:超商代碼
          #   BARCODE:超商條碼
          #   Alipay:支付寶
          #   Tenpay:財付通
          #   TopUpUsed:儲值消費
          #   ALL:不指定付款方式, 由歐付寶顯示付款方式 選擇頁面<commit_msg>add payment_info_url for atm, cvs callback return<commit_after>#encoding: utf-8

require 'cgi'
require 'digest/md5'

module ActiveMerchant #:nodoc:
  module Billing #:nodoc:
    module Integrations #:nodoc:
      module Allpay
        class Helper < ActiveMerchant::Billing::Integrations::Helper

          ### 常見介面

          # 廠商編號
          mapping :merchant_id, 'MerchantID'
          mapping :account, 'MerchantID' # AM common
          # 廠商交易編號
          mapping :merchant_trade_no, 'MerchantTradeNo'
          mapping :order, 'MerchantTradeNo' # AM common
          # 交易金額
          mapping :total_amount, 'TotalAmount'
          mapping :amount, 'TotalAmount' # AM common
          # 付款完成通知回傳網址
          mapping :return_url, 'ReturnURL' # AM common
          # Client 端返回廠商網址
          mapping :client_back_url, 'ClientBackURL'
          # mapping :return_url, 'ClientBackURL' # AM common
          # 付款完成 redirect 的網址
          mapping :redirect_url, 'OrderResultURL'
          # 交易描述
          mapping :description, 'TradeDesc'
          # ATM, CVS 序號回傳網址
          mapping :payment_info_url, 'PaymentInfoURL'

          ### Allpay 專屬介面

          # 交易類型
          mapping :payment_type, 'PaymentType'

          # 選擇預設付款方式
          #   Credit:信用卡
          #   WebATM:網路 ATM
          #   ATM:自動櫃員機
          #   CVS:超商代碼
          #   BARCODE:超商條碼
          #   Alipay:支付寶
          #   Tenpay:財付通
          #   TopUpUsed:儲值消費
          #   ALL:不指定付款方式, 由歐付寶顯示付款方式 選擇頁面
{'fraction_non_alphanumeric': 0.08321629213483146, 'fraction_numerical': 0.0014044943820224719, 'mean_word_length': 1.8320079522862822, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7484527', 'n_tokens_mistral': 1065, 'n_tokens_neox': 1146, 'n_words': 197}