PHPackages                             hamza-payments-query-sdk/hamza-payments-query-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. hamza-payments-query-sdk/hamza-payments-query-sdk

ActiveLibrary[Payment Processing](/categories/payments)

hamza-payments-query-sdk/hamza-payments-query-sdk
=================================================

The Payments API file handles creating and processing payments, including card authorization, fraud checks, and settlements

1.0.0(6mo ago)00MITPHPPHP ^7.2 || ^8.0

Since Oct 27Pushed 6mo agoCompare

[ Source](https://github.com/MuHamza30/paymentsquery-php-sdk)[ Packagist](https://packagist.org/packages/hamza-payments-query-sdk/hamza-payments-query-sdk)[ Docs](https://example.com)[ RSS](/packages/hamza-payments-query-sdk-hamza-payments-query-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (6)Versions (2)Used By (0)

Getting Started with Payments
=============================

[](#getting-started-with-payments)

Introduction
------------

[](#introduction)

Use a single API that orchestrates the payment flow to include FraudSight, 3DS and Token creation.

**Authentication**

Set your headers

```
Authorization: {your_credentials}
Content-Type: application/json
WP-Api-Version: 2024-06-01

```

Replace `{your_credentials}` with your base64-encoded Basic Auth username and password.

**DNS whitelisting**

Whitelist the following URLs:

- `https://try.access.worldpay.com/`
- `https://access.worldpay.com/`

Please ensure you use DNS whitelisting, not explicit IP whitelisting. When you make a request within Access Worldpay, you should always cache the response returned.

**API collection**

A full set of API examples based on different scenarios.

- **[Download Postman collection](./collections/index.md)**

This API also includes Payment Queries functionality to retrieve and query payment information.

Install the Package
-------------------

[](#install-the-package)

Run the following command to install the package and automatically add the dependency to your composer.json file:

```
composer require "hamza-payments-query-sdk/hamza-payments-query-sdk:1.0.0"
```

Or add it to the composer.json file manually as given below:

```
"require": {
    "hamza-payments-query-sdk/hamza-payments-query-sdk": "1.0.0"
}
```

You can also view the package at:

Test the SDK
------------

[](#test-the-sdk)

Unit tests in this SDK can be run using PHPUnit.

1. First install the dependencies using composer including the `require-dev` dependencies.
2. Run `vendor\bin\phpunit --verbose` from commandline to execute tests. If you have installed PHPUnit globally, run tests using `phpunit --verbose` instead.

You can change the PHPUnit test configuration in the `phpunit.xml` file.

Initialize the API Client
-------------------------

[](#initialize-the-api-client)

***Note:*** Documentation for the client can be found [here.](https://www.github.com/MuHamza30/paymentsquery-php-sdk/tree/1.0.0/doc/client.md)

The following parameters are configurable for the API Client:

ParameterTypeDescriptionenvironment`Environment`The API environment.
 **Default: `Environment.PRODUCTION`**timeout`int`Timeout for API calls in seconds.
*Default*: `0`enableRetries`bool`Whether to enable retries and backoff feature.
*Default*: `false`numberOfRetries`int`The number of retries to make.
*Default*: `0`retryInterval`float`The retry time interval between the endpoint calls.
*Default*: `1`backOffFactor`float`Exponential backoff factor to increase interval between retries.
*Default*: `2`maximumRetryWaitTime`int`The maximum wait time in seconds for overall retrying requests.
*Default*: `0`retryOnTimeout`bool`Whether to retry on request timeout.
*Default*: `true`httpStatusCodesToRetry`array`Http status codes to retry against.
*Default*: `408, 413, 429, 500, 502, 503, 504, 521, 522, 524`httpMethodsToRetry`array`Http methods to retry against.
*Default*: `'GET', 'PUT'`proxyConfiguration[`ProxyConfigurationBuilder`](https://www.github.com/MuHamza30/paymentsquery-php-sdk/tree/1.0.0/doc/proxy-configuration-builder.md)Represents the proxy configurations for API callsbasicAuthCredentials[`BasicAuthCredentials`](https://www.github.com/MuHamza30/paymentsquery-php-sdk/tree/1.0.0/doc/auth/basic-authentication.md)The Credentials Setter for Basic AuthenticationThe API client can be initialized as follows:

```
use PaymentsLib\Environment;
use PaymentsLib\Authentication\BasicAuthCredentialsBuilder;
use PaymentsLib\PaymentsClientBuilder;

$client = PaymentsClientBuilder::init()
    ->basicAuthCredentials(
        BasicAuthCredentialsBuilder::init(
            'BasicAuthUserName',
            'BasicAuthPassword'
        )
    )
    ->environment(Environment::PRODUCTION)
    ->build();
```

Environments
------------

[](#environments)

The SDK can be configured to use a different environment for making API calls. Available environments are:

### Fields

[](#fields)

NameDescriptionproduction**Default** Tryenvironment2LiveAuthorization
-------------

[](#authorization)

This API uses the following authentication schemes.

- [`BasicAuth (Basic Authentication)`](https://www.github.com/MuHamza30/paymentsquery-php-sdk/tree/1.0.0/doc/auth/basic-authentication.md)

List of APIs
------------

[](#list-of-apis)

- [3 DS Actions](https://www.github.com/MuHamza30/paymentsquery-php-sdk/tree/1.0.0/doc/controllers/3-ds-actions.md)
- [Manage Payments](https://www.github.com/MuHamza30/paymentsquery-php-sdk/tree/1.0.0/doc/controllers/manage-payments.md)
- [Payment Queries](https://www.github.com/MuHamza30/paymentsquery-php-sdk/tree/1.0.0/doc/controllers/payment-queries.md)
- [Payment](https://www.github.com/MuHamza30/paymentsquery-php-sdk/tree/1.0.0/doc/controllers/payment.md)

SDK Infrastructure
------------------

[](#sdk-infrastructure)

### Configuration

[](#configuration)

- [ProxyConfigurationBuilder](https://www.github.com/MuHamza30/paymentsquery-php-sdk/tree/1.0.0/doc/proxy-configuration-builder.md)

### HTTP

[](#http)

- [HttpRequest](https://www.github.com/MuHamza30/paymentsquery-php-sdk/tree/1.0.0/doc/http-request.md)
- [HttpResponse](https://www.github.com/MuHamza30/paymentsquery-php-sdk/tree/1.0.0/doc/http-response.md)

### Utilities

[](#utilities)

- [ApiException](https://www.github.com/MuHamza30/paymentsquery-php-sdk/tree/1.0.0/doc/api-exception.md)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance66

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

197d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b7f3ad25518f384893b21a8f28ca0003ce9f920395ad4f190e4ff65a55fd8db8?d=identicon)[MuHamza](/maintainers/MuHamza)

---

Top Contributors

[![MuHamza30](https://avatars.githubusercontent.com/u/199583608?v=4)](https://github.com/MuHamza30 "MuHamza30 (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/hamza-payments-query-sdk-hamza-payments-query-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/hamza-payments-query-sdk-hamza-payments-query-sdk/health.svg)](https://phpackages.com/packages/hamza-payments-query-sdk-hamza-payments-query-sdk)
```

###  Alternatives

[square/square

Use Square APIs to manage and run business including payment, customer, product, inventory, and employee management.

793.4M21](/packages/square-square)[paypal/paypal-server-sdk

PayPal's SDK for interacting with the REST APIs

53456.5k3](/packages/paypal-paypal-server-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
