Download the PHP package 202ecommerce/younitedpay-sdk without Composer
On this page you can find all versions of the php package 202ecommerce/younitedpay-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download 202ecommerce/younitedpay-sdk
More information about 202ecommerce/younitedpay-sdk
Files in 202ecommerce/younitedpay-sdk
Package younitedpay-sdk
Short Description younited pay API SDK
License AFL-3.0
Homepage https://api.younited-pay.com/
Informations about the package younitedpay-sdk
Younited Pay SDK for PHP
This package is a Younited Pay PHP SDK. It let you mange exchange between your shop and Younited Pay.
This package is a dependancy of Younited Credit PrestaShop or Magento plugin.
Versions scope
This package is compatible with PHP 5.6+. | PHP Version | SDK Version |
---|---|---|
PHP 5.6 to PHP 8.0 (not included) | v1.X | |
PHP 8.0+ | v2.X | |
PHP 5.6+ to PHP8+ | v3.X |
How to install it ?
Todo: Composer via packagist
To use this package with php 5.6 or in production mode, please install this dependancy with :
in a eveloppement environment
Recommandations
You can see one example of use of this SDK here : https://github.com/YounitedCredit/younitedpay-module-prestashop Each application should consider several points :
-
Security
You have an example of how should be check a payment on an application. We should not trust requests (even verified webhooks) and make an API call to check if payment is done and if the amount paid is the right one related to the order we have to place. - Performance
Application must implement cache to avoid making the same requests and get token each call.
Token expire each hour, offers every days.
How to try this SDK ?
First of all, you will need to create your account and get credentials from Younited Pay. Then you can use them to retrieve your shop codes and begin the adventure !
Get shop codes for one merchant
This is usefull for merchants with several point of sales and mandatory for creating payments. In previous API there was a fallback to get the "ONLINE" one if found by default for the merchant. Please be carefull and prefer to let merchants save this configuration to make API calls.
Please note that this is the code which is needed (not the name ) !
Get Younited Pay eligible offers, per maturities
You can easily get list of offer by creating a request
Get Available Maturities
Get Offers documentation - Get only maturities
You can easily get available maturities by creating a request
Create a payment
Create a payment documentation
You can easily initialize a contract by creating a request
Load Contract
You can easily load a payment information by creating a request. Please not that now we retrieve the paymentId from contract creation and use it for each calls (instead of contract reference)
Confirm Contract (depracated)
It will not be needed anymore to confirm a payment as it was for a contract. More details on migration guide here : https://docs.younited.com/pay/migration.html
Activate Contract
Execute a payment documentation
You can easily execute a payment by creating a request
Withdraw Contract
Refund a payment documentation
You can easily refund a payment (totally or partially) by creating a request
Cancel Contract
Cancel a payment documentation
You can easily cancel a payment by creating a request
Get Callback Response to configure Webhook
WebHook client to secure response documentation
You can easily get available maturities by creating a request
All versions of younitedpay-sdk with dependencies
ext-curl Version *