blockbee / php-blockbee-checkout
BlockBee Checkout PHP library
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/blockbee/php-blockbee-checkout
Requires
- php: >=5.6.0
- ext-curl: *
- ext-json: *
This package is auto-updated.
Last update: 2025-11-19 00:18:35 UTC
README
BlockBee's Checkout PHP Library
Official PHP library of BlockBee Checkout
Deprecated! It has been integrated into php-blockbee.
Requirements:
PHP >= 5.6
ext-curl
Install
composer require blockbee/php-blockbee-checkout
Usage
To use our Checkout page, you will need to follow these steps:
- (1) Create an account on our Dashboard.
- (2) Create a "Company" within the account.
- (3) In the "Company" Settings, generate a new "API Key".
- (4) Set up the Payment Settings.
Requesting Payment
<?php require 'vendor/autoload.php'; // Where your vendor directory is $bb = new BlockBee\Checkout($api_key, $parameters, $blockbee_params); $payment_address = $bb->payment_request($redirect_url, $value);
Where:
$api_keyis the API Key provided by our Dashboard.$parametersis any parameter you wish to send to identify the payment, such as['order_id' => 1234]$blockbee_paramsparameters that will be passed to BlockBee _(check which extra parameters are available here: https://docs.blockbee.io/#operation/payment)$redirect_urlURL in your platform, where the user will be redirected to following the payment. Should be able to process the payment using thesuccess_token.$valueamount in currency set in Payment Settings you want to receive from the user.
Getting notified when the user completes the Payment
When receiving payments, you have the option to receive them in either the
notify_urlor theredirect_url, but adding theredirect_urlis required (refer to our documentation at https://docs.blockbee.io/#operation/paymentipn).
Requesting Deposit
<?php require 'vendor/autoload.php'; // Where your vendor directory is $bb = new BlockBee\Checkout($api_key, $parameters, $blockbee_params); $payment_address = $bb->deposit_request($notify_url);
Where:
$api_keyis the API Key provided by our Dashboard.$parametersis any parameter you wish to send to identify the payment, such as['order_id' => 1234]$blockbee_paramsparameters that will be passed to BlockBee _(check which extra parameters are available here: https://docs.blockbee.io/#operation/deposit)$notify_urlURL in your platform, where the IPN will be sent notifying that a deposit was done. Parameters are available here: https://docs.blockbee.io/#operation/depositipn.
Getting notified when the user makes a deposit
When receiving deposits, you must provide a
notify_urlwhere our system will send an IPN every time a user makes a deposit (refer to our documentation at https://docs.blockbee.io/#operation/depositipn).
Help
Need help?
Contact us @ https://blockbee.io/contacts/
Changelog
1.0.0
- Initial Release