Module: Payfast

Defined in:
lib/payfast/client.rb,
lib/payfast/config.rb,
lib/payfast/errors.rb,
lib/payfast/payment.rb,
lib/payfast/version.rb,
lib/payfast/attributes.rb,
lib/payfast/payment_builder.rb,
lib/payfast/payment_methods.rb,
lib/payfast/signature_generator.rb,
lib/generators/payfast/install_generator.rb

Defined Under Namespace

Modules: Generators Classes: Attributes, Client, Config, MissingAttributeError, Payment, PaymentBuilder, PaymentError, PaymentMethods, SignatureGenerator, UnknownValueError

Constant Summary collapse

VERSION =
'0.0.1'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.cancel_urlObject

Returns the value of attribute cancel_url.



5
6
7
# File 'lib/payfast/config.rb', line 5

def cancel_url
  @cancel_url
end

.merchant_idObject

Returns the value of attribute merchant_id.



5
6
7
# File 'lib/payfast/config.rb', line 5

def merchant_id
  @merchant_id
end

.merchant_keyObject

Returns the value of attribute merchant_key.



5
6
7
# File 'lib/payfast/config.rb', line 5

def merchant_key
  @merchant_key
end

.notify_urlObject

Returns the value of attribute notify_url.



5
6
7
# File 'lib/payfast/config.rb', line 5

def notify_url
  @notify_url
end

.passphraseObject

Returns the value of attribute passphrase.



5
6
7
# File 'lib/payfast/config.rb', line 5

def passphrase
  @passphrase
end

.payment_methodObject

Returns the value of attribute payment_method.



5
6
7
# File 'lib/payfast/config.rb', line 5

def payment_method
  @payment_method
end

.payment_urlObject

Returns the value of attribute payment_url.



5
6
7
# File 'lib/payfast/config.rb', line 5

def payment_url
  @payment_url
end

.return_urlObject

Returns the value of attribute return_url.



5
6
7
# File 'lib/payfast/config.rb', line 5

def return_url
  @return_url
end

Class Method Details

.setup(&block) ⇒ Object



7
8
9
# File 'lib/payfast/config.rb', line 7

def setup(&block)
  instance_eval(&block)
end