public function token($paymentType, array $additional = [])
    {
        $this->integrityCheck();

        if ($paymentType !== 'CC') {
            die("The payment type '$paymentType' is not allowed! Currently allowed is only: 'CC'");
        }

        $tokenResult = $this->mpay24Sdk->createTokenPayment($paymentType, $additional);

        $this->recordedLastMessageExchange('CreatePaymentToken');

        return $tokenResult;
    }
public function token($paymentType, array $additional = [])
    {
        $this->integrityCheck();

        if ($paymentType !== 'CC') {
            die("The payment type '$paymentType' is not allowed! Currently allowed is only: 'CC'");
        }

        $tokenResult = $this->mpay24Sdk->createTokenPayment($paymentType, $additional);

        $this->recordedLastMessageExchange('CreatePaymentToken');

        return $tokenResult;
    }
public function token ( $ paymentType , array $ additional = [ ] ) { $ this -> integrityCheck ( ) ; if ( $ paymentType !== 'CC' ) { die ( "The payment type '$paymentType' is not allowed! Currently allowed is only: 'CC'" ) ; } $ tokenResult = $ this -> mpay24Sdk -> createTokenPayment ( $ paymentType , $ additional ) ; $ this -> recordedLastMessageExchange ( 'CreatePaymentToken' ) ; return $ tokenResult ; }
Return a redirect URL to include in your web page

@param string $paymentType The payment type which will be used for the express checkout (CC)
@param array  $additional  Additional parameters

@return Responses\CreatePaymentTokenResponse
Return a redirect URL to include in your web page