Skip to content

Instantly share code, notes, and snippets.

@akonan
Created May 4, 2012 08:51
Show Gist options
  • Save akonan/2593407 to your computer and use it in GitHub Desktop.
Save akonan/2593407 to your computer and use it in GitHub Desktop.
Controller for AM
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