Created
June 30, 2009 18:46
-
-
Save tekin/138325 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
response = gateway.purchase(100, credit_card) | |
if response.success? | |
puts "Purchase successfully made" | |
elsif response.three_d_secure? | |
puts "Purchase requires additional 3D Authentication" | |
else | |
puts "Purchase not authorised, try again" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment