PHP SDK v1.3.0
Updated (Aug 2026)Comprehensive client library with Connection Testing, Order Creation, Status Verification, and Webhook IPN listener support.
Integrate WebPress Pay using ready-to-use SDK packages, WooCommerce support, mobile libraries and REST API tooling designed for faster implementation.
Download the package that matches your application stack. Featured integrations are highlighted for the fastest setup path.
Comprehensive client library with Connection Testing, Order Creation, Status Verification, and Webhook IPN listener support.
Drop-in WordPress plugin supporting standard WooCommerce checkout, HPOS, automated order completion, and instant connection diagnostic.
Asynchronous Node.js & browser client for creating orders, generating payment links, and verifying status.
Fully typed definitions and interface contracts for seamless integration with Next.js, Express, and React.
Pythonic API wrapper for Django, Flask, FastAPI, and standalone payment automation scripts.
Native Android integration library with deep-linking intent support for PhonePe, Google Pay, and Paytm.
Coroutines and modern Kotlin idioms for native Android apps with direct UPI intent triggering.
Enterprise Java client library for Spring Boot, Jakarta EE, and backend payment microservices.
Swift package for iOS applications supporting UPI webview checkout and universal deep links.
.NET Standard library for ASP.NET Core web apps, Windows desktop software, and cloud services.
High-performance C++ connector for POS hardware, IoT payment kiosks, and desktop clients.
Ruby gem template for Ruby on Rails web applications and Sinatra payment handlers.
The PHP SDK provides a simple server-side client for connection testing, order creation, payment status checks and webhook handling.
<?php
require_once __DIR__ . '/WebPressPay.php';
$pay = new WebPressPay('YOUR_MERCHANT_TOKEN', 'https://yourdomain.com');
// 1. Create Payment Order
$order = $pay->createOrder([
'amount' => 499.00,
'order_id' => 'ORDER_' . time(),
'customer_mobile' => '9707842047',
'redirect_url' => 'https://yourstore.com/success'
]);
// 2. Redirect Customer to Hosted Checkout
if ($order['status']) {
header('Location: ' . $order['result']['payment_url']);
exit;
}
?>
Create your merchant account, get API credentials from the dashboard and connect your application using the SDK that fits your stack.