Class: Paymob::PaymentTypes::Onetime

Inherits:
Base
  • Object
show all
Defined in:
lib/paymob/payment_types/onetime.rb

Constant Summary

Constants inherited from Base

Base::REQUIRED_BILLING_DATA_FIELDS, Base::REQUIRED_PAYMENT_FIELDS

Instance Attribute Summary

Attributes inherited from Base

#accept_api

Instance Method Summary collapse

Methods inherited from Base

#initialize_order

Instance Method Details



6
7
8
9
10
# File 'lib/paymob/payment_types/onetime.rb', line 6

def payment_link
  return if @accept_api.payment_key.blank?

  "#{Paymob.ifream_link}#{Paymob.onetime_ifream_number}?payment_token=#{@accept_api.payment_key}"
end