public function paymentPage($mdxi)
    {
        $this->integrityCheck();

        libxml_use_internal_errors(true);

        if (!$mdxi || !$mdxi instanceof Mpay24Order) {
            $this->mpay24Sdk->dieWithMsg("To be able to use the Mpay24Api you must create an Mpay24Order object (Mpay24Order.php) and fulfill it with a MDXI!");
        }

        $mdxiXML = $mdxi->toXML();

        $payResult = $this->mpay24Sdk->selectPayment($mdxiXML);

        $this->recordedLastMessageExchange('PaymentPage');

        return $payResult;
    }
public function paymentPage($mdxi)
    {
        $this->integrityCheck();

        libxml_use_internal_errors(true);

        if (!$mdxi || !$mdxi instanceof Mpay24Order) {
            $this->mpay24Sdk->dieWithMsg("To be able to use the Mpay24Api you must create an Mpay24Order object (Mpay24Order.php) and fulfill it with a MDXI!");
        }

        $mdxiXML = $mdxi->toXML();

        $payResult = $this->mpay24Sdk->selectPayment($mdxiXML);

        $this->recordedLastMessageExchange('PaymentPage');

        return $payResult;
    }
public function paymentPage ( $ mdxi ) { $ this -> integrityCheck ( ) ; libxml_use_internal_errors ( true ) ; if ( ! $ mdxi || ! $ mdxi instanceof Mpay24Order ) { $ this -> mpay24Sdk -> dieWithMsg ( "To be able to use the Mpay24Api you must create an Mpay24Order object (Mpay24Order.php) and fulfill it with a MDXI!" ) ; } $ mdxiXML = $ mdxi -> toXML ( ) ; $ payResult = $ this -> mpay24Sdk -> selectPayment ( $ mdxiXML ) ; $ this -> recordedLastMessageExchange ( 'PaymentPage' ) ; return $ payResult ; }
Return a redirect URL to start a payment

@param $mdxi

@return Responses\SelectPaymentResponse
Return a redirect URL to start a payment