Download the PHP package wayforpay/php-sdk without Composer
On this page you can find all versions of the php package wayforpay/php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package php-sdk
WayForPay PHP SDK
PHP SDK for payment system WayForPay.
Table Of Contents
- WayForPay documentation
- Installing
- How to use
- Wizard
- Purchase Form
- Purchase Widget
- Transactions List
- Charge
- Complete 3DS
- Check
- Refund
- Service URL
- Return URL
- TODO
- Contributing
WayForPay documentation
Installing
The recommended way to install SDK is through Composer.
Next, run the Composer command to install the latest stable version:
After installing, you need to require Composer's autoloader:
How to use
All examples require composer install
before using after cloning from GitHub.
Wizard
Purchase Form
See purchase.php.
Run PHP built-in server
Then open http://localhost:8000/examples/purchase.php
in browser.
Purchase Widget
See purchase-widget.php.
Run PHP built-in server
Then open http://localhost:8000/examples/purchase-widget.php
in browser.
Transactions List
See transaction-list.php.
Response will be instance of TransactionListResponse
. Transactions can be retrieved via
getTransactionList
method.
Charge
See charge.php.
Response will be instance of ChargeResponse
. Transaction can be retrieved via
getTransaction
method.
Complete 3DS
Response will be instance of Complete3DSResponse
. Transaction can be retrieved via
getTransaction
method.
Check
Response will be instance of CheckResponse
. Order can be retrieved via
getOrder
method.
Refund
Response will be instance of RufundResponse
.
Service URL
You can set service URL in wizard via
After payment processing WayForPay send payment data to specified URL. You can parse and check data like in example.
See serviceUrl.php.
⚠️⚠️⚠️ WARNING ⚠️⚠️⚠️
Service URL must be accessible via Internet. WayForPay can't send data to local machine!
Return URL
You can set service URL in wizard via
After payment processing WayForPay send payment data to specified URL. You can parse and check data like in example.
See returnUrl.php.
TODO
- Methods
- SETTLE
- P2P_CREDIT
- P2_PHONE
Contributing
See contributing note
All versions of php-sdk with dependencies
ext-json Version *
easyframework/collections Version ~3.2
anlutro/curl Version ^1.4