kolesa-team / wooppay
There is no license information available for the latest version (1.0.3) of this package.
WoopPay SOAP client
1.0.3
2023-09-07 08:12 UTC
Requires (Dev)
- fzaninotto/faker: ^1.5
- phpunit/phpunit: ~4.6
- squizlabs/php_codesniffer: ^2.3
Replaces
This package is auto-updated.
Last update: 2024-12-07 11:13:15 UTC
README
Wooppay SOAP client
Installation
composer require kolesa-team/wooppay
Usage example
$client = new \Wooppay\Client($uri, $options);
$client->login($username, $password);
$client->requestConfirmationCode($phoneNumber);
$result = $client->createInvoiceExtended(…);
$status = $client->getOperationData([$result->getOperationId()]);
$response = current($status);
if ($status && $status->getStatus() == \Wooppay\Objects\Response\GetOperationData::STATUS_DONE) {
echo "Operation successfully completed.";
}