Before configuring Stripe, the Cirrus Shield organisation must contain the objects, fields, plugin and Connected App described here, with exactly these API names. The screenshots show the French Cirrus Shield interface; French labels are given in quotes.
Overview
Stripe Invoice reads the data below by its API name and writes only two invoice fields: Payment_Status and Payment_Date. A different API name (for example Facture or Statut_de_paiement) prevents the app from finding the data.
| Object (API name) | Fields used (API names) | Create it? | Read / written |
|---|---|---|---|
Invoice | Invoice_Number, Contact, Amount, VAT, Payment_Status, Payment_Date, Due_Date, Pay_URL | Yes (custom object) | Read; Payment_Status and Payment_Date written after payment |
Invoice_Line_Item | Invoice, Product, Quantity, Discount, Price, Total_Price | Yes (custom object) | Read |
Contact | Email, Work_Phone, Street, City, Country, ZIP | No (standard) | Read |
Product | Name, Product_Code, Default_Unit_Price | No (standard) | Read |
| Organisation | Base currency, logo | No (organisation settings) | Read |
The label is free, the API name is not. Create each object and field with the exact API name from the table. Once created, you can change its label (for example “Invoice”, “Payment status”): the app only reads the API name.
Picklist values: Payment_Status must have the values Unpaid and Paid exactly. The payment button only appears when the status is Unpaid, and the app writes Paid after payment.
Step 1 — Check the Invoice object and its fields (create them if missing)
In Setup → Objects (“Objets”), check that an object with the API name Invoice exists and has the fields below with these API names and types. Create the object or any missing field (label of your choice). To create the Amount field, the Invoice_Line_Item object (Step 2) must already exist: it is a roll-up of its lines.


Invoice. The name is what counts.| Suggested label | API name (required) | Type | Settings |
|---|---|---|---|
| Invoice number | Invoice_Number | Auto number or Text | For example prefix Inv-, format 00000, start 1 |
| Contact | Contact | Lookup relationship | Related to Contact |
| Amount | Amount | Roll-up (“Cumulatif”) | Summarized object Invoice_Line_Item, roll-up type Sum, field to aggregate Total_Price |
| VAT (%) | VAT | Number | Length 3, 2 decimals; it is a rate (20 = 20%) |
| Payment status | Payment_Status | Picklist | Values whose Name is Unpaid and Paid (see below) |
| Payment date | Payment_Date | Date/Time | — |
| Due date | Due_Date | Date | — |
| Payment link | Pay_URL | Formula (Text) | See Step 3 |
To add a field: the object’s Custom fields tab (“Champs personnalisés”), the + button, choose the type, then enter the Label (“Étiquette”) and the Name (“Nom”).


Amount field: roll-up (“Cumulatif”) on Ligne de Facture (Invoice_Line_Item), Sum (“Somme”) of Prix total (Total_Price).
VAT field: Number, length 3, 2 decimals.- Standard Cirrus Shield organisation: the Invoice object often already exists with the API name
Invoiceand the fieldsInvoice_Number,Contact,Payment_Status,Payment_Date,Due_DateandPay_URL. Usually you only need to addAmount,VATand theUnpaid/Paidvalues. Payment_Statusvalues: in the field’s details, Picklist values → +, enterUnpaidthenPaid(one value per line) and save. Cirrus Shield gives each value the same Name (Unpaid,Paid). Keep these names. New invoices to be paid must have the statusUnpaid(tick it as Default value if all your invoices go through Stripe).- Amount charged to the customer: Stripe Invoice charges the Total = Amount + Amount × VAT / 100. The VAT amount and the total are calculated by the app.
- Status and date: after payment, the app writes
Payment_Status = PaidandPayment_Date(UTC time). Don’t make them required. - Saving the roll-up: saving the
Amountfield can take about a minute while Cirrus Shield calculates the amount of every invoice. Wait without reloading the page. - Renaming later: you can change the label of the object and of each field. The API name must not change.

Payment_Status after the change: the values Unpaid and Paid (same value and name) sit next to the organisation’s existing values; here the default stayed “Non Envoyée”.Step 2 — Check the Invoice_Line_Item object and its fields (create them if missing)
Check that an object with the API name Invoice_Line_Item exists with the fields below; otherwise create it or add the missing fields (label of your choice). Each line appears on the payment page with its product, quantity, price, discount and total.
| Suggested label | API name (required) | Type | Settings |
|---|---|---|---|
| Invoice | Invoice | Lookup relationship | Related to Invoice |
| Product | Product | Lookup relationship | Related to Product |
| Quantity | Quantity | Number | — |
| Discount (%) | Discount | Number or Percent | 10 = 10% |
| Price | Price | Formula, return type Currency, 2 decimals | Product__ro.Product__ro.Default_Unit_Price * Quantity |
| Total price | Total_Price | Formula, return type Currency, 2 decimals | Price - Price * Discount / 100 |
The syntax Product__ro.Product__ro.<field> (lookup field, then object) is the one the formula editor accepts; the old form Product__ro.Default_Unit_Price is rejected (“Erreur dans la syntaxe”). Click the check icon to the right of the formula: Cirrus Shield must show “La syntaxe de la formule est correcte !”.

