When a payment is finished, paypal return to the drupal site and send variables about the payment. How could we get those variables ? I tried to print the POST variables but it's empty.
I Juste want to get the ID of the current node bougth, because i want to set it "active" and "published" to solve an issue...
Thank's a lot !
Comments
Comment #1
lyricnz commentedWhen you return to the Drupal site, the payment may not actually be completed yet. This happens in the background, and paypal will "call back" (notify) the site whenever something changes (subscription created, payment made, etc). This could take seconds, minutes, or even hours, depending on how busy paypal is, what payment type is used, and whether any manual intervention/checking was done by paypal.
You can see recent notifications at /admin/settings/lm_paypal/ipns on your site.
Please, add your comments to #328730: Make it easier to integrate with LM Paypal. This may offer the sort of support you are looking for.
To solve your short-term problem, perhaps you could save the node ID in the user session before you go to paypal, but there's no guarantee it's actually been paid when you get back.
Comment #2
hackmetal commentedOk, I will do some tests, and post them into your thread.
For the moment I have done some tests with de paypal sandbox, and no "saved ipns" where loggued... =/
Thank's :)
Comment #3
lyricnz commentedAre you testing on a real webserver, with an internet-accessible address? Because payment happens in the background, paypal needs to call your site, which means it needs to be accessible by paypal. This is not the case in a local or private webserver. Also, if you are using the Paypal Sandbox, you need the "LM PayPal Obey Test IPNS" checked at admin/settings/lm_paypal/settings.
Comment #4
hackmetal commentedHo thank's! I didn't thought that. I'm in local! Argg
Comment #5
lyricnz commentedCan I close this issue, then?
Comment #6
hackmetal commentedyes, thank's again =)
Comment #7
lyricnz commentedComment #8
buzzman commentedCan someone plz note the URL that has to be populated on the Paypal Account page after you click to enable IPN for that account inside the Paypal account area?
To be clear, I'm refering to this field name on Paypal Account page titled "Edit Instant Payment Notification (IPN) settings":
Notification URL
Under this, one has to select the radio button for the option titled "Receive IPN messages (Enabled)":
Receive IPN messages (Enabled)
What should be the URL to be put up here? I'm asking since LM Paypal module is handling this and only for authenticated users?
Also, referring to one of the earlier posts that asked the same question, which I don'r see answered above, so plz nswer this:
"paypal return to the drupal site and send variables about the payment "
What URL does Paypal IPN hit back with messages and where do we set this up or is it hardcoded in the LM Paypal module? Plz explain.
It would also really help if you reply specifically keeping the subscription processing in mind.
Thanks and cheers.
Comment #9
lyricnz commentedbuzzman: please don't hijack this issue - if you have a change request, please file a new issue.
You don't need to configure the IPN URL on the paypal end - this information is included with each payment. LM Paypal will ask Paypal to send IPNs to /lm_paypal/ipn which is processed by LM Paypal to perform validation, then trigger events within Drupal. This is not a user-visible URL, paypal actually posts machine-readable data to this URL.
Re-closing issue.
Comment #10
buzzman commentedmy first post on Drupal.
didn't mean to hijack anything though - my bad :-)
will open a new issue now ... plz do take a look there and if possible help me figure it out.
I'll have you know that your module is a life saver, sliced any which way ...
thanks a ton for the quick reply - really appreciate it.
cheers