Created
May 4, 2012 08:51
-
-
Save akonan/2593407 to your computer and use it in GitHub Desktop.
Controller for AM
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
def process_payment | |
notify = ActiveMerchant::Billing::Integrations::Verkkomaksut::Notification.new(params) | |
if notify.acknowledge(VERKKOMAKSUT_AUTHCODE) | |
# PROCESS THE ORDER | |
else | |
# SHOW ERROR MESSAGE AND DON'T PROCESS THE ORDER | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment