Module: Veritrans::PostData

Defined in:
lib/veritrans/post_data.rb

Overview

hold information of “post data” need to pass when server need to get_keys

Constant Summary collapse

Merchant =

:merchant_id, :merchant_url, :session_id, :finish_payment_return_url, :unfinish_payment_return_url, +:error_payment_return_url

[
  :merchant_id, 
  :merchant_url, 
  :finish_payment_return_url,
  :unfinish_payment_return_url,
  :error_payment_return_url
]
Payment =

:settlement_type, :gross_amount, :card_no, :card_exp_date, :customer_id, :previous_customer_flag, :customer_status,

[
  :settlement_type,
  :payment_type, 
  :gross_amount,
  :card_no,
  :card_exp_date, # mm/yy
  :customer_id,
  :previous_customer_flag,
  :customer_status,
  # :installment,
  :installment_type,
  :installment_banks,
  :installment_terms,
  # :point,
  :point_banks,
  :payment_methods
]
Personal =

:first_name, :last_name, :address1, :address2, :city, :country_code, :postal_code, :phone, :email, customer_specification_flag,

[
  :first_name,
  :last_name,
  :address1,
  :address2,
  :city,
  :country_code,
  :postal_code,
  :phone,
  :email,
  :customer_specification_flag # billing_address_different_with_shipping_address
]
Shipping =

:shipping_flag, :shipping_first_name, :shipping_last_name, :shipping_address1, :shipping_address2, :shipping_city, :shipping_country_code, :shipping_postal_code, :shipping_phone, :shipping_method,

[
  :shipping_flag, # required_shipping_address
  :shipping_first_name,
  :shipping_last_name,
  :shipping_address1,
  :shipping_address2,
  :shipping_city,
  :shipping_country_code,
  :shipping_postal_code,
  :shipping_phone,
  :shipping_method,
  :shipping_email
]
Language =

:lang_enable_flag, :lang

[
  :lang_enable_flag,
  :lang
]
Purchases =

:repeat_line, :purchases,

[
  :repeat_line,
  :purchases
]
PurchaseParam =

:commodity_id, :commodity_unit, :commodity_num, :commodity_name1, :commodity_name2

[
  :commodity_id,
  :commodity_unit, # commodity_qty
  :commodity_num,  # commodity_price
  :commodity_name1,
  :commodity_name2 
]
OtherParam =

:order_id, :session_id, :merchanthash, :card_capture_flag

[
  :order_id, 
  :session_id, 
  :merchanthash,
  :card_capture_flag,
  :promo_id,
  :promo_bins,
  :enable_3d_secure,
  :bank,
  :version
]
ServerParam =

:merchant_id, :merchanthash, :finish_payment_return_url, :unfinish_payment_return_url, :error_payment_return_url

[
  :merchant_id, 
  :merchanthash,
  :finish_payment_return_url,
  :unfinish_payment_return_url,
  :error_payment_return_url
]
PostParam =

Params are the combination of this group:

(Merchant + Payment + Personal + Shipping + Language + Purchases + OtherParam) - ServerParam