Set-up
Payment forms use 3 platforms: PaySG, FormSG, and Plumber. You'll need to do some set up on each platform.
Last updated
Was this helpful?
Payment forms use 3 platforms: PaySG, FormSG, and Plumber. You'll need to do some set up on each platform.
Last updated
Was this helpful?
What you'll need to do:
Create a FormSG form with our required fields
Create a pipe on Plumber to transform each form submission to a payment amount
Connect your form to PaySG
This guide will take you through each step and its setup.
You will need:
A form and its corresponding secret key.
A payment service and an API key, issued to you by the PaySG team (team@pay.gov.sg)
on FormSG and save your secret key securely. You’ll need this to view responses and link the form to Plumber. Use our to get started.
The following fields should be included in your form, as these will be used in PaySG to create your payment link later on. You can rename the fields if necessary, but the details must either be collected through the form or manually input in Plumber.
All fields are already included in our .
Reference ID (corresponds to FormSG Reference Field Answer on Plumber)
This is a "Short answer" field with "Enable pre-fill" and "Prevent pre-fill editing" enabled.
PaySG will automatically pre-fill this field with a unique ID for each form submission.
Name
Payment amount
For forms without fixed responses/dropdown, use a "Decimal" field on FormSG and enable Number validation to only accept values ≥ 0.50 and <= 200,000.
Email (Compulsory for subscriptions)
The following fields are optional:
Email (Optional only for one-time payments)
Note that PaySG sends automated payment receipt emails only if an email is included. If an email is not included, payers will not receive payment receipt emails. They may reference the original payment link to view receipts after successful payment.
Address
Identifier (e.g. NRIC/FIN)
Set up a payment service depending on your needs
The payment amount from your form must be converted into cents before you can create payment links using PaySG.
Now that your pipe can accept FormSG responses and transform the payment amount, follow the interactive demo to complete your Plumber set-up with PaySG.
Ensure that you publish your pipe before proceeding to the next step.
Once you've completed the Plumber set-up, you'll need to connect your form on PaySG.
Once your Plumber pipe has been published, retrieve and share your payment form link to begin collecting payments.
All form submissions and payments must be made via the payment form link provided on PaySG's dashboard.
Do not use the original FormSG link as it will not redirect payers to a payment page.
Access your payment service.
Access the "Forms" tab under your payment service and select the connected form.
Copy the Payment form link.
This field must be included for security purposes and to . You may refer to the screenshot below to retrieve your reference ID value when necessary.
for one-time payments, or
for recurring payments.
Contact us at to get an API key. Include the email address that you'd like the API key to be issued to. You may refer to our for more information. Ensure that you save the API key securely.
Follow the interactive demo below or refer to Plumber's guide to to create payment links.