selyakovadim / paykassa
Package for Paykassa SCI & API
1.0.2
2021-07-07 08:25 UTC
Requires
This package is not auto-updated.
Last update: 2025-06-05 03:45:11 UTC
README
Installation
composer require selyakovadim/paykassa
Initialization
Get yours Marchant and API credentials from https://paykassa.pro
PHP
$api = new Paykassa\PaykassaApi($api_id, $api_key); $sci = new Paykassa\PaykassaSci($sci_id, $sci_key);
Laravel
.env
PAYKASSA_SCI_ID=
PAYKASSA_SCI_KEY=
PAYKASSA_API_ID=
PAYKASSA_API_KEY=
$api = new Paykassa\PaykassaApi(); $sci = new Paykassa\PaykassaSci();
Usage
Get Balance (API)
$balance = $api->getBalance($shop_id)
Make Payment (API)
$response = $api->makePayment([ 'shop' => 999, 'system' => 1, 'number' => 'P123456', 'amount' => 100, 'currency' => 'USD', 'comment' => 'Payment #654', ]);
Get cryptocurrency address (SCI)
$address = $sci->getAddress([ 'system' => 11, 'currency' => 'BTC', 'order_id' => 100500, 'comment' => 'Invoice #100500', 'amount' => 100 ]);
Get invoice (SCI)
$invoice = $sci->getInvoice([ 'system' => 1, 'currency' => 'USD', 'order_id' => 100500, 'comment' => 'Invoice #100500', 'amount' => 100 ]);
Check payment (SCI)
$response = $sci->checkPayment($payment_hash);