PHPackages                             scnd-sas/agorapay-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. scnd-sas/agorapay-php-sdk

ActiveLibrary[API Development](/categories/api)

scnd-sas/agorapay-php-sdk
=========================

PHP SDK for CAPSPAYMENT API

053PHP

Since Mar 12Pushed 1y agoCompare

[ Source](https://github.com/scnd-sas/agorapay-php-sdk)[ Packagist](https://packagist.org/packages/scnd-sas/agorapay-php-sdk)[ RSS](/packages/scnd-sas-agorapay-php-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

CAPSPAYMENT API PHP SDK
=======================

[](#capspayment-api-php-sdk)

CAPSPAYMENT API SDK is a PHP client library to work with CAPSPAYMENT REST API.

Requirements
------------

[](#requirements)

To use this SDK, you will need (as a minimum):

- PHP &gt;= v7.2
- cURL (included and enabled in a standard PHP distribution)

This SDK provide an autoloader. You need to use it in your project :

```
require_once '/absolute/path/sdk/api/vendor/autoload.php';

```

After require\_once , you can instantiate the main class :

```
$api = new CAPSPaymentApi\Main();

```

Base Configuration
------------------

[](#base-configuration)

Set a base url for calling API :

```

```

Getting token
-------------

[](#getting-token)

Before calling API, you need to get a token. Set the following variables for getting one

Set url for getting authentication token

```

```

Set user

```

```

Set password

```

```

Example
-------

[](#example)

```

```

List SDK functions to use for API Payin
---------------------------------------

[](#list-sdk-functions-to-use-for-api-payin)

You will find in this table which function to used for each API "Payin" endpoint :

Payin EndpointSDK FunctionsMethod/payin/payment$api-&gt;Payin-&gt;payment($object)POST/payin/paymentDetails$api-&gt;Payin-&gt;paymentDetails($object)POST/payin/paymentMethods$api-&gt;Payin-&gt;paymentMethods($object)POST/payin/capture$api-&gt;Payin-&gt;capture($object)POST/payin/cancel$api-&gt;Payin-&gt;cancel($object)POST/payin/orderDetails$api-&gt;Payin-&gt;orderDetails($object)GET/payin/adjustPayment$api-&gt;Payin-&gt;adjustPayment($object)POST/payin/paymentIframe$api-&gt;Payin-&gt;paymentIframe($object)POST/payin/refund$api-&gt;Payin-&gt;refund($object)POST/payin/mandate$api-&gt;Payin-&gt;mandate($object)GET/payin/ticket$api-&gt;Payin-&gt;ticket($object)GET/payin/reload$api-&gt;Payin-&gt;reload($object)POST#### Examples

[](#examples)

Here, we call API with payin/payment (Method POST)

```

```

Here, we call API with payin/paymentMethods (Method POST)

```

```

Here, we call API with payin/orderDetails (Method GET)

```
