Method: Supreme::Status#status
- Defined in:
- lib/supreme/response.rb
#status ⇒ Object
Returns the status of the payment. This is probably the best way to check if the payment has succeeded. It returns one of the following values:
-
Open– Payment is still processing. -
Success– The payment was successful. -
Cancelled– The payment was explicitly cancelled by the customer. -
Failure– The payment failed. -
Expired– The customer abandoned the payment, we don’t expect them to finish it. -
CheckedBefore– You’ve requested the payment status before.
You can also check the status of the payment with one of the boolean accessors: open?, success?, cancelled?, failed?, expired?, and checked_before?.
94 95 96 |
# File 'lib/supreme/response.rb', line 94 def status text('//status') end |