Price field: return type Currency (“Devise”), 2 decimals, and the formula accepted by the check.Empty discount: on Price and Total_Price, tick Empty fields are treated as zeros (“Les champs vides vont être considérés comme des zéros”). Otherwise a line without a discount has an empty Total price and the invoice an amount of 0.

Existing invoices: the Amount roll-up is only recalculated when a line is saved. After creating or changing these fields, open and save again the lines of the invoices to be paid.
- Creation order: create
InvoiceandProductbefore the formulas, becausePricereads the unit price of the linked product (Product__ro.Product__ro.Default_Unit_Price). - Link with the amount: the invoice’s
Amountfield (Step 1) adds upTotal_Priceof all its lines. Create it after this object. - Labels: as for the invoice, rename the labels freely afterwards, but keep the API names.
Step 3 — Check the Pay_URL payment link (create it if missing)
On the Invoice object, check that a Formula field with the API name Pay_URL and return type Text exists and contains the formula below; otherwise create it or fix its formula. It shows on each invoice the link to send to the customer (for example by email).
HyperLink("https://stripe.cirrus-shield.net/Payment.php?i=" + Id + "&o=" + $Organization.Id, "Pay")

Pay_URL field (label “Lien de paiement”) with the formula, here with the link text "Pay".- Don’t change the address:
https://stripe.cirrus-shield.net/Payment.php?i=…&o=…is the address the app expects. Old formulas usingpayment.php(lower case) also work. - Link text:
"Pay"can be anything (for example"Payer"). - What the customer sees: the invoice (header, contact, lines, VAT, total), then the payment button that opens the Stripe payment page. An invoice already paid shows without a button.
Step 4 — Check the standard fields used
These fields already exist in Cirrus Shield: nothing to create, but they must be filled in for the invoice to display fully.
| Object | Fields (API names) | Used for |
|---|---|---|
Contact | Email, Work_Phone, Street, City, Country, ZIP | “Customer” block of the payment page |
Product | Name, Product_Code, Default_Unit_Price | Name and code of each line; unit price read by the Price formula |
| Organisation | Base currency, logo | Payment currency; logo at the top of the page (Cirrus Shield logo if missing) |
- Currency: payment is made in the organisation’s base currency (Setup → Organisation). Check it before the first payment.
- Logo: add the organisation’s logo in Setup → Organisation so it appears on the payment page.
Step 5 — Show invoices to users
These settings change nothing for the app: they let users create invoices and see the payment link.
- Tab: Setup → Tabs → New, type Object, custom object Invoice (label of your choice).
- Profiles: in the tab’s details, Profiles → Edit profiles, add the profiles that must see invoices.
- Application: Setup → Applications, open the application concerned (for example CRM), Tabs → Edit, add Invoice, save. The tab appears in the left menu.
- Page layout: create a page layout (page designer) for Invoice_Line_Item, then one for Invoice. In the invoice layout, add a section with the Invoice_Line_Item related list and the Pay_URL field. Tick Tabs to show the section as a tab.
The old web page “InvoiceUsers_Management.php” is no longer used: don’t create a web tab to that address.
Step 6 — Check the objects and fields
Before installing the plugin, check the API names in Setup → Objects: it is the most common reason an invoice does not display.
- ☐ The Invoice object exists and its API name is
Invoice. - ☐ Its fields have the API names
Invoice_Number,Contact,Amount,VAT,Payment_Status,Payment_Date,Due_Date,Pay_URL. - ☐
Payment_Statushas the valuesUnpaidandPaid;Unpaidis the default value. - ☐ The Invoice_Line_Item object exists with
Invoice,Product,Quantity,Discount,Price,Total_Price. - ☐ A test invoice with at least one line shows a non-zero Amount and a Pay link.
- ☐ The invoice’s contact has an email address; the organisation has its base currency (and its logo).
An organisation set up with the old French help may have the names Facture, Ligne_de_facture, Statut_de_paiement, Date_de_paiement, Payer_URL or the values Payé / Non payé. These names are not recognised: create the objects and fields with the API names above.
Step 7 — Check the extension and the Connected App
Stripe Invoice connects to Cirrus Shield through a confidential Connected App (OAuth 2.0) linked to the Stripe Invoice extension: no Cirrus Shield username or password is entered in the app. Cirrus Shield Support installs both; you only check that they are present and active.
- ☐ Setup → Extensions (“Extensions”): the Stripe Invoice row exists and Installed (“Installé”) is ticked.
- ☐ Setup → Connected Apps (“Applications connectées”): the Stripe Invoice Confidentiel row exists, type Confidential, scopes
api:read,api:write, Status ticked.
If either is missing or inactive, contact Cirrus Shield Support.


