Download the PHP package binderbyte/binderpay-php without Composer

On this page you can find all versions of the php package binderbyte/binderpay-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package binderpay-php

binderbyte/binderpay-php

Packagist Version Stable Version Total Downloads License

Official BinderPay SNAP API SDK for PHP — Virtual Account & QRIS.

Implements RSA-SHA256 (SNAP Bank Indonesia) signature automatically on every request and provides callback verification helpers.

Installation

Requires PHP >= 8.1.0, ext-json, ext-openssl, ext-curl (for HTTP).

Configuration

Option Type Default Description
partnerId string Registered partner ID (required)
privateKey string RSA private key PEM (required)
channelId string Bank channel code, e.g. BCA (required)
isProduction bool false false = sandbox, true = production
baseUrl string Override base URL

Default base URLs: Sandbox https://api-sandbox.binderpay.id, Production https://api.binderpay.id.

Virtual Account

VA types: C (one-off), O (open recurring), R (close recurring).

Channels: BRI, BNI, MANDIRI, MANDIRIPC, PERMATA, BSI, MUAMALAT, BCA, CIMB, SINARMAS, BNC, MAYBANK.

QRIS

Webhook / Callback Validation

Callbacks from BinderPay are sent with the X-TIMESTAMP, X-SIGNATURE, and X-PARTNER-ID headers. Verify the signature with the BinderPay public key (download from https://binderpay.id/docs/binderpay-public.pem, not your private key).

There are three separate path concepts:

parseCallback() inspects the payload and validates the required fields of the detected type — a VA callback (has trxId) or a QRIS callback (has originalReferenceNo). It throws ValidationException with the detected type in the message when a required field is missing, and rejects payloads that match neither type. Use Webhook::successResponse($callback['type']) to acknowledge — it returns 2002500 for va and 2005200 for qris.

For a standard VA or QRIS callback, use the same Webhook::verifyCallbackSignature(...) method. It automatically checks /v1.0/transfer-va/payment and /v1.0/qr/qr-mpm-notify, and accepts Laravel/Symfony header arrays. For non-standard integrations, use Webhook::verifyCallbackSignatureForPath(...) with an explicit path. You can also use Webhook::validatePublicKey($publicKey) to validate public key presence and RSA format upfront.

Important:

Error Handling

Testing

License

This project is licensed under the MIT License - see the LICENSE file for details.


All versions of binderpay-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-json Version *
ext-openssl Version *
ext-curl Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package binderbyte/binderpay-php contains the following files

Loading the files please wait ...