Hello!

In my payments controller, I have the action that is called by the IPN
below:

def paypal_ipn
    @auction = Auction.find(params[:custom].to_i)
    if @auction.ipn.nil?
      @raw = request.raw_post
      logger.debug "Raw Post = [EMAIL PROTECTED]"
      logger.debug "params = #{params}"
      @ipn = Ipn.new
      @ipn.auction = @auction
      @ipn.payer_email = params[:payer_email]
      @ipn.mc_gross = params[:mc_gross]
      @ipn.payment_date = params[:payment_date]
      @ipn.payment_status = params[:payment_status]
      @ipn.raw_post = @raw
      @ipn.verified = ipnConfirm
      @ipn.save
    else
      @auction.ipn.payment_status = params[:payment_status]
      @auction.ipn.save
    end
  end

It takes the custom parameter to find the auction object, and then
constructs

On Jun 15, 1:26 pm, "Adam Wiggins" <[EMAIL PROTECTED]> wrote:
> Paypal IPN definitely works - it's an incoming web request, so it's
> served the exact same way as viewing a regular web page or making a
> REST call.  Try hitting the URL from your browser, curl, or RestClient
> to see what happens.  And check your logs to look for the incoming
> request from Paypal.
>
> If you're still having trouble, you might try posting the relevant
> bits of your code, and possibly link to a screenshot of your Paypal
> IPN setup screen in their web interface.
>
> Adam
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to