api:read,api:write, status active (client id hidden).- Associated user: open the Details of Stripe Invoice Confidentiel and check that an associated user is set. That user must be able to read Invoice, Invoice_Line_Item, Contact, Product and the organisation, and update Invoice.
Step 8 — Open the plugin configuration
In Setup → Extensions → Stripe Invoice, open the plugin’s Details. Cirrus Shield shows the Stripe Invoice configuration page and passes it the Connected App’s credentials.
- Expected: “The Cirrus Shield connection is configured.”, with the server (Production or Beta) and the organisation id. The same page is then used to enter the Stripe keys and the alert email (see Stripe configuration).
- Always from the plugin: open this page from Cirrus Shield, never from a saved link. Cirrus Shield sends a new secret each time the page is displayed, and the app saves it each time.
| Message shown | Cause | What to do |
|---|---|---|
| Open this page from the Stripe Invoice plugin in Cirrus Shield Setup. | Page opened outside the plugin, or no active Connected App linked | Check Step 7 (extension installed, Connected App active; otherwise contact Support), then reopen from the plugin |
| The Connected App needs an Associated User. | The Connected App has no associated user | Set the associated user in Connected Apps |
| Cirrus Shield did not accept these credentials. | Secret rejected (regenerated, or app inactive) | Reopen the page from the plugin; check that the plugin is installed |
| Cirrus Shield could not be reached. | Cirrus Shield server unreachable | Try again later |
Stripe configuration
Once the prerequisites are in place, the administrator links the organisation to its own Stripe account: payments go straight to that account.
Step 9 — Stripe account and API keys
- Create an account on stripe.com if the organisation doesn’t have one: the money from paid invoices is paid into this account.
- In the Stripe dashboard, open Developers → API keys. Two keys are needed: the publishable key (
pk_…) and the secret key (sk_…, or a restricted keyrk_…). - Test or live: to try it out, use the test mode keys (
pk_test_…,sk_test_…): no real payment is taken. To take real payments, use the live keys (pk_live_…,sk_live_…).
Never send the secret key by email or in a ticket: enter it only on the configuration page (Step 10).
Step 10 — Enter the Stripe keys and the alert email
Open the Stripe Invoice extension’s details (Step 8). Under “The Cirrus Shield connection is configured.”, the page shows:
- Stripe keys: the state of each key (
set/not set) and, with test keys, the TEST MODE banner (no real payment). - Publishable key / Secret key: paste the two keys from Step 9. Leave a field empty to keep the key already saved. Keys are never shown again.
- Alert email: the administrator’s address. An email is sent from
noreply@cirrus-shield.comif Cirrus Shield stops accepting the extension’s credentials; customers then see a “payment temporarily unavailable” page.

Click Save: the page shows “Settings saved.”. To change keys later (for example from test to live), open the extension’s details again and repeat.
Step 11 — Create the Stripe webhook
The webhook records the payment in Cirrus Shield even if the customer closes their page before the end.
- On the configuration page, in Stripe webhook, copy the address shown:
https://stripe.cirrus-shield.net/stripe/webhook/<organisation id>. - In the Stripe dashboard, open Developers → Webhooks → Add endpoint, paste the address and select the event
checkout.session.completed. - Copy the endpoint’s signing secret (
whsec_…), paste it into the Webhook signing secret field of the configuration page, then Save. The state changes to “Webhook signing secret: set”.
Create the webhook in the same mode as the keys: test mode with test keys, live mode with live keys.
Step 12 — Make a test payment
With test keys (TEST MODE banner), check the whole flow before switching to live keys:
- Create an
Unpaidinvoice with a contact, at least one line (a product with a default unit price) and a VAT rate. - Open its payment link: the invoice shows the Total = Amount + VAT and the Pay with Card button.
- Pay with the Stripe test card
4242 4242 4242 4242, any future expiry date and any code. - Check: “Payment received — thank you” page, invoice switched to
Paidwith its payment date, payment visible in the Stripe dashboard (test mode), and in Webhooks a successful delivery ofcheckout.session.completed.
What users and their customers then see is described in the Stripe Invoice user guide.