SDKS · FRAMEWORKS · COMMERCE

Integrate P2Flux with your stack

Official SDKs and framework integrations for adding non-custodial USDC payments, recurring billing and checkout flows to an application you already run.

Read the docs Choose an integration View on GitHub →
OFFICIAL SDKS

Two clients, one API

Both are thin wrappers over the HTTP API: they normalize result codes and nothing else. Neither is required — anything they do, a plain HTTPS request can do too.

PHP

AVAILABLE

Server-side PHP client for payments, verification, recovery, recurring charges and refunds. No framework, no runtime dependencies.

composer require p2flux/sdk-php
PACKAGEp2flux/sdk-php
VERSION0.7.3
REQUIRESPHP 8.1+

Packagist · GitHub · Documentation · Examples

JavaScript / TypeScript

AVAILABLE

Server-side client for Node, Deno, Bun and Workers. Zero dependencies, types included, ESM only. It belongs in your backend: the browser only opens the hosted checkout and reports back what it saw.

npm install @p2flux/sdk
PACKAGE@p2flux/sdk
VERSION0.7.2
REQUIRESNode 18+, or a global fetch

npm · GitHub · Documentation · Examples

FRAMEWORK INTEGRATIONS

Wired into the framework you use

A framework integration is not another SDK. It binds an official client into the framework’s container and adds nothing else — the methods you call are still the SDK’s own.

Laravel

AVAILABLE

Official Laravel integration built on p2flux/sdk-php: package auto-discovery, dependency injection, an optional facade, publishable config and tested application examples. It installs the PHP SDK for you and adds no routes, migrations, models or scheduler.

composer require p2flux/laravel
PACKAGEp2flux/laravel
VERSION0.1.1
COMPATIBLELaravel 12 and 13, PHP 8.2+
BUILT ONp2flux/sdk-php

Packagist · GitHub · Getting started · Examples

COMMERCE

For stores that already exist

WooCommerce

IN RELEASE PREPARATION

A WooCommerce payment gateway for USDC on Base: one-time orders and subscriptions, with settlement straight to the store owner’s wallet. Version 1.0.0 is published on GitHub and installable from its release ZIP; the WordPress.org listing is still under review, and the sponsored checkout — where the customer pays the network cost in USDC instead of holding ETH — is being finished.

PLUGINp2flux-for-woocommerce
VERSION1.0.0
WORDPRESS.ORGListing under review
SPONSORED CHECKOUTIn progress

GitHub · Release · Setup guide

PRODUCTION USE

Built into real products

Tipster Script · OwnTheGame

PRODUCTION USE

P2Flux runs inside the payment and subscription stack of our own products, which is where the one-time and recurring flows are exercised in production rather than only in tests. These are operated by the P2Flux team — they are shown as evidence that the integration path is real, not as third-party endorsements.

CAPABILITIES

What every integration can reach

Base Mainnet

Live, with a full test environment on Base Sepolia.

USDC

One asset, six decimals, settled on chain.

One-time payments

A signed intent, paid from the buyer’s own wallet.

Recurring payments

One authorization; your application decides when to collect.

Hosted checkout

The wallet experience is ours to run, not yours to build.

Server-side verification

The verdict that marks an order paid.

Recovery

Find a settlement whose callback never arrived.

Refunds

A plain transfer from your wallet, verified by P2Flux.

Network fee in USDC

Customers can pay the network cost in USDC when payment_token sponsorship is available.

Read the docs SDK reference Discuss an integration →