Connect PayMongo step by step (API keys and webhook)
Get your PayMongo API keys, connect them in Godo, add the webhook, and test a payment before going live.
PayMongo lets your clients pay invoices with GCash, Maya, cards, online banking and QR Ph. The money goes to your own PayMongo account, then to your bank. Godo only records it. Connecting PayMongo needs the Business plan.
Before you start: sign up at paymongo.com. You can test right away. To receive real payments, finish PayMongo's account activation (business details and documents). Only the PayMongo Account Owner or Admin can see the API keys.
1. Copy your test keys
- Sign in to the PayMongo dashboard.
- Go to Settings › Product Settings › Developers (the Developers page).
- Test keys are shown first. Copy the public key (starts with
pk_test_) and the secret key (starts withsk_test_).
Important: The secret key is like a password to your PayMongo account. Paste it only into Godo. Never send it by chat or email.
2. Connect it in Godo
- Go to Settings › Online payments and tick Turn on online payments.
- On the Online payments tab, under Choose your gateway, pick PayMongo. (Godo uses one gateway at a time, so this replaces Xendit if it was connected.)
- Under Connect your account, paste the PayMongo public key and the Secret key.
- Under What clients can pay with, tick GCash, Maya, Visa / Mastercard, Online banking, QR Ph. Only tick methods that are also active in your PayMongo account.
- Enter your authenticator code (or your password if you have no authenticator yet) and click Save settings.
Godo tests the key right away. You should see Connected to PayMongo · Test mode in the status bar. The secret key is stored encrypted and never shown again; use Test saved key again to re-check it later.
Bank transfer is on its own tab and can stay on alongside PayMongo.
3. Add the webhook
The webhook lets PayMongo tell Godo about a payment even if your client closes the page before returning.
- In Godo, copy the Webhook address shown on Settings › Online payments. It looks like
https://yourcompany.godo.ph/api/pay/webhook/paymongo. - In the PayMongo dashboard, open Developer Tools › Webhooks and add a new endpoint.
- Paste the address and select the event checkout_session.payment.paid. Save.
- PayMongo then shows the endpoint's secret key. Copy it.
- Back in Godo (step 3, Add the webhook), paste it in Webhook signing secret, enter your authenticator code, and click Save settings.
Webhooks are separate for test and live mode. Add one again when you switch to live keys.
4. Test a payment
- Issue a small invoice to yourself (a test customer with your email).
- On the invoice, click Preview in the Online payment box, choose GCash and click Pay.
- On PayMongo's test page, approve the test payment.
- You should land on Payment received. Open the invoice: it is Paid, and Online payment activity shows Paid · recorded.
- Check Banking: a PayMongo clearing account now holds the payment, and the fee is under Payment gateway fees.
5. Go live
- In the PayMongo dashboard, switch to live data and copy the live keys (
pk_live_…,sk_live_…). - Paste them in Settings › Online payments (the box is empty because saved keys are never shown) and save with your authenticator code. Godo shows Live mode.
- Add a live webhook (step 3 again) and save its secret key.
- Pay a small real invoice yourself (for example ₱20 by GCash) before telling clients.
Something not working? See Online payments: troubleshooting.