Class: DragonpayPayment::Merchant
- Inherits:
-
Object
- Object
- DragonpayPayment::Merchant
- Defined in:
- lib/dragonpay_payment/merchant.rb
Constant Summary collapse
- URL =
'https://gw.dragonpay.ph/Pay.aspx'
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#ccy ⇒ Object
Returns the value of attribute ccy.
-
#description ⇒ Object
Returns the value of attribute description.
-
#digest ⇒ Object
Returns the value of attribute digest.
-
#email ⇒ Object
Returns the value of attribute email.
-
#merchant_id ⇒ Object
Returns the value of attribute merchant_id.
-
#txn_id ⇒ Object
Returns the value of attribute txn_id.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Merchant
constructor
A new instance of Merchant.
- #pay ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Merchant
Returns a new instance of Merchant.
8 9 10 11 12 13 |
# File 'lib/dragonpay_payment/merchant.rb', line 8 def initialize( = {}) @amount = [:amount] @ccy = [:ccy] @description = [:description] @email = [:email] end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
4 5 6 |
# File 'lib/dragonpay_payment/merchant.rb', line 4 def amount @amount end |
#ccy ⇒ Object
Returns the value of attribute ccy.
4 5 6 |
# File 'lib/dragonpay_payment/merchant.rb', line 4 def ccy @ccy end |
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/dragonpay_payment/merchant.rb', line 4 def description @description end |
#digest ⇒ Object
Returns the value of attribute digest.
4 5 6 |
# File 'lib/dragonpay_payment/merchant.rb', line 4 def digest @digest end |
#email ⇒ Object
Returns the value of attribute email.
4 5 6 |
# File 'lib/dragonpay_payment/merchant.rb', line 4 def email @email end |
#merchant_id ⇒ Object
Returns the value of attribute merchant_id.
4 5 6 |
# File 'lib/dragonpay_payment/merchant.rb', line 4 def merchant_id @merchant_id end |
#txn_id ⇒ Object
Returns the value of attribute txn_id.
4 5 6 |
# File 'lib/dragonpay_payment/merchant.rb', line 4 def txn_id @txn_id end |
Instance Method Details
#pay ⇒ Object
15 16 17 |
# File 'lib/dragonpay_payment/merchant.rb', line 15 def pay generate_url end |