Documentation
Test environmentLive environmentStatusContact us
  • Overview
    • Get started
    • Resource guides
      • For business users
      • For finance teams
      • For integration teams
    • Stripe onboarding
    • Live use cases
      • Usage overview
  • Start using the dashboard
    • Access
    • Payment services
    • Collaborators and access control
    • One-time payment links
      • Single link creation
      • Bulk link creation
      • Send payment links
      • Payment link page
      • Payment receipt email
    • Subscriptions
      • Set-up
      • View subscriptions
      • Manage subscriptions
    • Payments and refunds
      • Payment methods
      • Dashboard
      • Refunds
    • Payouts
    • Reports
    • Payment workflows with Plumber
      • Set-up
      • Testing
    • Payment forms
      • Set-up
      • Testing
      • Resources
  • Start an API integration
    • Get started
    • Endpoints
    • Integrating with your e-services
    • Errors
    • Idempotency
    • Pagination
    • Go-live checklist
  • API RESOURCES
    • Events
      • The event object
      • Types of events
    • Payments
      • Create a payment
      • Retrieve payments
      • Send email for payment
      • Cancel a payment
      • Refund a payment
      • Get all payments from payment service
  • WEBHOOKS
    • Introduction
    • Set-up
      • Events
      • Best practices
  • FAQ
    • Access
    • Costs
    • Timeline
    • API keys
    • API integration
    • Payments
    • Payment methods
    • Payouts and transaction fees
    • Refunds
    • Security and compliance
    • Downtime and maintenance
  • Policies
    • Privacy Policy
    • Terms of Use
Powered by GitBook
On this page
  • Creating a form and payment service
  • Form creation
  • Payment service creation
  • Plumber set-up
  • Accepting FormSG responses
  • Converting payment amount into cents
  • Connecting your form to your payment service
  • Retrieve your payment form link
  • Creating payments with PaySG
  • Collecting payments with payment forms

Was this helpful?

  1. Start using the dashboard
  2. Payment forms

Set-up

Payment forms use 3 platforms: PaySG, FormSG, and Plumber. You'll need to do some set up on each platform.

PreviousPayment formsNextTesting

Last updated 5 days ago

Was this helpful?

What you'll need to do:

  1. Create a FormSG form with our required fields

  2. Create a pipe on Plumber to transform each form submission to a payment amount

  3. Connect your form to PaySG

This guide will take you through each step and its setup.

Creating a form and payment service

You will need:

  1. A form and its corresponding secret key.

  2. A payment service and an API key, issued to you by the PaySG team (go.gov.sg/contact-paysg)

Form creation

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.

Form field setup

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 .

  1. Reference ID (corresponds to FormSG Reference Field Answer on Plumber)

    1. This is a "Short answer" field with "Enable pre-fill" and "Prevent pre-fill editing" enabled.

    2. PaySG will automatically pre-fill this field with a unique ID for each form submission.

  2. Name

  3. Payment amount

    1. 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.

  4. Email (Compulsory for subscriptions)

The following fields are optional:

  1. Email (Optional only for one-time payments)

    1. 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.

  2. Address

  3. Identifier (e.g. NRIC/FIN)

Payment service creation

  1. Set up a payment service depending on your needs

Plumber set-up

Accepting FormSG responses

Converting payment amount into cents

The payment amount from your form must be converted into cents before you can create payment links using PaySG.

Connecting your form to your payment service

In order to complete the Plumber set-up, you'll need to connect your form on PaySG.

Retrieve your payment form link

Once you've connected your form, retrieve the payment form link to complete the Plumber set-up.

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.

  1. Access your payment service.

  2. Access the "Forms" tab under your payment service and select the connected form.

  3. Copy the Payment form link.

Creating payments with 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. To include information from your form responses in your PaySG report, ensure that you follow the steps in the interactive demo to include Additional responses.

Ensure that you publish your pipe before proceeding to the next step.

Collecting payments with payment forms

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.

Once you've published your Plumber pipe, and begin collecting payments.

Create a storage mode form
form template
form template
Payment Service Creation
Subscriptions
go.gov.sg/contact-paysg
FAQ on API keys
learn how to connect FormSG and PaySG on Plumber
connect your form to a payment service
retrieve your payment form link