Class: Vpago::WingSdk::Checkout

Inherits:
Base
  • Object
show all
Defined in:
lib/vpago/wing_sdk/checkout.rb

Instance Method Summary collapse

Methods inherited from Base

#action_url, #app_checkout, #app_checkout?, #biller_code, #host, #initialize, #merchant_name, #payment_number, #rest_api_key, #return_url, #sandbox, #username

Methods included from PaymentAmountCalculator

#amount, #amount_with_fee, #transaction_fee, #transaction_fee_fix, #transaction_fee_percentage

Constructor Details

This class inherits a constructor from Vpago::WingSdk::Base

Instance Method Details

#gateway_paramsObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/vpago/wing_sdk/checkout.rb', line 4

def gateway_params
  {
    remark: payment_number,
    ask_remember: 0,
    sandbox: sandbox,
    bill_till_rbtn: 0,
    amount: amount_with_fee,
    bill_till_number: biller_code,
    username: username,
    rest_api_key: rest_api_key,
    return_url: return_url,
    merchant_name: merchant_name
  }
end