Download the PHP package smartpay-co/sdk-php without Composer
On this page you can find all versions of the php package smartpay-co/sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download smartpay-co/sdk-php
More information about smartpay-co/sdk-php
Files in smartpay-co/sdk-php
Package sdk-php
Short Description The Smartpay PHP SDK offers easy access to Smartpay API from applications written in PHP.
License MIT
Homepage https://smartpay.co
Informations about the package sdk-php
Smartpay PHP Library
The Smartpay PHP library offers easy access to Smartpay API from applications written in PHP.
Documentation
Requirements
- PHP 5.6+
- Smartpay
API keys & secrets
. You can find your credential at thesettings > credentials
page on your dashboard.
Installation
Install Composer
Composer is a dependency manager for PHP projects.
Download Composer from their website: https://getcomposer.org/download/
If you are using macos to develop with homebrew, you can use the command to install Composer:
Install package to your repository:
Usage
The package needs to be configured with your own API keys, you can find them on your dashboard.
Create Checkout session
You can find the description and requirement for request payload in API Document.
Create a checkout session by using checkoutSession
method with your request payload.
Then, you can redirect your customer to the session url by calling redirectUrl
method:
Test
Install dependencies
Run test in the folder
License
The package is available as open source under the terms of the MIT License.
All versions of sdk-php with dependencies
guzzlehttp/guzzle Version >=6.5
ircmaxell/random-lib Version ^1.2
caseyamcl/guzzle_retry_middleware Version ^2.2
tuupola/base62 Version >= 1.0
ext-json Version *