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.

Methods

Included Modules

ActiveMerchant::PostsData

Public Instance methods

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

the money amount we received in X.2 decimal.

Id of the order we passed to Nochex

When was this payment received by the client.

Was this a test transaction?

[Validate]