-
-
Save richardsondx/8acceeee72fe12312c09 to your computer and use it in GitHub Desktop.
Issue with the ipn notification with Active Paypal Adaptive Payment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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