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
  • Instructions
  • Creating a form and payment service
  • Form creation
  • Payment service creation
  • Plumber set-up
  • Accepting FormSG responses
  • Converting payment amount into cents
  • Creating payments with PaySG
  • Sending emails
  • Sending letters

Was this helpful?

  1. Start using the dashboard
  2. Payment workflows with Plumber

Set-up

PreviousPayment workflows with PlumberNextTesting

Last updated 5 days ago

Was this helpful?

Instructions

To automate payment creation using FormSG's form responses, follow the instructions in the and .

To automate the above and the sending of emails or e-letters to payers, follow the instructions in the , and Sending / sections.

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

  1. Create a storage mode form on FormSG and save your secret key securely. You’ll need this to view responses and to link the form to Plumber.

  2. The following fields should be included in your form, as these will be used in PaySG to create your payment link later on. These fields are included in the template provided. The fields may be renamed if necessary, but the details must either be collected through the form or manually input in Plumber ().

    1. Reference ID

      If not required for your use case, you can manually input a placeholder (e.g. N.A.) on Plumber.

    2. Name

    3. 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 <= 999999,99 (card payments) / 200000 (PayNow payments).

    4. The following fields are optional:

      1. Email

        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

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.

Creating payments with PaySG

Sending emails

Follow the interactive demo below to send PaySG's default payment emails:

Follow the interactive demo below to send customised emails using Postman:

Sending letters

For one-time payments, follow the steps in our guide. For subscriptions, follow the steps in our guide.

Log in to staging.pay.gov.sg and pay.gov.sg before contacting us (go.gov.sg/contact-paysg) to get an API key. You will need this to connect the payment service to Plumber. Ensure that you include the email address for the API key to be issued to. You may refer to our for more information.

Follow the interactive demo below or refer to Plumber's to learn how to connect FormSG and PaySG on Plumber to create payment links.

Follow the interactive demo below or refer to Plumber's to learn how to connect PaySG and create payment links.

You may view a demonstration at . Please use your gov.sg email for form input.

Once you've been onboarded to LetterSG, refer to Plumber's guide on .

payment service creation
subscriptions
FAQ on API keys
guide
guide
go.gov.sg/paysg-fine-demo
Submit your letter template to LetterSG.
connecting LetterSG to Plumber
Creating a form and payment service
Plumber set-up sections
Creating a form and payment service
Plumber set-up
emails
letters
Creating payments with PaySG