0
So, I know it’s possible to set a notification URL through the client area, and I also know that you need to activate the notification feature.
However, I need to define the notification URL at the time I request it, how can I do this?
I turned the Paypal documentation and found a few quotes that talked about such a possibility, however, at no time they explained clearly how to do.
The page with more details I found was this (at the end): https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNSetup/
With that, I did the following (it’s just a piece of code):
$nvp['PAYMENTREQUEST_0_CURRENCYCODE'] = $responseNvp['PAYMENTREQUEST_0_CURRENCYCODE'];
$nvp['SUBJECT'] = $responseNvp['SUBJECT'];
$nvp['METHOD'] = 'DoExpressCheckoutPayment';
$nvp['NOTIFYURL'] = 'https://dashboard-clayderson.c9users.io/notify-url.php';
$nvp['PAYMENTREQUEST_0_PAYMENTACTION'] = 'SALE';
Didn’t work.
I also tried Setexpresscheckout and it didn’t work. They can give me a light?
Detail: there is no way there is a problem on the page that will receive the notification, because right in the first line I had it recorded in a file. txt all hits the page, and had none, besides, I used IPN Simulator and managed to capture the data perfectly.
what is in the code of the page "notify-url.php" ?
– Daniel Omine
A file_put_contents to create a "log" of accesses and the call to the class responsible for capturing the IPN data. https://www.dropbox.com/sh/39plonf4wii6jza/AAAwVS7Uqjq2XOFYeVzWTS6ma?dl=0
– Clayderson Ferreira
@Danielomine, this restricted access page at the notification url is because I’m not online at the Cloud9 IDE, this URL is just a preview, but when I did the tests, it was open to everyone, I even made a notification manually using the IPN Simulator that Paypal makes available in their Sandbox and it worked. As for the transaction, yes, it is being done successfully. I even get the payment confirmation emails and tals, I just don’t know how to check if Paypal is trying to send the notification, because there is no log of it in their Sandbox, hence I am in doubt if it is
– Clayderson Ferreira
some problem in their Sandbox notification system, or if I’m doing something wrong, since it’s my first time integrating Paypal.
– Clayderson Ferreira
But here’s the problem.. the notification url has to be available. Must be publicly accessible, regardless of whether you are logged in/online in the cloud.
– Daniel Omine
Hello Clayderson, all right? I’m going through the same problem. You managed to solve?
– user24136