Composer setup

Last modified: January 16, 2022
For versions:
You are here:
Estimated reading time: < 1 min

Use our composer.json file or add our repository to your existing composer file.

{
    "name": "ippworldwide/pay",
    "description": "IPP Worldwide PAY Service",
    "license": "MIT",
    "authors": [
        {
            "name": "Mathias Gajhede",
            "email": "mag@ippworldwide.com"
        }
    ],
    "require": {
        "php": ">=8.0",
        "ippworldwide/php-sdk": "dev-main"
    },
    "minimum-stability": "dev",
    "repositories":[
        {
            "url": "https://github.com/IPPWorldwide/PHP-SDK.git",
            "type": "git"
        }
    ]
}

Copy and integrate

Avoid unnecessary integrations and long-defining front-end code-lines.

Our integration is simple to access and simple to use.

<?php
include("vendor/autoload.php");


header("Strict-Transport-Security: max-age=16070400");
header("X-Frame-Options: SAMEORIGIN");
header("X-XSS-Protection: 1; mode=block");
header('X-Content-Type-Options: nosniff');

$ipp = new IPPGateway("ABCD-ABCD-ABCD","AABBCCDDEEFFGG");


$data   = [];
$data["currency"] = "EUR";
$data["amount"] = 800;
$data["order_id"] = 123;
$data["transaction_type"] = "ECOM";
$data["ipn"] = "https://www.google.dk";


$data = $ipp->checkout_id($data);


$data_url = $data->checkout_id;
$cryptogram = $data->cryptogram;
$action = "success.php";
?>
<html>

<head></head>
<body>

<script src="/pay.js?checkoutId=<?php echo $data_url; ?>&cryptogram=<?php echo $cryptogram; ?>"></script>
<form action="#" class="paymentWidgets" data-brands="VISA MASTER"></form>

</body>

</html>

Use a standard theme

Our themes can be automatically applied by updating the form element

<form action="success.php" class="paymentWidgets" data-brands="VISA MASTER" data-theme="supah"></form>
Was this article helpful?
Dislike 0
Views: 14

Get started now - and set up your account within the next few minutes.

IPP Europe provides Gateway Services on behalf of Phoenix Systems ApS & IPP Worldwide.

Developed with  in Copenhagen