Advanced Seamless Integration

This page shows you some examples, after Getting Started Guide was successful.

Implementation of EPS (STUZZA redirection)

case "EPS":
 $payment["brand"] = "INTERNATIONAL";
 $result = $shop->acceptPayment($type, "123", $payment, $additional);
  if($result->generalResponse->returnCode == "REDIRECT") {
   ?>
    <script>
     window.onload = function(e){ 
     window.open("<?php echo $result->location ?>");
  }
    </script>
  If the Pop-Up was blocked please click <a href="<?php echo $result->location ?>">here.</a>
  <?php
  } else {
    echo $result->generalResponse->returnCode;
  }
break;