cURL action after Paypal IPN

higgle 03 Oct, 2014
Hi,

I'm trying to send a cURL message to another server after a successful payment. The cURL message needs to include the username in the string so that it knows who to allocated the payment to.

This is what is happening:
a. the user logs in prior to payment
b. the Paypal transaction is completed perfectly, and
c. the IPN is sent and received correctly

d. I then try to use Load User Info to get the logged in user name and then use that in the cURL string. You can see the setup in the image attached.

e. But the cURL event isn't being sent and the remote server isn't being updated with the info.

(BTW I know the string is correctly constructed because it works when I send it manually.)

I'm not really sure how to refer to the user name in the cURL action. I've added "customer={cfu_username}" but this isn't working.

Any thoughts? Thanks loads.
GreyHead 05 Oct, 2014
Hi higgle,

The IPN Listener works 'behind the scenes' it doesn't know anything about the current user or their ID. If you want that information you need to recover using the information returned by PayPal.

The approach I use is to save the transaction info, including the user ID and a transaction identifier before sending the user to PayPal, include the identifier in the PayPal info - as an invoice no, or a custom field - so that it is returned to the IPN Listener. Then you can use a DB Load action in the IPN Listener to recover the saved information and use it to process the result,

Bob
This topic is locked and no more replies can be posted.