Skip to main content

Online Payment SDK - PHP

The PayBy PHP SDK provides a simple way to integrate PayBy payment services into your PHP applications.

SDK Repository: https://github.com/PayBy/PayBy-php

Requirements

  • PHP >= 5.6

Installation

Install the SDK via Composer:

composer require payby/payby-php

Then include the Composer autoloader in your project:

require_once('vendor/autoload.php');

Manual Installation

If you prefer not to use Composer, you can manually include the SDK:

require_once('/path/to/payby-php/init.php');

Getting Started

Initialize the SDK

Before making any API calls, initialize the PayBy SDK with your API key:

\PayBy\PayBy::setApiKey('YOUR-KEY');

Replace 'YOUR-KEY' with your actual PayBy API key.

Order

// TODO