Module: Simplepay::Helpers::NotificationHelper

Defined in:
lib/simplepay/helpers/notification_helper.rb

Overview

Adds a valid_simplepay_request? method to your ActionControllers.

In order to use this, you should just directly hand your params into the method:

class FooController < ApplicationController

  def receive_ipn
    if valid_simplepay_request?(params)
      ... record something useful ...
    else
      ... maybe log a bad request? ...
    end
  end

end