Download the PHP package daniel-spravtsev/yoomoney-sdk-php without Composer
On this page you can find all versions of the php package daniel-spravtsev/yoomoney-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package yoomoney-sdk-php
[UNOFFICIAL] PHP Yoomoney SDK PHP forked from Yandex.Money SDK PHP
Requirements
PHP 5.3 or above
Links
- Yoomoney API page: Ru, En
- sample app
Getting started
Installation
- Add
"daniel-spravtsev/yoomoney-sdk-php": "3.0.*"tocomposer.jsonof your application. Or clone repo to your project. - If you are using composer - simply use
require_once 'vendor/autoload.php';otherwise paste following code
Payments from the Yoomoney wallet
Using Yoomoney API requires following steps
-
Obtain token URL and redirect user's browser to Yandex.Money service. Note:
client_id,redirect_uri,client_secretare constants that you get, when register app in Yandex.Money API. -
After that, user fills Yandex.Money HTML form and user is redirected back to
REDIRECT_URI?code=CODE. -
You should immediately exchange
CODEwithACCESS_TOKEN. - Now you can use Yandex.Money API.
Payments from bank cards without authorization
-
Fetch instantce-id(ussually only once for every client. You can store result in DB).
-
Make request payment
- Process the request with process-payment.
Side notes
- Library throws exceptions in case of
- response status isn't equal 2**
- I/O error(see requests)
- If you register app and fill
CLIENT_SECRETentry then you should provide$client_secretexplicitly where$client_secret=NULL - You should wrap all passed boolean values in quotes(because php converts them to numbers otherwise). For example:
Running tests
- Clone this repo.
- Install composer
- Run
composer install - Make sure
phpunitexecutable is present in your$PATH - Create
tests/constants.phpwithCLIENT_ID,CLIENT_SECRETandACCESS_TOKENconstants. - Run tests
phpunit --bootstrap vendor/autoload.php tests/
All versions of yoomoney-sdk-php with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.0
The package daniel-spravtsev/yoomoney-sdk-php contains the following files
Loading the files please wait ...