Get Started
<?php
use Payum\Paypal\Ipn\Api;
/** @var \Payum\Core\HttpClientInterface $client */
/** @var \Http\Message\MessageFactory $messageFactory */
$api = new Api(['sandbox' => true], $client, $messageFactory);
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