Module: Tappay::Endpoints

Defined in:
lib/tappay/endpoints.rb

Defined Under Namespace

Modules: Bind, Payment, Transaction

Class Method Summary collapse

Class Method Details

.base_urlObject



6
7
8
9
10
11
12
# File 'lib/tappay/endpoints.rb', line 6

def base_url
  if Tappay.configuration.sandbox?
    'https://sandbox.tappaysdk.com'
  else
    'https://prod.tappaysdk.com'
  end
end

.refund_urlObject



14
15
16
# File 'lib/tappay/endpoints.rb', line 14

def refund_url
  "#{base_url}/tpc/transaction/refund"
end