Markette\Gopay\Service\RecurrentPaymentService::payRecurrentInline PHP Method

payRecurrentInline() public method

Executes payment via INLINE GoPay payment gate
public payRecurrentInline ( RecurrentPayment $payment, string $channel, callable $callback ) : array
$payment Markette\Gopay\Entity\RecurrentPayment
$channel string
$callback callable
return array
    public function payRecurrentInline(RecurrentPayment $payment, $channel, $callback)
    {
        $paymentSessionId = $this->buildRecurrentPayment($payment, $channel);
        $response = ["url" => GopayConfig::fullNewIntegrationURL() . '/' . $paymentSessionId, "signature" => $this->createSignature($paymentSessionId)];
        call_user_func_array($callback, [$paymentSessionId]);
        return $response;
    }