Class: PayPal::Recurring::Response::Payment

Inherits:
Base
  • Object
show all
Defined in:
lib/paypal/recurring/response/payment.rb

Instance Attribute Summary

Attributes inherited from Base

#response

Instance Method Summary collapse

Methods inherited from Base

#errors, #initialize, #params, #success?, #valid?

Methods included from Utils

#convert_to_time, #mapping

Constructor Details

This class inherits a constructor from PayPal::Recurring::Response::Base

Instance Method Details

#approved?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/paypal/recurring/response/payment.rb', line 18

def approved?
  params[:PAYMENTINFO_0_ACK] == "Success"
end

#completed?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/paypal/recurring/response/payment.rb', line 14

def completed?
  params[:PAYMENTINFO_0_PAYMENTSTATUS] == "Completed"
end