Summary of open source plug-ins that support payments in Thailand
# Summary of Open Source Plugins Supporting Thai Payments: A Developer's Guide to Essential Tools
I. Overview of Thailand's e-payment market
Thailand, the second largest economy in Southeast Asia, has seen explosive growth in its digital payments market in recent years. According to the latest data from the Bank of Thailand (BOT), Thailand's e-payment transaction volume will grow by 35% year-on-year in 2023, and the number of mobile wallet users will exceed 50 million. This rapid growth is mainly due to the government's National e-Payment Programme and consumers' strong demand for convenient payment methods.
On a technical level, Thailand's payment ecosystem has the following characteristics:
1. Extremely high penetration of QR code payments
2. Deep integration of bank transfers (e.g. PromptPay) with mobile wallets (e.g. TrueMoney)
3. Progressive improvement of the regulatory framework for cross-border payments
4. Rapidly increasing digital acceptance by SMEs
Integrating localised payment methods is an essential part of the process for e-commerce platforms or SaaS providers looking to enter the Thai market. Open source plugins are the preferred solution for developers due to their flexibility, low cost and high transparency.
Second, the mainstream open source PHP plug-ins recommended
Omise Payment Gateway Plugin (WordPress/WooCommerce)
Core Functions:
- Support all major credit cards (Visa/MasterCard/JCB)
- TrueMoney Wallet and Alipay+ Local Integration
- Internet banking payments from banks like SCB and KBank
- One-Stop Solution for PCI-DSS Compliance
Technological Advantage:
"`php
// Omise WooCommerce Simple Integration Example
add_filter('woocommerce_payment_gateways', 'add_omise_gateway');
function add_omise_gateway($methods) {
$methods[] = 'WC_Gateway_Omise';
return $methods.
}
“`
The plugin has over 800 stars on GitHub and the latest version (v4.26) is fully compatible with WooCommerce 5.0+. It is especially suitable for cross-border e-commerce websites.
ThaiEPay Laravel Package
A full-featured package designed specifically for Laravel developers:
1. Channels of support:
- PromptPay Interpersonal Transfer
- Rabbit LINE Pay QR Code Generation
- Counter Service agent network payment voucher generation
2. Featured APIs.
"`php
// PromptPay Dynamic QR Generation Example
ThaiEPay::generateQR(
$amount.
$referenceId.
[
'type' => 'dynamic',
'expiry' => 15 //minutes
]
);
“`
The project documentation includes a complete guide to configuring the test sandbox environment, which significantly reduces the debugging time for interfacing to the real environment.
Third, quality options in the Node.js ecosystem
node-thai-qr (GitHub)
Lightweight QR code generation library:
*Performance benchmark* (1000 requests):
| CPU | RAM usage | Average response |
|—–|——–|———|
| i5-8250U | <120mb | ~45ms |
基础用法:
```javascript
const { generatepromptpay } = "require('node-thai-qr');const" qrimage = "await" generatepromptpay({
target: '0812345678',>
“`
Note that this SDK requires prior application to the central bank for a development key and completion of the enterprise certification process.
High-Performance Implementations of the Go Language
promptpay-go
Best Practice Examples in Microservices Scenarios.
"`go
func GenerateMobileQR(c *gin.Context) {
pp := promptpay.NewBuilder().
SetPhoneNumber("66811234567").
SetAmount(99950). //99,950 THB
Build()
c.Data(http.StatusOK, "image/png", pp.ToPNG())
}
“`
Benchmark results show that its QR code generation is 17 times faster than the reference implementation (Go v1.x vs Python PIL).
—
Three key factors need to be considered when implementing through the above open source project portfolio: firstly PCI compliance requirements - it is recommended that sensitive data processing be delegated to a certified third party; secondly, the retention period of transaction records as stipulated by local financial regulations; and lastly, the principle of consistency in the user experience - the Firstly, PCI compliance requirements - it is recommended that sensitive data processing be delegated to a certified third party; secondly, local financial regulations governing the retention of transaction records; and lastly, the principle of UX consistency - the UI/UX should be kept in line with Southeast Asian users.
For direct links to all the projects mentioned in this article and a detailed comparison table (with licence types and maintenance activity metrics for each plugin), please visit our Technical Resource Centre [this should be an actual clickable hyperlink]. We also continually update security patch status monitoring reports for these projects for developers to make decisions.