Example Payment Forms

Illustrative checkout pages a platform could build with Preczn's browser SDKs, and who builds each part.

Preczn doesn't provide a checkout page. You design and build every checkout in your own app. Preczn's browser SDKs render only the inputs where a customer enters payment details, and you place those inputs on a page you own.

This page shows what a checkout built that way could look like. The examples are illustrations, not templates, hosted pages, or features you can turn on. Each one is set in Hedgerow, a fictional software platform for landscaping businesses, where the merchant Cedar Hollow Landscaping collects payments from its customers. Hedgerow designed every layout, label, and button on these pages, except the Apple Pay and Google Pay buttons, which are Apple's and Google's own. The highlighted parts show where Preczn's SDK renders inputs. Names, dates, and amounts are made up.

📘

Illustrative examples only

The mockups on this page have no code, design files, or hosted versions behind them. To build a checkout, start from the integration guides linked in each example, and design the page your customers see.

Who builds what


Every checkout on this page uses the same split. You build the page. With PaymentElements or a wallet button, Preczn renders the inputs that capture payment details.

Part of the checkoutWho renders it
The page, layout, branding, and copyYou
Amount, invoice details, and line itemsYou
First name, last name, ZIP code, and other non-payment fieldsYou
The pay button, confirmation, and receiptYou
Card number, expiration, and security code, with PaymentElementsPreczn, as three separate inputs, each in its own iframe
Bank account fields, with PaymentElementsPreczn, each input in its own iframe
Card fields, with PaymentFieldsYou, as your own inputs that PaymentFields reads
Google Pay button and payment sheetGoogle's button component, which Preczn renders inside an iframe. See Google Pay for Web.
Apple Pay buttonApple, through the <apple-pay-button> element you place on your page. See Apple Pay on the Web.
3D Secure challengePreczn, in a lightbox your page opens when the issuer asks for one. Available on Stripe and Stripe Connect connections. See 3D Secure Integration.
The transactionYour server, with your private API key

What you can style

You control everything outside the Preczn inputs. Inside PaymentElements inputs, you set text styles such as color, font, and size through configure(), from an allowed list. See Configure styles and placeholders. The Google Pay button has its own appearance options. See Customize the button's appearance.

Apple Pay and Google Pay buttons

Apple and Google set their own rules for how their buttons, marks, and names appear on your checkout. Before you add a wallet button, read the requirements in Google Pay for Web and the guideline links in the testing checklist of Apple Pay on the Web.

Examples


Each example below is independent and uses the same Preczn inputs in a different layout. None of them is a product. A real Hedgerow checkout would look however Hedgerow designs it.

If your customers ...See ...
Pay an invoice from a linkPay an invoice online
Prefer to pay from a bank accountOffer bank account payments
Pay on a scheduleSave a card for recurring service
Have cards that their bank asks to verifyHandle a card that needs verification

Pay an invoice online

In the example below, Hedgerow has decided to email Cedar Hollow's invoices to Cedar Hollow's customers, with a link to a payment page that Hedgerow hosts on its own domain. Hedgerow put the invoice on the left and the payment options on the right.

pay.hedgerow.example/invoices/1042
Cedar Hollow LandscapingPowered by Hedgerow
Invoice 1042 · Due November 20$485.00
Fall cleanup, 14 Maple Ct.$380.00
Leaf removal$105.00
Total$485.00
Questions about this invoice? Reply to the email it came in.
Pay this invoicePay with Apple Pay
Pay with Google Pay
or pay with a card
Card number
Card number
Expiration
MM / YY
Security code
CVC
First name
First name
Last name
Last name
ZIP code
ZIP
Pay $485.00

Illustration only: a payment page that Hedgerow designed. The Apple Pay and Google Pay buttons are the official buttons, rendered by Apple's and Google's scripts. The highlighted Google Pay button and card inputs are rendered by Preczn. Everything else is Hedgerow's.

