bizpay/payments

There is no license information available for the latest version (v1.0.1) of this package.

Client SDK package to the BizPay Payments API

This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.

Maintainers

Package info

bitbucket.org/bizpay-nl/payments-examples

pkg:composer/bizpay/payments

Statistics

Installs: 7

Dependents: 0

Suggesters: 0

v1.0.1 2018-11-07 14:06 UTC

This package is not auto-updated.

Last update: 2026-05-02 03:26:24 UTC


README

To implement the bizpay api you can use this SDK.

Example implementations can be found in the examples directory.

Documentation on the API can be found here: https://payments.bizpay.nl/swagger/

Installation

Include this package by running

composer require bizpay/payments

Get transaction URL

Code to implement the transaction api looks as follows:

$transaction = new \BizPay\Payments\Transaction();
$transaction->setApiKey("api key");
$transaction->setPassword("password");

$data = [
    "webshop_customer_info" => [
        "company_identification" => "30172890",
        "company_name" => "Test",
        "firstname" => "Test",
        "surname_1" => null,
        "surname_2" => "Test",
        "title" => null,
        "email" => "Test",
        "phone" => "Test",
        "street" => "Test",
        "number" => "Test",
        "extension" => null,
        "city" => "Test",
        "postcode" => "Test",
        "state" => null,
        "country" => "NL",
        "gender" => 1
    ],
    "order_details" => [
        "order_created_date" => date('d-m-Y h:i'),
        "webshop_redirect_url" => "http://localhost/bizpay_apicall/response.php",
        "webshop_webhook_url" => 'http://localhost/bizpay_apicall/response.php',
        "currency" => "eur",
        "total_amount" => "100.00",
        "order_internal_id" => "25",
        "order_tax_amount" => "0.00",
        "shipment_amount" => "5.00",
        "shipment_tax_amount" => "0.00",
        "shipment_with_tax" => "5.00",
        "items" => []
    ]
];

try {
    $response = $transaction->create($data);

    echo $response->transaction_url;
} catch (Exception $e) {
    // An error occured, check for specific exceptions and handle them gracefully
}