Module: Cielo::API30::Payment::Status
- Defined in:
- lib/cielo/api30/payment/status.rb
Constant Summary collapse
- NOT_FINISHED =
0
- AUTHORIZED =
1
- PAYMENT_CONFIRMED =
2
- DENIED =
3
- VOIDED =
10
- REFUNDED =
11
- PENDING =
12
- ABORTED =
13
- SCHEDULED =
20
Class Method Summary collapse
Class Method Details
.success?(code) ⇒ Boolean
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/cielo/api30/payment/status.rb', line 15 def self.success?(code) [ AUTHORIZED, PAYMENT_CONFIRMED, VOIDED, REFUNDED, PENDING, SCHEDULED ].include?(code) end |