WoGlobal Academy Vol. 27: Payment Gateway Integration for PHP Sites
Checkout, webhooks, refunds and test mode for card gateways, with sample code.
What's included
About this guide
For PHP developers adding card payments to a site or app, and for those fixing an integration that marks orders paid when it should not.
You learn how card payments move, choose between hosted, embedded and direct checkout, and design orders and payments in integer cents. Then you create checkouts with idempotency keys, verify and process webhooks safely, build a success page that does not trust the browser, handle refunds and disputes, saved cards and renewals, and test every case in test mode.
It closes with security, a go-live checklist, daily reconciliation, how the same steps work on other gateways, and complete PHP files you can adapt. It is a technical guide, not financial or legal advice.
Good to know before you order
How long does a website take?
Each package shows its delivery time, for example 7 days for the Starter Website and 14 days for the Business Website. The time starts once the invoice is paid and we have your content (text, logo and pictures).
Can I see the design before you build it?
Yes. You approve the plan and the design before we build, and you approve each stage of the work in your client account.
Do I own my website?
Yes. Once the project is paid in full, the final website and the content made for you are yours.
How do I pay?
You can pay each invoice online by card, by bank transfer, or with credit in your account wallet. Prices are in US dollars.
Will you charge my card automatically?
No, never. We do not store cards. Hosting and monthly plans are renewed by an invoice that we email before the due date, and you pay it yourself.
Can I get a refund?
It depends on what you bought. Services can be refunded in full before work starts. Please read our Refund Policy for the details.
You might also like
WoGlobal Academy Vol. 1: DNS Essentials
How domains really work, and how to connect any domain to any host without guessing. $100
View →
WoGlobal Academy Vol. 2: Backups & Disaster Recovery
Backups you can actually restore: the 3-2-1 rule, automation, offsite encryption and a tested recovery plan. $155
View →
WoGlobal Academy Vol. 3: DNS & Email Deliverability Mastery
Stop landing in spam: advanced SPF, DKIM and DMARC, reverse DNS, MTA-STS, BIMI and real troubleshooting. $200
View →
Ready for a website that brings in customers?
Tell us what you need and we will reply with a clear plan and price.