WordPress
One plugin for WooCommerce and Easy Digital Downloads.
Home / Developers
For builders
Every request is signed with your key. Every write carries an idempotency key, so a retry never bills a customer twice. Every webhook is signed and sent again when your server does not answer. Your secrets never go near a browser.
A few lines to your first invoice
Use the package for your language, from WordPress and Laravel to Node.js, Python, Ruby on Rails, Go and .NET, or call the API from anything that can sign a request. Your shoppers stay on your page with Stripe's secure card form.
Base address https://api.paybyjag.com/v1. These are the calls a Workspace key makes to sell on your website, and each one sees only your Workspace's invoices.
// Composer: jag-journey/paybyjag $client = new PayByJag\Client( 'https://api.paybyjag.com', getenv('PBJ_KEY_ID'), getenv('PBJ_SECRET') ); // A retry with the same key never bills twice. $invoice = $client->createInvoice([ 'customer_name' => 'Rivera Plumbing', 'customer_email' => $order->email, 'amount_cents' => 125000, 'description' => 'Water heater install', 'site' => 'riveraplumbing.example', ], 'order-1042'); // Show Stripe's card form on your own page. $pay = $client->createInvoiceIntent($invoice['id'], 'order-1042-pay');
// Your signing secret is on Webhooks in your Workspace. $body = file_get_contents('php://input'); $time = $_SERVER['HTTP_PBJ_TIMESTAMP'] ?? ''; $nonce = $_SERVER['HTTP_PBJ_NONCE'] ?? ''; $expected = hash_hmac('sha256', $time."\n".$nonce."\n".$body, $secret); if (! hash_equals($expected, $_SERVER['HTTP_PBJ_SIGNATURE'] ?? '')) { http_response_code(401); exit; } $event = json_decode($body, true); if ($event['event'] === 'invoice.paid') { // Fulfill once per invoice number. A resent event is safe. fulfill($event['data']['invoice']); }
POST /v1/invoices HTTP/1.1 Host: api.paybyjag.com Pbj-Api-Version: 2026-08-13 Pbj-Key-Id: your key id Pbj-Timestamp: 1796000000 Pbj-Nonce: 4c1e9a7f2b Pbj-Signature: hmac of the request Pbj-Idempotency-Key: order-1042 Content-Type: application/json {"customer_name": "Rivera Plumbing", "customer_email": "your customer's email", "amount_cents": 125000, "description": "Water heater install"}
Packages
Download a package already set up for your Workspace from Integrations, or paste a single checkout snippet into any page.
One plugin for WooCommerce and Easy Digital Downloads.
Routes and a signed pay page on your own site with Stripe's card form.
A small HMAC client that creates invoices and starts Stripe's card form from any PHP site.
A client with no dependencies and ready webhook handlers for Express and Next.js.
A client on the standard library with webhook views for Django, Flask and FastAPI.
A gem with a Rails engine you mount once to receive every payment event.
A standard library module with an http.Handler for your webhooks.
An ASP.NET Core library with a typed client and one line to map your webhook.
Your Workspace's hosted checkout, dropped into any page with one line.
Guarantees you can build on
Every call carries a timestamp, a one-time nonce and an HMAC signature. Replays are refused.
Send the same idempotency key twice and you get the first answer back, never a second charge.
Know the moment an invoice is created, paid, fails or is refunded. A failed delivery is tried again every hour, up to eight tries.
Keys stay on your server. Shoppers only ever see Stripe's secure card form.
Give your developer the overview and the integration pages: websites, keys, webhooks and domains. No sales, refunds or payouts.
Every webhook delivery is listed with its status, your server's answer and its tries, and you can send any one again.
Pick a plan, choose your address, connect payments and send your first invoice today. Move your QuickBooks history in whenever you are ready.
“He that is faithful in that which is least is faithful also in much.”LUKE 16:10