For example we use a form where tickets are sold. Just follow these steps when you want accepting payments in your form.
We start with a form with just one choice: the user can select a ticket for the first, second or third row.
First we add the Payment field into the form. The payment field gives the user an overview of the costs.
Select your labels and settings in the Basic tab of the payment field. Don’t forget to select your payment provider. And on the bottom of the Payment box you find the additional fees where you can add, for example, a tax or handling costs to the payment. For this form we add a handling cost of 10% of the sub totals.
Go to the Email tab and fill in the fields where an email will be send when the payment is completed.
Now we have to populate this payment with order lines / amounts. To do this, add 1 or more Price fields to your form. This field will be shown in the editor but will be hidden on the form itself. It’s just a editor-field to configure your price.
There are 3 types of determining the amount of this price field: fixed, field dependent and dynamic.
- Fixed: The most simple variant, just a static fixed amount.
- Field dependent: If the amount needs to be dependent of a users choice (with for example a choice field)
- Dynamic: If your business logic is too complex and you need to use your web API`s, use dynamic. This will make a HTTP request to determine the amount. You can pass any form field as parameter and on change of any of thos fields, the form will make a HTTP request to recalculate the amount. Only for developer plan.
Because the price of our form depends on users choice we select Field dependent by the Price type. Now the Depends on field option is visible. Select the Target button and select the field that you want to give it a price. After you done this the Payment details field is visible where you can add a price for every choice. Again: you can add as many Price fields as you need.
Now the only thing to do is to set your currency. You can find it on the General tab under Form and the in the Various box you find the Currency field where you can select your currency.
All done! Just activate your form and start earning.
See another example form with payments: example
View this form