Class | ActiveMerchant::Billing::Integrations::Nochex::Notification |
In: |
lib/active_merchant/billing/integrations/nochex/notification.rb
|
Parent: | ActiveMerchant::Billing::Integrations::Notification |
Parser and handler for incoming Automatic Payment Confirmations from Nochex.
Acknowledge the transaction to Nochex. This method has to be called after a new apc arrives. Nochex will verify that all the information we received are correct and will return a ok or a fail. This is very similar to the PayPal IPN scheme.
Example:
def nochex_ipn notify = NochexNotification.new(request.raw_post) if notify.acknowledge ... process order ... if notify.complete? else ... log possible hacking attempt ... end