Take a card or send Ascora's payment link when a booking is made
Payments lets a customer pay as part of booking. There are two ways. Take a card on the form charges the card with Stripe or Square and records the payment in Ascora. Send Ascora's own payment link instead takes no card on the form: the booking is invoiced in Ascora and the customer is shown Ascora's link to pay the invoice. Payments are a Business plan feature, and a form that books quotes takes none.
Before you start
- A Business subscription. On Free the page says "Want to allow payments on your form?" and nothing can be changed.
- A form that books jobs. On a quote form the page says "This form books quotes, so it takes no payment" and explains that "Ascora invoices jobs, not quotes, so a card is never taken on a quote form, whatever is set here." What you saved is kept for when the form books jobs again.
- For a card: a Stripe or Square credential under Settings, see Stripe credentials and Square credentials. The Customer Email field has to be on and required under Customer Fields, because the card step needs it.
- For the Ascora side: Settings: Read and Users: Read on the Ascora key to load the payment methods and staff, plus Invoices: Read and Invoices: Write and Jobs: Write. See Ascora credentials.
- For a payment link: an online payments setup in Ascora. Formpiece can't check this, so the link is always asked for and a booking fails at that step if Ascora refuses.
Step by step
- Open your form from Forms, then Payments.
- Turn on Allow payments.
- Under Payment approach, choose Take a card on the form or Send Ascora's own payment link instead.
- Fill in the settings that appear (below).
- In Service Pricing, set Take on the form and Amount for every service.
- Click Save.
Take a card on the form
- Payment gateway settings. Choose Stripe or Square. A processor you haven't set up is disabled and the page links to its settings. With Square, choose the Square location, which is required.
- Show payment processor logo shows the Stripe or Square logo under the payment fields.
- Ascora payment method is required. It is what the payment is recorded as in Ascora, from Ascora's own list. Ascora won't record a payment without one.
- Payment comment is saved on the payment in Ascora. Use {date}, {customer} and {service}. Left empty it says which processor took the card. A new form starts with "Paid on the Formpiece booking form {date}".
Send Ascora's own payment link
- Email the link to the customer is on by default. The link is emailed when the booking is made, so the customer still has it if they close the page. Nothing is sent if they gave no email address. Ascora does not email the link itself.
- No Stripe or Square account is needed, no payment method is needed, and nothing is recorded as paid. Ascora does that when the customer pays.
Settings for both
- Invoice raised by is optional. Empty uses the job's assigned staff member.
- Payment currency is what the card is charged in, or in link mode what is shown beside amounts. The list is AUD, GBP, CAD, NZD, USD and ZAR.
- Pricing notes are shown on the form to explain any pre-payment.
Service Pricing
| Column | What it does |
|---|---|
| Take on the form | Deposit, Full price or Nothing. A card takes the Amount whichever of the first two you choose. In link mode only Full price and Nothing are offered. |
| Amount | The amount to charge, in the currency above. At least 0.01, with no more than two decimal places. Disabled for Nothing. |
| Invoice line | The description of the line added to the Ascora job. Empty uses the service name followed by "payment" or "deposit". |
Every service needs a rule. A service with none shows "No pricing rule yet." and the payment step doesn't appear for it. The amount here is separate from the Price on Services, which is only displayed.
How it maps to Ascora
The booking function does the Ascora side after the card has been charged or the booking taken, and keeps each step as it goes so a resend carries on from where it stopped.
- The line. The amount is added to the job as a write-in line with
POST /Jobs/AddWriteIns. The line's part number isFP-and the booking's id, so a line from an earlier try is found and not added twice. - The invoice. The job is invoiced with
POST /Invoices/CreateFromJob, raised by the Invoice raised by user if you chose one. If the job has nothing left to invoice, the function finds the job's existing invoice instead. - A card. The payment is recorded with
POST /Accounting/CreatePaymentagainst the invoice: the amount without any surcharge, the surcharge if there was one, your payment method, the processor's reference as the receipt number, and the comment. - A link.
POST /Invoices/PaymentLinkmakes Ascora's payment link for the invoice. The link pays the invoice's whole balance, and the customer is told that balance, so a job that already carried other lines asks for more than the service's amount.
A callback, and an address outside your regions, were never shown a price, so nothing is invoiced for them. A booking made from an auth link on an existing job records a payment only when a card was taken, because the job has its own invoicing.
When it goes wrong
Save won't go through
The page says one of: "Please select a Square location.", "Please choose the Ascora payment method the payment is recorded as.", "Stripe integration has not been set up!", "Square integration has not been set up!", "Customer email has to be on and required on the Customer fields page before the form can take payments.", "Enter the amount to take for each service that takes a payment.", "Each amount has to be a number." or "Each amount has to be at least 0.01, with no more than two decimal places."
A service says "A payment link pays the whole invoice. Change this to Full price or Nothing."
A service was saved as Deposit before you switched to the link. Change it. The page says "A payment link pays the whole invoice, so no service can take a deposit."
The booking says "its payment link could not be made"
The job was made in Ascora, but the invoice or the link was refused. In link mode this fails the booking so the office sees it: "The booking is made in Ascora, but its payment link could not be made: ... Send the booking again once this is fixed." Every earlier step is kept, so a resend makes nothing twice.
A card was taken but no payment shows in Ascora
The booking stays created and the reason is kept on it. A missing payment method gives "The form has no Ascora payment method chosen, so the payment was not recorded." Set it here, then send the booking again.
Invalid Stripe or Square credentials
"Invalid Stripe or Square credentials will prevent bookings from being made!"
The customer did not get the link email
It is sent only with a valid single email address, and only once. A failed send is kept on the booking and tried again on the next resend.
"This form was saved somewhere else after you opened this page."
Reload the page, then make your change again.