imranertaza/airwallex
Composer 安装命令:
composer require imranertaza/airwallex
包简介
Airwallex Payment Gateway php library. It will help to implement airwallex payment gateway to any php based application easily.
关键字:
README 文档
README
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
- 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
getAccessToken() generateRandomSalt() createPaymentIntent() createCustomer() getPaymentConsents() createPaymentMethod() createPaymentIntentForSaveCard() confirmPaymentIntent() createPaymentConsent() verifyPaymentConsents() getPaymentIntent() getPaymentMethodIdFromConsent()
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()" method is used to add Airwallex configuration data.This method takes some arguments type of array. It's return Airwallex class;
Example
config(
"aw_url"=> String,
"aw_login"=> String,
"aw_client_id" => String,
"aw_api" => String
)
createPaymentIntent()
Create payment intent is first step for a payment .
Example
createPaymentIntent(string $token, float $amount)
createCustomer()
"createCustomer()" method is used to create customer for Airwallex.This is return created customer id (string);
Example
createCustomer()
cancelPaymentIntent()
"cancelPaymentIntent()" method is used to payment intent cancel. This method take argument type of intent id (string). Its method is return object.
Example
cancelPaymentIntent(string $id)
createPaymentConsent()
"createPaymentConsent()" method is used to add cart on pacific customer. It's return stdClass;
Example
createPaymentConsent()
client_secret()
"client_secret()" method is used to get client secret. It's return client secret (string).
Example
client_secret()
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
get_payment_consents(string consent_id)
createPaymentMethod()
"createPaymentMethod()" method is used to create payment method. This method take argument type of customer id (string). Its return object.
Example
createPaymentMethod()
createConsents()
createAccount()
"createConsents()" method is used to create consent. This method return object.
Example
createConsents()
createSubscription()
"createSubscription()" method is used to create subscription. This method takes some arguments type of array. It's return array;
Example
createSubscription([
'airwallexCustomerID' => String,
'price_id' => String,
'payment_consent' => String,
'period' => Integer,
'period_unit' => "DAY" | "WEEK" | "MONTH" | "YEAR"
])
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
create_Product(string product_id, string unit)
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
create_Price()
get_subscriptions()
"get_subscriptions()" method is used to get subscription. This method take argument type of subscription id (string). Its return object.
Example
get_subscriptions(string id)
get_price()
"get_price()" method is used to get price. This method take argument type of price id (string). Its return object.
Example
get_price(string id)
cancel_subscription()
"cancel_subscription()" method is used to cancel subscription. This method take argument type of subscription id (string). Its return object.
Example
cancel_subscription(string id)
get_invoices()
"get_invoices()" method is used to get invoice. This method take argument type of invoice id (string). Its return object.
Example
get_invoices(string id)
get_intent()
"get_intent()" method is used to get intent. This method take argument type of intent id (string). Its return object.
Example
get_intent()
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
subscriptions_update()
imranertaza/airwallex 适用场景与选型建议
imranertaza/airwallex 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 05 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「library」 「payment」 「OOP」 「subscription」 「payment gateway」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 imranertaza/airwallex 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 imranertaza/airwallex 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 imranertaza/airwallex 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Inbox pattern process implementation for your Laravel Applications
Core library that defines common interfaces used by the rest of the intahwebz..
Amqp classes
Provides command to manage a web library directory
Alfabank REST API integration
CakePHP Bitly Plugin
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 15
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-15