Markette\Gopay\Service\PreAuthorizedPaymentService::payPreAuthorizedInline PHP Метод

payPreAuthorizedInline() публичный Метод

Executes payment via INLINE GoPay payment gate
public payPreAuthorizedInline ( Markette\Gopay\Entity\PreAuthorizedPayment $payment, string $channel, callable $callback ) : array
$payment Markette\Gopay\Entity\PreAuthorizedPayment
$channel string
$callback callable
Результат array
    public function payPreAuthorizedInline(PreAuthorizedPayment $payment, $channel, $callback)
    {
        $paymentSessionId = $this->buildPreAuthorizedPayment($payment, $channel);
        $response = ["url" => GopayConfig::fullNewIntegrationURL() . '/' . $paymentSessionId, "signature" => $this->createSignature($paymentSessionId)];
        call_user_func_array($callback, [$paymentSessionId]);
        return $response;
    }