Class: PayPal::Recurring::Response::Payment
- Defined in:
- lib/paypal/recurring/response/payment.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#errors, #initialize, #params, #success?, #valid?
Methods included from Utils
Constructor Details
This class inherits a constructor from PayPal::Recurring::Response::Base
Instance Method Details
#approved? ⇒ Boolean
18 19 20 |
# File 'lib/paypal/recurring/response/payment.rb', line 18 def approved? params[:PAYMENTINFO_0_ACK] == "Success" end |
#completed? ⇒ Boolean
14 15 16 |
# File 'lib/paypal/recurring/response/payment.rb', line 14 def completed? params[:PAYMENTINFO_0_PAYMENTSTATUS] == "Completed" end |