sakhnovkrg / wooppay
Прием платежей через Wooppay
1.0
2020-03-05 19:08 UTC
Requires
- php: >=5.4.0
- ext-soap: *
This package is auto-updated.
Last update: 2024-11-06 05:54:45 UTC
README
composer require sakhnovkrg/wooppay 1.0
Использование
$wooppay = new \Sakhnovkrg\Wooppay\WooppayClient( 'https://www.wooppay.com/api/xml', 'username', 'password' ); $invoice = $wooppay->createInvoiceByService( ... ); $operationUrl = $invoice->operationUrl; $operationId = $invoice->operationId; $status = $wooppay->getOperationStatus($operationId); if($status == \Sakhnovkrg\Wooppay\WooppayClient::STATUS_DONE) { \Sakhnovkrg\Wooppay\WooppayClient::sendCompleteResponse(); }