Class: ActiveMerchant::Billing::Integrations::Alipay::Notification
- Inherits:
-
Notification
- Object
- Notification
- ActiveMerchant::Billing::Integrations::Alipay::Notification
- Includes:
- Sign
- Defined in:
- lib/active_merchant/billing/integrations/alipay/notification.rb
Instance Method Summary collapse
Methods included from Sign
Instance Method Details
#acknowledge ⇒ Object
23 24 25 26 |
# File 'lib/active_merchant/billing/integrations/alipay/notification.rb', line 23 def acknowledge raise StandardError.new("Faulty alipay result: ILLEGAL_SIGN") unless verify_sign true end |
#complete? ⇒ Boolean
11 12 13 |
# File 'lib/active_merchant/billing/integrations/alipay/notification.rb', line 11 def complete? trade_status == "TRADE_FINISHED" end |
#pending? ⇒ Boolean
15 16 17 |
# File 'lib/active_merchant/billing/integrations/alipay/notification.rb', line 15 def pending? trade_status == 'WAIT_BUYER_PAY' end |
#status ⇒ Object
19 20 21 |
# File 'lib/active_merchant/billing/integrations/alipay/notification.rb', line 19 def status trade_status end |