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

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.";
}