Skip to content

Instantly share code, notes, and snippets.

@richardsondx
Created July 18, 2012 22:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richardsondx/8acceeee72fe12312c09 to your computer and use it in GitHub Desktop.
Save richardsondx/8acceeee72fe12312c09 to your computer and use it in GitHub Desktop.
Issue with the ipn notification with Active Paypal Adaptive Payment
# I've been trying to get the notification back from the ipn_notification but its not working. My payment is working properly and is # functional. I am having trouble with the IPN. I would like to retrieve the information of the payment toward the app.
def checkout
....
response = @gateway.setup_purchase(
:return_url => "http://localhost:3000",
:cancel_url => "http://localhost:3000",
:ipn_notification_url => orders_notify_action_url,
:receiver_list => recipients
)
..
redirect_to (@gateway.redirect_url_for(response["payKey"]))
end
def notify_action
notify = ActiveMerchant::Billing::Integrations::PaypalAdaptivePayment::Notification.new(request.raw_post)
p "Notification object is #{notify}"
if notify.acknowledge
p "Transaction ID is #{notify.transaction_id}"
p "Notification object is #{notify}"
p "Notification status is #{notify.status}"
end
render :nothing => true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment