null,
null,
$transaction->
getPaymentMethodId(),
$transaction->
getId(),
$finishUrl,
$paymentFinalizeTransactionTime,
$errorUrl );
$token =
$this->tokenFactory->
generateToken($tokenStruct);
$returnUrl =
$this->
assembleReturnUrl($token);
$paymentTransaction =
$this->paymentTransactionStructFactory->
async($transaction,
$order,
$returnUrl);
return $paymentHandler->
pay($paymentTransaction,
$dataBag,
$salesChannelContext);
} return null;
} private function assembleReturnUrl(string
$token): string
{ $parameter =
['_sw_payment_token' =>
$token];