Home/PHP
Integrations

Add crypto payments to PHP

Crypto payments for any PHP site.

Any PHP application, framework or not, can accept crypto with My Crypto Server over the REST API. Create a charge, redirect the customer to the hosted checkout, and verify a signed webhook to mark the order paid. Every payment settles straight to your wallet.

How it connects

REST API over plain HTTP + a signed webhook endpoint.

Integration

How to add crypto to PHP

01

Deploy My Crypto Server

Push the app to Vercel, attach any Postgres database, add your Alchemy key, and point it at your wallet. You're live in about an hour.

02

Call the API and verify webhooks

POST the order total to the charge endpoint, redirect to the checkout URL, and add a webhook script that verifies the signature before marking the order paid.

03

Handle the paid webhook

On a confirmed payment, the server sends a signed webhook to your endpoint. Verify the signature, then mark the order paid and fulfil, idempotently.

04

Go live

Test with the live demo flow, then flip it on. Card options can stay exactly where they are; crypto simply runs alongside them at 0% fees.

Why PHP developers choose it

0% platform fees

No 2.9% + 30¢ per order. Crypto settles for the cost of gas, paid by the customer, so your integration keeps the full sale price.

Signed webhooks

Every confirmed payment fires an HMAC-SHA256 signed webhook with replay protection, so your app marks orders paid idempotently and never trusts an unverified event.

Non-custodial by design

Payments derive from your own wallet and settle straight to you. There's no processor balance, payout schedule, or account anyone can freeze.

14 networks, one integration

The customer picks their chain and coin at checkout; your code just creates a charge in USD. Native coins plus USDC, USDT, and DAI are all handled server-side.

PHP integration FAQs

Does it need a specific PHP framework?

No. The REST API works from any PHP, from a single script to Symfony. If you're on WordPress/WooCommerce, use the included plugin instead.

How do I verify the webhook?

Compute HMAC-SHA256 over the raw request body with your secret, compare against the signature header, and reject stale timestamps to prevent replays.

Do I need to handle card data?

No. Crypto payments never involve card data, so there's no PCI burden in your PHP code.

Ship crypto payments on PHP.

$699 one-time with code MCSINTRO $999, full source, every v1 update included, 0% platform fees.

Read the docs
Try the live demo