PHPackages                             imranertaza/airwallex - 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. imranertaza/airwallex

ActiveLibrary[Payment Processing](/categories/payments)

imranertaza/airwallex
=====================

Airwallex Payment Gateway php library. It will help to implement airwallex payment gateway to any php based application easily.

00PHP

Since May 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/imranertaza/Airwallex)[ Packagist](https://packagist.org/packages/imranertaza/airwallex)[ RSS](/packages/imranertaza-airwallex/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Airwallex Payment Gateway PHP Library
=====================================

[](#airwallex-payment-gateway-php-library)

This is a simple open-source Airwallex payment gateway PHP library that provides a basic implementation of airwallex payment gateway to any php application easily.

Features
--------

[](#features)

- **Configure:** Configure Airwallex payment gateway.
- **Create Payment:** Retrieve records from the database.
- **Create Payment Intent:** Modify existing records in the database.
- **Create Customer:** Remove records from the database.
- **Create Payment Consent:** Remove records from the database.
- **Get Payment Consent:** Remove records from the database.
- **Get Payment Consent:** Remove records from the database.

All the available methods
-------------------------

[](#all-the-available-methods)

getAccessToken() generateRandomSalt() createPaymentIntent() createCustomer() getPaymentConsents() createPaymentMethod() createPaymentIntentForSaveCard() confirmPaymentIntent() createPaymentConsent() verifyPaymentConsents() getPaymentIntent() getPaymentMethodIdFromConsent()

Example
-------

[](#example)

```
$crud = new Crud("TableName");

$x = $crud->groupStart()
    ->where(['a' =>'a'],"!=")
    ->NotGroupStart()
    ->orWhere('b', "=",'b')
    ->where('c', "=",'c')
    ->groupEnd()
    ->groupEnd()
    ->where('d', "=",'d')->get();

```

config()
========

[](#config)

"config()" method is used to add Airwallex configuration data.This method takes some arguments type of array. It's return Airwallex class;

Example
-------

[](#example-1)

```
config(
         "aw_url"=> String,
         "aw_login"=> String,
         "aw_client_id" => String,
         "aw_api" => String
    )

```

createPaymentIntent()
=====================

[](#createpaymentintent)

Create payment intent is first step for a payment .

Example
-------

[](#example-2)

```
createPaymentIntent(string $token, float $amount)

```

createCustomer()
================

[](#createcustomer)

"createCustomer()" method is used to create customer for Airwallex.This is return created customer id (string);

Example
-------

[](#example-3)

```
createCustomer()

```

cancelPaymentIntent()
=====================

[](#cancelpaymentintent)

"cancelPaymentIntent()" method is used to payment intent cancel. This method take argument type of intent id (string). Its method is return object.

Example
-------

[](#example-4)

```
cancelPaymentIntent(string $id)

```

createPaymentConsent()
======================

[](#createpaymentconsent)

"createPaymentConsent()" method is used to add cart on pacific customer. It's return stdClass;

Example
-------

[](#example-5)

```
createPaymentConsent()

```

client\_secret()
================

[](#client_secret)

"client\_secret()" method is used to get client secret. It's return client secret (string).

Example
-------

[](#example-6)

```
client_secret()

```

get\_payment\_consents()
========================

[](#get_payment_consents)

"get\_payment\_consents()" method is used to get payment consents. This method take argument type of consent id (string). Its method is return object.

Example
-------

[](#example-7)

```
get_payment_consents(string consent_id)

```

createPaymentMethod()
=====================

[](#createpaymentmethod)

"createPaymentMethod()" method is used to create payment method. This method take argument type of customer id (string). Its return object.

Example
-------

[](#example-8)

```
createPaymentMethod()

```

createConsents()
================

[](#createconsents)

```
createAccount()

```

"createConsents()" method is used to create consent. This method return object.

Example
-------

[](#example-9)

```
createConsents()

```

createSubscription()
====================

[](#createsubscription)

"createSubscription()" method is used to create subscription. This method takes some arguments type of array. It's return array;

Example
-------

[](#example-10)

```
createSubscription([
         'airwallexCustomerID' => String,
         'price_id' => String,
         'payment_consent' => String,
         'period' => Integer,
         'period_unit' => "DAY" | "WEEK" | "MONTH" | "YEAR"
])

```

create\_Product()
=================

[](#create_product)

"create\_Product()" method is used to create product. This method take argument type of product name and unit (string). Its return object.

Example
-------

[](#example-11)

```
create_Product(string product_id, string unit)

```

create\_Price()
===============

[](#create_price)

"create\_Price()" method is used to create price. This method take argument type of unit amount(integer), product id, period unit (string) and period (integer). Its return object.

Example
-------

[](#example-12)

```
create_Price()

```

get\_subscriptions()
====================

[](#get_subscriptions)

"get\_subscriptions()" method is used to get subscription. This method take argument type of subscription id (string). Its return object.

Example
-------

[](#example-13)

```
get_subscriptions(string id)

```

get\_price()
============

[](#get_price)

"get\_price()" method is used to get price. This method take argument type of price id (string). Its return object.

Example
-------

[](#example-14)

```
get_price(string id)

```

cancel\_subscription()
======================

[](#cancel_subscription)

"cancel\_subscription()" method is used to cancel subscription. This method take argument type of subscription id (string). Its return object.

Example
-------

[](#example-15)

```
cancel_subscription(string id)

```

get\_invoices()
===============

[](#get_invoices)

"get\_invoices()" method is used to get invoice. This method take argument type of invoice id (string). Its return object.

Example
-------

[](#example-16)

```
get_invoices(string id)

```

get\_intent()
=============

[](#get_intent)

"get\_intent()" method is used to get intent. This method take argument type of intent id (string). Its return object.

Example
-------

[](#example-17)

```
get_intent()

```

subscriptions\_update()
=======================

[](#subscriptions_update)

"subscriptions\_update()" method is used to update subscriptions. This method take argument type of subscription id and consent id (string). Its return object.

Example
-------

[](#example-18)

```
subscriptions_update()

```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/32382315?v=4)[Syed Imran Ertaza](/maintainers/imranertaza)[@imranertaza](https://github.com/imranertaza)

---

Top Contributors

[![imranertaza](https://avatars.githubusercontent.com/u/32382315?v=4)](https://github.com/imranertaza "imranertaza (9 commits)")[![DnationSoft7](https://avatars.githubusercontent.com/u/149065335?v=4)](https://github.com/DnationSoft7 "DnationSoft7 (3 commits)")

### Embed Badge

![Health badge](/badges/imranertaza-airwallex/health.svg)

```
[![Health](https://phpackages.com/badges/imranertaza-airwallex/health.svg)](https://phpackages.com/packages/imranertaza-airwallex)
```

###  Alternatives

[msilabs/bkash

bKash Payment Gateway API for Laravel Framework.

181.2k](/packages/msilabs-bkash)[patryqhyper/polish_payments_api

Library for polish payment providers

141.6k](/packages/patryqhyper-polish-payments-api)

PHPackages © 2026

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