Connect a gateway
- Go to Forms → Settings → Payments.
- Leave Mode on Test mode for now.
- Enter the test keys for the gateways you use:
- PayMongo: public key, secret key and webhook signing secret, from the PayMongo dashboard under Developers.
- Stripe: publishable key, secret key and webhook signing secret (
whsec_…), from Stripe under Developers → API keys. - PayPal: client ID, secret and Webhook ID, from the PayPal developer dashboard. The webhook ID is needed to verify PayPal's webhooks.
- Each gateway shows a Webhook URL with a Copy button. Add this URL as a webhook in the gateway's dashboard so payments are confirmed even if the visitor closes the browser.
- For PayMongo, tick the Default payment methods, such as cards, GCash, Maya and QR Ph.
- Click Save settings.
Add pricing to a form
- In the builder, add Product fields. Choose a single price, a drop down, radio buttons, a user-defined price (good for donations) or a calculated price.
- Add Option, Quantity, Shipping and Coupon fields as needed.
- Add a Total field. It updates live as the visitor makes choices.
Add the payment add-on
- Open the Add-ons tab and click Connect an add-on.
- Choose Stripe, PayPal or PayMongo.
- Choose the Transaction type:
- Products and services: a one-time payment.
- Subscription: recurring, Stripe and PayPal only. Set Bill every, the number of periods between payments, and Free trial days.
- Choose the Amount: the form total or a single field.
- Map Customer email and Customer name so they appear in the gateway and on receipts.
- Usually you'll want to tick these:
- Send "form is submitted" notifications only after payment
- Run other add-ons only after payment
- Save, then make a test payment from the preview.
To offer a choice of gateway:
- Add a radio field "Pay with" (PayMongo, Stripe or PayPal).
- Add one payment add-on for each gateway.
- Give each add-on conditional logic that matches the visitor's choice.
Go live
- Switch Mode to Live in Settings → Payments.
- Enter the live keys and webhook secrets.
- Make one small real payment and refund it to check everything works.
Refunds and subscriptions
- Open the entry. The Payment card shows the payment history.
- To refund, type an amount (full or partial) and click Refund. You can make several partial refunds, up to the amount paid.
- Refunds made in the gateway's dashboard are copied back to the entry automatically.
- For subscriptions, click Cancel subscription to stop future payments.
