Stripe Connect
Board merchants as Stripe connected accounts, import existing connected accounts and their transactions, and process card and wallet payments through Preczn.
Overview
Preczn creates a Stripe connected account for each merchant you board, imports your existing connected accounts and their charges, and routes card, Apple Pay, and Google Pay payments to each merchant's connected account.
Stripe or Stripe Connect?
Use Stripe Connect when your platform owns a Stripe Connect account and its merchants are connected accounts under it. Preczn uses your platform's keys for every merchant. Use Stripe when each merchant has its own Stripe account and gives you its own keys.
Merchant onboarding
| Capability | Supported | Details |
|---|---|---|
| Merchant onboarding | ✓ Yes | Jump to Onboarding a merchant |
| Onboarding through the API | ✓ Yes | Jump to Onboarding a merchant |
| Merchant import | ✓ Yes | Jump to Merchant import |
Transactions
| Capability | Supported | Details |
|---|---|---|
| Card transactions | ✓ Yes | Jump to Processing transactions |
| Apple Pay transactions | ✓ Yes | Jump to Processing transactions |
| Google Pay transactions | ✓ Yes | Jump to Processing transactions |
| ACH transactions | ✗ No | |
| Transaction import | ✓ Yes | Jump to Transaction import |
Tokens and lending
| Capability | Supported | Details |
|---|---|---|
| Token migration | ✗ No | |
| Lending | ✗ No |
Configuring the platform connection
Confirm raw card data access with Stripe
Preczn sends card details to Stripe server-to-server, which uses Stripe's raw card data APIs. Stripe doesn't turn these on by default. Before you process payments, confirm with Stripe that your Stripe Connect platform account can send raw card data. See the Token prerequisites section.
In the Dashboard, go to Connections → Add Connection and select Stripe Connect. For the general steps, see Add a connection to your platform.
| Dashboard field | Required | Description |
|---|---|---|
| Public Key | Yes | Your Stripe Connect platform's publishable key, from the Developers section of the Stripe Dashboard. |
| Secret Key | Yes | Your Stripe Connect platform's secret key, from the same place. |
| Import Merchant Transaction History | No | Imports a linked or imported merchant's past charges. See the Transaction import section. |
| Continuous Transaction Import | No | Imports new charges as they happen. |
| Continuous Merchant Import | No | Imports connected accounts as Stripe activates them. See the Merchant import section. |
Click Verify connection, and then click Connect. The Dashboard rejects a test key in Live mode and a live key in Test mode. Preczn then checks the secret key by reading your platform's Stripe account.
When you save the connection, Preczn creates the Stripe Connect webhooks on your platform account, for charge, payment, and account events. You don't set up webhooks in Stripe.
Preczn doesn't check the public key, and restricted keys may fail later
Preczn verifies only the secret key, and only by reading the account. A key that can read the account but not create charges, refunds, or webhooks passes verification and fails later.
Stripe restricted keys can be scoped so that imports, onboarding, or transactions fail. If you must use a restricted key, set its All Connect Resources permission to Read so verification succeeds. A standard secret key avoids this.
Linking existing credentials
If a merchant already has a connected account under your Stripe Connect platform, link it instead of boarding the merchant again. A merchant has one connection for each processor. For a business with two accounts, see Use two accounts at one provider. To bring in many connected accounts at once, see the Merchant import section.
To link the account, give Preczn the merchant's connected account ID, which starts with acct_. Preczn reads the account from Stripe with your platform's secret key.
Choose how you'll link the account. Select the Dashboard tab or the API tab.
- In Merchant Vault, open the merchant.
- Under Connections, select StripeConnect.
- Click Edit, and enter the connected account ID in Connected Account ID.
- Click Verify connection. The drawer shows Credentials successfully verified if Stripe returns the account, and Verification failed otherwise.
- Click Save changes.
- Send the connected account ID as
midwithPATCH /v1/merchants/{merchantId}/connections/StripeConnect:
{
"mid": "{connectedAccountId}"
}If Stripe returns the account, Preczn saves the ID and sets the connection to Active. If it doesn't, the request returns 400 and Preczn doesn't save the ID.
Preczn doesn't check whether the account can accept charges when you link it. After the link, Stripe's account.updated events keep the connection's status current. See the Merchant status section.
Merchant import
Preczn can import the connected accounts under your Stripe Connect platform. For the steps, see Run a one-time import and Turn on continuous import.
- One-time import brings in every connected account your secret key can list. An account whose ID is already on your platform isn't imported again.
- Continuous import brings in a connected account that Preczn doesn't know yet when Stripe reports it as able to accept charges and payouts, while Continuous Merchant Import is on.
Each imported merchant arrives with its business details, owners, terms acceptance, and connected account ID. Bank accounts aren't imported. Preczn sets the connection's status from the account's Stripe state.
Onboarding a merchant
You send the merchant's data to Preczn with a boarding form or through the API. Preczn checks it against your Stripe Connect requirements template. When the data is complete, Preczn creates a Stripe connected account for the merchant, adds its owners, and reports each status change to your platform.
This diagram shows what happens after you send the onboard request for a Stripe Connect merchant.
sequenceDiagram
participant H as Your platform
participant P as Preczn
participant S as Stripe
autonumber
H->>P: Onboard request (or submit boarding form)
P-->>H: Status Queued
P->>S: Upload documents
P->>S: Create connected account with bank account and terms acceptance
P-->>H: merchant.updated (Sent)
P->>S: Add owners and update company details
loop On each Stripe account change
S-->>P: account.updated
P-->>H: merchant.updated
end
Required merchant data
Preczn checks each merchant against your Stripe Connect requirements template. Until a merchant meets every requirement, its Stripe Connect connection stays in Requirements, and missingRequiredData lists what's missing. For how requirements are evaluated, see Onboarding data requirements.
Beyond the business, owner, and banking data in the template, Stripe Connect needs the merchant's terms acceptance. See the Terms and conditions section.
Terms and conditions
The merchant accepts the Stripe Connected Account Agreement, which includes the Stripe Services Agreement. Preczn requires a record of the acceptance before it boards the merchant, and sends it to Stripe as the account's terms acceptance.
| API field | Required | Description |
|---|---|---|
connectionspecificRequirements.tosDate | Yes | The date the merchant accepted, as YYYY-MM-DD. |
connectionspecificRequirements.tosIp | Yes | The IP address the merchant accepted from. |
connectionspecificRequirements.userAgent | No | The browser user agent the merchant accepted from, sent when set. |
A requirements template can't make tosDate or tosIp optional for Stripe Connect.
Collecting the merchant's data
You can collect Stripe Connect merchants' data through the API as well as the boarding form. With the API, your platform also handles the shared requirements and the Stripe Connect work on the API tab.
Choose how you'll collect the merchant's data. Select the Boarding form tab or the API tab.
When the form shows terms, a boarding form that includes Stripe Connect adds a Terms & Conditions step. The step shows the Stripe terms with links to the Stripe Connected Account Agreement, the Stripe Services Agreement, and the Stripe Disclosures. It asks for the signer's first and last name and has a checkbox. When the merchant agrees, the form saves the date as tosDate, and Preczn records the IP address the merchant's browser sent the acceptance from as tosIp.
For general form setup, see Hosted boarding forms.
Follow the shared sequence in Board through the API. In addition to the shared requirements, your platform must do the following for each Stripe Connect merchant:
- Show the Stripe Connected Account Agreement and record the acceptance. Show the merchant the Stripe Connected Account Agreement, and then record the date and the merchant's IP address with
PATCH /v1/merchants/{merchantId}/connections/StripeConnect:
{
"connectionspecificRequirements": {
"tosDate": "{YYYY-MM-DD}",
"tosIp": "{merchantIpAddress}",
"userAgent": "{merchantUserAgent}"
}
}How Preczn sends your data
Preczn creates a Custom connected account that requests card payments and transfers. If a value in Stripe looks different from what you sent, check the following:
- Sole proprietors are sent as an individual. Preczn sends the owner marked as the primary representative, or the first owner, as the account's individual.
- Other businesses get one person per owner. Each owner becomes a Stripe person with their title, ownership percentage, and director, executive, and representative roles. An owner's
middleNameis sent as Stripe's maiden name. - One bank account is boarded. Preczn sends the account marked as primary, or the first account if none is marked, in US dollars.
- Identity documents are attached to people. Preczn uploads every document on the merchant to Stripe, and attaches each owner's ID front, ID back, and utility bill to that owner's person.
When boarding fails
Preczn boards a Stripe Connect merchant in two stages:
- Preczn creates the connected account. If Stripe rejects it, the connection moves to Error, and
actionDescriptionholds Stripe's message. Fix the data, and then onboard again. - Preczn adds the merchant's owners to the new account. The connection is already Sent at this point, because the account exists. If Stripe rejects an owner, the connection moves from Sent to Error, and
actionDescriptionholds Stripe's message. You can receive amerchant.updatedwebhook for Sent just before the one for Error.
After an owner error, correct the owner data, and then contact Preczn support to resend the owners. Onboarding again doesn't resend them, because the connected account already exists.
How Preczn checks status
Stripe sends each connected account change to Preczn as an account.updated event, through the webhook Preczn created when you saved the platform connection. Preczn ignores events older than the connection's last update. For how you receive status changes, see Status updates.
Merchant status
A Stripe Connect connection moves through the following Preczn statuses. For Unconfigured and Evaluating, see Connection statuses.
| Preczn status | What it means | What to do |
|---|---|---|
| Requirements | The merchant is missing required data. | Collect the missing data. |
| Ready | The merchant meets every requirement. | Onboard the merchant. |
| Queued | Preczn accepted the onboard request. | Wait. |
| Sent | Preczn created the connected account. | Wait for Stripe's review. |
| Underwriting | Stripe is verifying the account. | Wait. |
| Active | The account can accept charges and payouts. | None. |
| Disabled | Stripe paused the account, often for missing information. | Open the account in Stripe and resolve it. |
| Rejected | Stripe rejected the account. | Contact Stripe for details. |
| Error | Preczn couldn't create the account or add an owner. | See the When boarding fails section. |
When Stripe still needs information from the account, the connection's actionRequired is true and actionDescription asks you to open the Stripe Dashboard. A Stripe state that none of these statuses covers leaves the connection's status unchanged.
Responding to an RFI
Preczn doesn't support Stripe requests for information. Stripe lists what it needs on the connected account, and you and the merchant provide it in Stripe. When Stripe updates the account, Preczn receives the change and updates the connection's status.
Processing transactions
Preczn processes card transactions through Stripe Connect: sale, auth, capture, refund, void, and verify. For each type, see Choose a transaction type. Stripe Connect doesn't support ACH through Preczn. Apple Pay payments are sent as network tokens with their cryptograms. A Google Pay payment is sent as a network token when Google Pay returns one, and otherwise as a standard card payment. See Wallets and Accept Google Pay.
Stripe Connect supports 3D Secure on card payments, not wallets, when you request it. See 3D Secure.
Token prerequisites
Preczn sends the card number, expiration date, and CVV from its vault to Stripe. If your platform's Stripe account doesn't have raw card data access, Stripe rejects the transaction. Apple Pay payments, and Google Pay payments that carry a network token, send a decrypted network token, which Stripe may enable separately. Confirm both with Stripe before you go live.
Synchronous and asynchronous outcomes
Card transactions return Approved or Declined right away. When you request 3D Secure and the issuer needs a challenge, the transaction returns Pending until the customer completes it. Without a 3D Secure request, a payment that needs customer action is declined.
Stripe reports later changes, such as refunds and cancellations, through the webhooks Preczn created for your platform, and Preczn sends you the final status as a transaction webhook. See Transaction webhook payloads.
Platform fees
How Preczn creates the charge depends on the transaction's fee:
- No fee: Preczn creates the charge directly on the merchant's connected account.
- A fee: Preczn creates the charge on your platform account, transfers it to the merchant's connected account, and keeps
feeas the application fee. A refund of the charge comes from your platform account. Preczn doesn't reverse the transfer or refund the application fee.
Data sent to Stripe Connect
Preczn sends the following values with limits or changes:
- Description. Preczn cuts
descriptionto 350 characters. - Metadata. Preczn sends metadata with each value cut to 500 characters, and adds the Preczn transaction ID as
precznId. - Statement descriptor. Preczn sends
merchantInfo.name, the dynamic statement descriptor, as Stripe's statement descriptor suffix. Stripe applies its own length limits. - Level II and Level III data. Preczn doesn't send them to Stripe Connect.
Transaction import
Preczn imports Stripe Connect charges for merchants linked to your platform. For how import works, see Transaction import.
- One-time import covers the last six months of charges on the merchant's connected account.
- Continuous import brings in each new payment as Stripe reports it, while Continuous Transaction Import is on. Refunds aren't imported.
Every imported charge arrives as a sale, and its approved amount is the amount Stripe captured. Preczn sets each imported charge's status from its Stripe status:
| Stripe charge status | Preczn status |
|---|---|
| succeeded | Approved |
| failed | Declined |
| pending | Pending |
| Any other status | Error |
Testing in test mode
In Test mode, Preczn uses your test platform connection, and the Stripe environment follows the key you enter: enter your Stripe test-mode keys on the test connection. Saving the test connection creates its webhooks in Stripe test mode. Use the Preczn test cards. Preczn translates them to Stripe test card numbers. See Live vs. test mode.
FAQ
Why is a merchant Disabled when the connected account exists?
Stripe paused the account, usually because it still needs information. Check actionDescription, and then open the account in the Stripe Dashboard to provide what Stripe asks for. Preczn updates the status when Stripe sends the change.
Why did verification fail with Invalid credentials?
The key doesn't match the mode. Use sk_test_ and pk_test_ keys on a Test mode connection, and sk_live_ and pk_live_ keys on a Live mode connection.
Why did verification fail with Credential verification was unsuccessful?
Stripe didn't return your platform account for the secret key. Check the key, and if it's a restricted key, see the Configuring the platform connection section.
Why does every card transaction fail with an error from Stripe?
Your platform's Stripe account most likely lacks raw card data access. Confirm it with Stripe. See the Token prerequisites section.
Updated about 23 hours ago
