Download the PHP package padosoft/scalapay-php-sdk without Composer

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

Scalapay PHP SDK

This package is a Padosoft-maintained clone of the original scalapay/scalapay-php-sdk, which is no longer maintained upstream.

PHP library to integrate with the Scalapay API: at the following link you can find Scalapay complete API documentation.
Using the Scalapay PHP SDK you can manage the flow of a Scalapay order, from creation to capture and refund.

Installation

You can install this SDK via Composer.

This clone supports PHP versions from 5.6 up to PHP 8.5.

Include Composer's auto-loader in your PHP files:

Configure the SDK Client

To create the instance of Scalapay PHP SDK use the snippet below adding your API KEY.
For test environment (SANDBOX_URI), please find the API KEY in Scalapay documentation.
For production environment (PRODUCTION_URI), the API key will be shared by Scalapay Team and will be available in your Scalapay merchant portal.
In this document you can find all methods that you can execute through this SDK.

Methods

Create Order

You can create an order using the createOrder() API method.
The response will contain the Scalapay order token and the redirect url where to redirect the customer (customer will be redirected to Scalapay portal to authorize the payment).

Update merchant reference

It is possible to add or update the merchant reference subsequently to the order creation using the updateMerchantReference() API method.

Capture an Order with a delay

It is possible to delay the capture of an order extending the payment authorization expiration using the delayCapture() API method. After calling this API, the payment authorization will be extended to 5 days. To modify or extend the payment authorization you need to reach out to Scalapay Team. During this time frame it will be necessary to capture the payment using the capture() API method, otherwise the payment authorization will be cancelled.

Capture an order

It is possible to capture the payment authorization of an order using the capture() API method. The funds will be deducted from user account and transferred to merchant account.

Void an order

It is possible to discard a payment authorization of an order using the void() API method. The customer will be informed of the cancellation and any funds held will be released.

Refund a payment

It is possible to refund a payment using the refund() API method.

Get order details

It is possible check the status of an order payment using the getOrderDetails() API method.

Get payment info

It is possible to retrieve the information about a Scalapay payment using the getPaymentInfo() API method.

Get merchant configurations

It is possible to retrieve the configuration of the merchant's Scalapay account using the getMerchantConfiguration() API method.


All versions of scalapay-php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6 <8.6
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 padosoft/scalapay-php-sdk contains the following files

Loading the files please wait ...