I'm building custom gateway for Payum library, and I have to use the unsafe notify request to complete the payment
Array
(
[amount] => 100.0
[paymentDate] => 2015-07-03:15:10:57
[hashCode] => e10b795dd5f52540ca3039ce1af325b4
[voucherNumber] => 6921760593
[voucherStatus] => PAID
[refNumber] => asda22sd
[currency] => USD
)
Everything is working find, except that I don't know how to get Payment Token
by using the refNumber
so I can complete the purchase.
NotifyAction.php:
class NotifyAction extends GatewayAwareAction
{
/**
* {@inheritDoc}
*/
public function execute($request)
{
/** @var $request Notify */
RequestNotSupportedException::assertSupports($this, $request);
$this->gateway->execute($httpRequest = new GetHttpRequest());
$details = $httpRequest->query;
var_dump($details);
throw new HttpResponse(null, 200);
}
/**
* {@inheritDoc}
*/
public function supports($request)
{
return $request instanceof Notify;
}
}