Get Started
<?php
use Payum\Paypal\Ipn\Api;
use Psr\Http\Client\ClientInterface;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\StreamInterface;
use Psr\Http\Message\StreamInterfacel
/** @var ClientInterface $client */
/** @var RequestInterface $requestInterface */
/** @var StreamInterface $streamInterface */
$api = new Api(['sandbox' => true], $client, $requestInterface, $streamInterface);
if (Api::NOTIFY_VERIFIED === $api->notifyValidate($_POST)) {
echo 'It is valid paypal notification. Let\'s do some additional checks';
}
echo 'Something wrong in notification';Supporting Payum
Last updated