paywalletdev / pwclient
PayWallet Api client
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/paywalletdev/pwclient
Requires
- php: >=7.2.5
- guzzlehttp/guzzle: >=7.5.0
This package is not auto-updated.
Last update: 2025-12-21 04:18:10 UTC
README
PayWallet API documentations is available at https://paywallet.pro/api/docs/introduction
Installation
The recommended way to install package is through Composer.
composer require paywalletdev/pwclient
Examples
Create address for deposit or Payment page URL
Documentation: https://paywallet.pro/api/docs/create-deposit-address
use PayWallet\PWClient; $PWC = new PWClient( 'wlOcww20hgShuhVdR4Rl4Vy7cWrLDsdn', //API public key 'izJnim4ojkGCRgXVEbErvehsbRcjpiFc' //API private key ); $result = $PWC->createDepositAddress( 'zKnIaZe4eeKpWzNtMRhA7eRFIJeKXnfq', //Merchant public key '20', //Order ID 'trx', //Currency in lowercase 10, //Expected Amount 'Test api' //Comment ); var_dump($result);
You can send your client a link to the payment page. Demo page: https://paywallet.pro/order/5P25LAHc2LmHJt30U4SesqvH.
Instant payment (Withdraw)
Documentation: https://paywallet.pro/api/docs/instant-payment
use PayWallet\PWClient; $PWC = new PWClient( 'wlOcww20hgShuhVdR4Rl4Vy7cWrLDsdn', //API public key 'izJnim4ojkGCRgXVEbErvehsbRcjpiFc' //API private key ); $result = $PWC->instantPayment( 'zKnIaZe4eeKpWzNtMRhA7eRFIJeKXnfq', //Merchant public key 'xlm', //Currency in lowercase 5, //Withdraw amount 'GDNEMX6JROI6ICWHVDRT7XJF7X6CLT4JVRZ5XTBJABIQRC35SO3INQIQ', //Payment address 2002 //Tag or NULL 'Test api', //Comment ); var_dump($result);
The tag is needed only for
XLMandXRPcurrencies. For other currencies, thetagmust be specified asNULL.
Get merchant balance
Documentation: https://paywallet.pro/api/docs/get-merchant-balance
use PayWallet\PWClient; $PWC = new PWClient( 'wlOcww20hgShuhVdR4Rl4Vy7cWrLDsdn', //API public key 'izJnim4ojkGCRgXVEbErvehsbRcjpiFc' //API private key ); $result = $PWC->getMerchantBalance( 'zKnIaZe4eeKpWzNtMRhA7eRFIJeKXnfq' //Merchant public key ); var_dump($result);
Get wallet balance
Documentation: https://paywallet.pro/api/docs/get-wallet-balance
use PayWallet\PWClient; $PWC = new PWClient( 'wlOcww20hgShuhVdR4Rl4Vy7cWrLDsdn', //API public key 'izJnim4ojkGCRgXVEbErvehsbRcjpiFc' //API private key ); $result = $PWC->getWalletBalance(); var_dump($result);
Get currency rate
Documentation: https://paywallet.pro/api/docs/get-currency-rate
use PayWallet\PWClient; $PWC = new PWClient( 'wlOcww20hgShuhVdR4Rl4Vy7cWrLDsdn', //API public key 'izJnim4ojkGCRgXVEbErvehsbRcjpiFc' //API private key ); $result = $PWC->getCurrencyRate('btc'); var_dump($result);