On screenWho builds it
Invoice details, line items, and totalHedgerow, from its own invoice data
Pay with Apple PayApple renders it from the <apple-pay-button> element Hedgerow places on the page, with type="pay". Preczn's client returns the token.
Pay with Google PayPreczn renders Google's button inside the <div data-preczn="googlepay"> that Hedgerow places on the page, with buttonType: "pay".
Card number, expiration, and security codePreczn renders each input in its own iframe. Hedgerow writes the labels, sets placeholder text and text styles with configure(), and styles the containers.
First name, last name, and ZIP codeHedgerow's own inputs. Hedgerow's server sends them with the transaction as firstName, lastName, and billingAddress.postal.
Pay $485.00Hedgerow's button. It asks Preczn for a single-use token, sends the token to Hedgerow's server, and the server creates the sale.

Hedgerow has stacked both wallet buttons above its own Pay button, at the same size. To build this, start with PaymentElements Integration, Google Pay for Web, and Apple Pay on the Web. Apple Pay works only on domains you verify. See Apple Pay Domain Verification.

Offer bank account payments

Some homeowners prefer to pay a large invoice from a bank account. In the example below, Hedgerow has decided to add a Bank account tab to the same payment page, and to stack the page into one column on a phone.

pay.hedgerow.example/invoices/1042
Cedar Hollow LandscapingInvoice 1042
$485.00Due November 20
CardBank account
First name
First name
Last name
Last name
Routing number
9 digits
Account number
Account number
Account type
Checking ▾
Bank country
United States ▾
✓I authorize Cedar Hollow Landscaping to debit $485.00 from this account on November 12, 2026. I can revoke this authorization by contacting Cedar Hollow Landscaping.
Pay $485.00

Illustration only: a mobile payment page that Hedgerow designed. The highlighted bank account inputs are rendered by Preczn. Everything else is Hedgerow's.

On screenWho builds it
Card and Bank account tabsHedgerow
First name and last nameHedgerow's own inputs. Hedgerow's server sends them with the transaction as firstName and lastName, which personal bank accounts require.
Routing number, account number, account type, and bank countryPreczn renders each input in its own iframe
Authorization checkbox and textHedgerow writes the text, records the customer's consent, and stores the record
Pay $485.00Hedgerow's button. It requests a single-use bank account token and sends it to Hedgerow's server.

If a customer pays from a business account, collect the business name instead and send it as accountBusinessName. See ACH PaymentFields Integration.

Bank account payments need the customer's authorization before you debit the account. The text in this example is a placeholder. Confirm the wording you need with your processor. See ACH Best Practices and PaymentElements Integration.

Save a card for recurring service

In the example below, Hedgerow has decided to let homeowners sign up for weekly mowing in Cedar Hollow's client portal, which Hedgerow hosts. The customer pays for the first visit and saves the card, and Hedgerow charges it after each later visit.

my.hedgerow.example/cedar-hollow/services/weekly-mowing
Cedar Hollow Landscaping
Home
Services
Invoices
Billing
Set up weekly mowing
Weekly mowing$65.00 per visit, every ThursdayFirst visit November 19. Skip or cancel any visit up to a day ahead.
Payment card
Card number
Card number
Expiration
MM / YY
Security code
CVC
First name
First name
Last name
Last name
ZIP code
ZIP
✓Save this card and charge $65.00 after each later visit. You can remove it any time in Billing.
Pay $65.00 and start service

Illustration only: a client portal page that Hedgerow designed. The highlighted card inputs are rendered by Preczn. Everything else is Hedgerow's.

On screenWho builds it
Plan name, price, and scheduleHedgerow
First name, last name, and ZIP codeHedgerow's own inputs. Hedgerow's server sends them with the transaction as firstName, lastName, and billingAddress.postal.
Card number, expiration, and security codePreczn renders each input in its own iframe
Save this card checkboxHedgerow. When it's checked, Hedgerow's server adds ?tokenize=true to the first visit's sale. If the sale is approved, the response includes a multi-use token, and Hedgerow stores it.
Pay $65.00 and start serviceHedgerow's button. It requests a single-use token and sends it to Hedgerow's server, which creates the first sale.
The charge after each visitHedgerow's server sends a sale with the stored token and tokenUsage set to recurring

