Skip to content

Commit

Permalink
Added response status code constants
Browse files Browse the repository at this point in the history
  • Loading branch information
nbibler committed Dec 10, 2008
1 parent 961f08b commit 3f4cacb
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/simplepay/constants.rb
Expand Up @@ -17,6 +17,22 @@ module Interval

Intervals = [Interval::Day, Interval::Week, Interval::Month, Interval::Year]

module ResponseStatusCode
Abandoned = 'A'
HtmlError = 'ME'
PaymentFailed = 'PF'
PaymentInitiated = 'PI'
PaymentReserved = 'PR'
PaymentSuccessful = 'PS'
SystemError = 'SE'
SubscriptionFailed = 'SF'
SubscriptionSuccessful = 'SS'

Successful = [PaymentSuccessful, SubscriptionSuccessful]
Failure = [Abandoned, HtmlError, PaymentFailed, SystemError, SubscriptionFailed]
Pending = [PaymentInitiated, PaymentReserved]
end

module Currency
USD = Support::Currency.new('United States Dollar', 'USD', "%0.2f")
end
Expand Down

0 comments on commit 3f4cacb

Please sign in to comment.