original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Return a redirect URL to start a payment
  
  @param $mdxi
  
  @return Responses\SelectPaymentResponse
docstring_tokens: Return a redirect URL to start a payment