Download the PHP package rootdigit/sagapay without Composer

On this page you can find all versions of the php package rootdigit/sagapay. 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 sagapay

SagaPay PHP SDK

SagaPay (https://sagapay.net) is the world's first free, non-custodial blockchain payment gateway service provider, enabling businesses to seamlessly integrate cryptocurrency payments without holding customer funds. With enterprise-grade security and zero transaction fees, SagaPay empowers merchants to accept crypto payments across multiple blockchains while maintaining full control of their digital assets.

Installation

Install the SagaPay PHP SDK via Composer:

Quick Start

Features

API Reference

Create Deposit

Create Withdrawal

Check Transaction Status

Fetch Wallet Balance

Handling Webhooks (IPN)

SagaPay sends webhook notifications (IPNs) to your specified ipnUrl when a transaction completes. Use the WebhookHandler to process these notifications:

Webhook Payload Format

SagaPay currently sends an IPN when a transaction completes, so status is always COMPLETED. Note that type uses UPPERCASE values on the wire:

udf and txHash may be null. Delivery is at least once: the same notification can arrive more than once, so make your webhook processing idempotent.

Webhook Signature

Each IPN request carries an X-Sagapay-Signature header in the form sha256=<hex>, where <hex> is the HMAC-SHA256 of the exact raw request body keyed with a platform-issued IPN secret. This secret is NOT your API secret. If you have one, pass it as the second constructor argument of WebhookHandler to enable signature verification:

When you don't have an IPN secret, leave the argument out (or pass null) — the signature check is skipped and server-side verification below is the primary check.

Verifying an IPN with the Server

The primary way to confirm an IPN is to ask the SagaPay API directly via Client::verifyIpn() (or the WebhookHandler::verifyWithServer() convenience wrapper shown above). This endpoint authenticates with your API key/secret in the request body, so it needs no extra configuration:

Error Handling

All methods in the SagaPay SDK can throw a SagaPay\SDK\Exception. This exception contains:

License

This SDK is released under the MIT License.

Support

For questions or support, please contact [email protected] or visit https://sagapay.net.


All versions of sagapay with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
ext-curl Version *
ext-json 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 rootdigit/sagapay contains the following files

Loading the files please wait ...