On Your Site
Local Development
Site Code
Guides
Site Configuration
Content Management
Forms
Form API
Templates
Form API
Introduction
The Form API is how you can write Javascript to take payments with Dijon Platform. This is for advanced users, the Javascript that comes with the example Dijon Platform sites will be perfectly adequate for most developers.
The Form API uses the form
template function. It has lots of
defaults to make simple configurations almost automatic.
Include in your template
{{ form([])|raw }}
The Form API allows you to use a single form for both payment and subscription payments.