Preczn returns a multi-use token only with an approved sale or auth, so the signup step charges the first visit. Preczn doesn't schedule charges. Hedgerow decides when to charge, and its server sends each sale. Multi-use tokens don't store the security code. See Tokenization and Card on File Flags.

Handle a card that needs verification

Some card issuers ask the cardholder to verify a payment before they approve it. This step is called 3D Secure. In the example below, Hedgerow has decided to support 3D Secure on its invoice payment page. When a homeowner's bank asks for verification, Hedgerow's page opens Preczn's verification lightbox over the invoice.

pay.hedgerow.example/invoices/1042
Cedar Hollow LandscapingPowered by Hedgerow
Invoice 1042 · Due November 20$485.00
Fall cleanup, 14 Maple Ct.$380.00
Leaf removal$105.00
Total$485.00
Questions about this invoice? Reply to the email it came in.
Pay this invoicePay with Apple Pay
Pay with Google Pay
or pay with a card
Card number
Card number
Expiration
MM / YY
Security code
CVC
First name
First name
Last name
Last name
ZIP code
ZIP
Verifying…
Secure Payment Verification×
RIVERSTONE BANKConfirm this purchase
Merchant: Cedar Hollow LandscapingAmount: $485.00
Enter the 6-digit code we sent to your phone.
6-digit code
SubmitResend code

Illustration only: Hedgerow's invoice page with Preczn's verification lightbox open. The highlighted header is part of the lightbox Preczn renders. The bank screen inside it is a placeholder, because each card issuer designs its own.

On screenWho builds it
The invoice page behind the lightboxHedgerow. Its Pay button shows Verifying… while the lightbox is open.
Opening the lightboxHedgerow. Its server creates the sale. If the response includes authorization.threeDSecureChallenge with status CHALLENGE_REQUIRED, Hedgerow's page calls Preczn.ThreeDSecure.handleChallenge.
Dimmed background, panel, Secure Payment Verification header, and × buttonPreczn. The panel is 600 by 444 pixels on larger screens and fills the screen on small ones. The header follows the customer's light or dark mode.
Bank name, purchase details, and code entryThe customer's card issuer. Riverstone Bank is fictional, and real screens vary by bank.
What happens after verificationHedgerow. Preczn passes the result to Hedgerow's callback, and Hedgerow shows a confirmation or an error. If the customer selects ×, the callback receives a cancellation.

3D Secure challenges are available on Stripe and Stripe Connect connections, for card payments that use a single-use token from PaymentElements or PaymentFields. See 3D Secure Integration.

Before you build


  1. Choose an integration. PaymentElements, PaymentFields, and the direct API differ in who renders the card inputs and where card data can appear. That choice affects your PCI scope. See Integrations, and confirm your SAQ type with your processors or your QSA.
  2. Keep transactions on your server. Browser code uses only your public API key, to get a token. Your server creates the transaction with your private key. See API Keys.
  3. Build with test keys. Test-mode tokens and transactions are invisible from live mode. See Live vs Test Mode.

FAQ


Does Preczn offer a hosted checkout page?

No. You build and host every checkout page. Preczn's browser SDKs render payment inputs inside your page. On Stripe and Stripe Connect connections, a 3D Secure challenge can also open in a Preczn-hosted lightbox when the issuer requires one.

Can I copy these designs?

The mockups are illustrations, not code. Preczn doesn't provide markup, styles, or design files for them. Design your checkout to fit your app, and use the integration guides for the parts Preczn renders.

Can the Preczn inputs match my brand?

Partly. You style the container around each input with your own CSS, and you set text styles inside it with configure(). See What you can style.

Related pages



Did this page help you?