Skip to main content

Migrating from Stripe to Forward

Introduction​

This guide walks engineering and product teams through switching from Stripe (including Stripe Connect) to Forward's Managed PFAC platform.

Forward's Payments API uses familiar primitives — PaymentIntent (pi_), PaymentMethod (pm_), Customer (cus_), CheckoutSession, and embeddable Payment Elements — so much of your mental model carries over directly. However, there are important architectural differences in authentication, error handling, merchant onboarding, payment execution, webhooks, and stored-card migration that you should plan for before writing code.


Migration Roadmap​

Most teams migrate in five phases:

PhaseFocusKey Forward Docs
1. Onboarding & AccountsMap Stripe Connect accounts to Forward Businesses, Accounts, Processing Plans, and PayeesBoarding API Guide, Merchant Application, Payees
2. Backend Payments APISwitch auth headers, JSON payloads, Payment Intents, splits, refunds, and error handlingAccept Payments, Splitting Payments, Error Handling
3. Frontend Checkout & SDKReplace Stripe.js / Elements with Forward Payment Elements (or Custom VGS Vault for gradual cutover)Payment Elements SDK, Custom VGS Vault
4. Customers & Stored CardsMigrate existing vaulted cards via PCI PAN export or dual-tokenization; enroll in Account UpdaterData Migrations, Customers, Account Updater
5. Webhooks, Testing & Go-LiveUpdate webhook signature verification, run sandbox tests, cut over traffic, and wind down StripeWebhooks, Verifying Webhooks, Test Card Numbers

Concept & Resource Mapping​

Use this table to map your existing Stripe integration to its Forward equivalent.

Stripe Concept / EndpointForward EquivalentNotes
Authorization: Bearer sk_...x-api-key: key_...Private key for server-to-server calls; publishable key (pkey_... / pk_...) for frontend SDK. See API Key Usage.
Stripe-Account: acct_... / Stripe-Contextx-account-id: acct_... (or x-business-id: bus_...)Required on merchant-scoped Payments API calls.
application/x-www-form-urlencodedapplication/jsonAll Forward API requests and responses use JSON (Content-Type: application/json).
Idempotency-Key headerx-idempotency-key headerMin 10 characters (UUID v4 recommended). Supported on POST and PUT; cached for 8 hours.
Connected Account (POST /v1/accounts)POST /businesses + POST /applications → acct_...Merchants are boarded via an Application under a Business with a processing_plan_id.
Hosted Onboarding (POST /v1/account_links)POST /applications/{id}/linkGenerates a hosted, brandable application URL with pre-filled merchant data.
Express Dashboard Link (POST /v1/accounts/{id}/login_links)POST /v1/users/{id}/login_urlSingle-use passwordless login link. See Passwordless Sign-In.
off_session: true / setup_future_usageorder_details CIT/MIT flagsDeclare initiated_by (customer | merchant) and card_not_present_type (ecommerce | recurring). See CIT and MIT Flags.
POST /v1/payment_intents + confirmPOST /payment_intents + POST /payment_intents/{id}/paymentsPayment creation/processing is an explicit server-side step after tokenization.
POST /v1/setup_intentsPOST /payment_method_intents (PMI)Stores a card or bank account without charging; supports optional $0 auth (validate: true).
POST /v1/customers (cus_...)POST /customers (cus_...)Requires account_id; can be attached to multiple accounts under the same business_id.
POST /v1/payment_methods/{id}/attach & detachPOST /payment_methods/{id}/attach & detachUp to 25 payment methods per customer; also supports PATCH /payment_methods/{id}.
application_fee_amount / transfer_datapayment_splits on Payment IntentRoutes funds from the merchant to your Partner ID (part_...) or a Payee (ctrct_...).
Separate Transfers (POST /v1/transfers)Payees + payment_splits / Adhoc FeesPayees receive split funds; POST /fees supports post-payment or standalone fees.
POST /v1/refundsPOST /payment_intents/{id}/refundsSupports partial refunds and refund_splits.
POST /v1/checkout/sessionsPOST /checkout_sessionsHosted checkout with success_url, cancel_url, and SMS/email delivery helpers.
GET /v1/balance, /balance_transactions, /payoutsGET /balances, GET /transactions, GET /payoutsAlso supports POST /transactions/search, POST /transactions/download, and GET /businesses/payouts.
GET /v1/disputesGET /disputes, GET /disputes/{id}Retrieve dispute status, reason codes, due dates, and disposition details.
Stripe.js / Elements (js.stripe.com/v3/)Forward Payment Elements SDK (forward.js)Supports Payment Element, Card Element, Bank Element, Apple Pay, and Google Pay.
Stripe TerminalCard Present Payments (/terminals/fiserv/*)Requires Fiserv/Clover hardware; Stripe readers are not cross-compatible.
Automatic Card Account UpdaterCustomer-level cau_enrolledEnable on merchant account, enroll Customer, listen for payment_method.automatically_updated.
metadata objectuser_fields object + reference_idStore your own CRM/order/Stripe IDs for reconciliation.
Stripe Billing / Subscriptions / InvoicingApplication-managed using Customers + PMs + Payment IntentsForward does not include a native Subscriptions engine; see Recurring Billing.

Critical Differences to Know Before Coding​

Review these behavioral differences early so they do not surprise your team during integration.

1. Card declines return HTTP 200, not 402​

Most common migration bug

In Stripe, a declined card throws an HTTP 402 (card_error). In Forward, a payment decline returns HTTP 200. Forward reserves non-2xx status codes for validation (400/422), authentication (401/403), conflicts (409), rate limiting (429), and server errors (5xx).

Always inspect status on the Payment Intent and latest_payment.status to confirm whether a payment succeeded:

  • Payment Intent statuses: created, processing, pending, uncaptured, captured, cancelled, failed
  • Payment statuses: processing, pending, uncaptured, captured, cancelled, voided, failed, rejected

See Error Handling for full details, including how to safely handle 500 responses without double-charging.

2. Reuse a single Payment Intent across retry attempts​

Just like Stripe best practices, create one Payment Intent per checkout session. If a payment attempt fails or is declined, keep using the same pi_... for the customer's next card or retry — do not create a new Payment Intent. Use your cart or invoice ID as reference_id on the Payment Intent, and an attempt-suffixed value (e.g. cart_123456-1, cart_123456-2) on each payment attempt.

3. Nested objects on PATCH /customers/{id} are replaced, not merged​

In Stripe, updating a single key in metadata merges with existing keys. In Forward, address, shipping_address, and user_fields on PATCH /customers/{id} are replaced in full when included in the request body. Send the complete object when updating nested fields, or omit the field to leave it unchanged.

4. Pagination differences​

  • Payments API uses cursor-based pagination similar to Stripe (starting_after, ending_before, limit), but wraps pagination metadata inside meta (meta.has_more, meta.limit) and caps limit at 50 (Stripe allows up to 100).
  • Boarding API uses page-based pagination (page, size, returning meta.page, meta.size, meta.total_count).

5. Supported currencies and regions​

Forward supports United States (USD) and Canada (CAD). Currency is inherited from the merchant's Processing Plan rather than passed per Payment Intent. US bank payments use ACH (bank / us_bank_ach); Canadian bank payments use EFT (ca_bank / ca_bank_eft).

6. Rate limits and idempotency windows​

  • Rate limits: Production defaults to 300 requests per 30 seconds (increased to 1,500 requests per 30 seconds on processing endpoints), returning HTTP 429.
  • Idempotency: Pass x-idempotency-key (at least 10 characters) on POST and PUT requests. Cached responses are retained for 8 hours (compared to 24 hours in Stripe).

Phase 1: Merchant Onboarding (Stripe Connect → Boarding API)​

In Stripe Connect, your platform owns Connected Accounts (acct_...). In Forward, the hierarchy is:

Partner (your SaaS platform, part_...)
└── Business (merchant legal entity, bus_...)
├── Account (merchant processing account / location, acct_...)
├── Users (merchant portal users, user_...)
└── Customers (payers, cus_... — shareable across Accounts under the same Business)

Each merchant Application also references a Processing Plan (processing_plan_id), which defines merchant pricing (flat rate, interchange-plus, ACH/EFT fees, etc.). You can configure plans in the Partner Portal and list them via GET /processing_plans.

Step 1: Create a Business and Hosted Application​

In Stripe Connect, you call POST /v1/accounts and then POST /v1/account_links. In Forward, you create a Business, create a draft Application (pre-filling everything you already know from Stripe), and generate an Application Link:

Before (Stripe Connect):

# 1. Create Connected Account
curl https://api.stripe.com/v1/accounts \
-u "sk_live_...:" \
-d type=express \
-d country=US \
-d "company[name]=Acme Cookies LLC"

# 2. Create Onboarding Link
curl https://api.stripe.com/v1/account_links \
-u "sk_live_...:" \
-d account=acct_stripe123 \
-d refresh_url="https://app.example.com/reauth" \
-d return_url="https://app.example.com/return" \
-d type=account_onboarding

After (Forward Boarding API):

# 1. Create Business (once per merchant entity)
curl -X POST "https://<api-host>/businesses" \
-H "x-api-key: key_123456789" \
-H "Content-Type: application/json" \
-d '{ "name": "Acme Cookies LLC" }'

# 2. Create Draft Application (pre-fill known data from your DB / Stripe)
curl -X POST "https://<api-host>/applications" \
-H "x-api-key: key_123456789" \
-H "Content-Type: application/json" \
-d '{
"business_id": "bus_12345678",
"name": "Acme Cookies - Main",
"processing_plan_id": "partppl_2hpScdzijRDZqqu68xZ21ues42s",
"external_account_id": "acct_stripe123",
"company": {
"ownership_type": "LIMITED_LIABILITY_COMPANY",
"legal_name": "Acme Cookies LLC",
"dba_name": "Acme Cookies",
"website": "https://acmecookies.com",
"mcc": "5462"
},
"partner_data": {
"backbook": true,
"prior_annual_volume": 500000,
"prior_avg_ticket": 4500,
"prior_high_ticket": 25000
}
}'

# 3. Generate Hosted Application Link
curl -X POST "https://<api-host>/applications/<application_id>/link" \
-H "x-api-key: key_123456789"
Speed up underwriting for existing Stripe merchants

Pass external_account_id (to keep a reference to the merchant's legacy Stripe acct_ ID) and populate partner_data (backbook, prior_annual_volume, prior_avg_ticket, prior_high_ticket, six_mos_chargeback_rate, six_mos_refund_rate) when creating applications for merchants migrating off Stripe.

See Boarding API Step by Step for full pre-fill schemas, including Canadian (CA) ownership types, BN/SIN IDs, and Canada processing plans.

Step 2: Monitor Account Readiness​

Replace checks on Stripe's account.updated (charges_enabled and payouts_enabled) with Forward's Boarding webhooks and GET /accounts/{id}:

Stripe Connect SignalForward Equivalent
Account created / approved (charges_enabled: true)Webhooks v2.account.created & v2.account.gateway_updated; GET /accounts/{id} shows processing_enabled: true and status: "boarded"
Additional KYC docs requested (requirements.currently_due)Application status NEED_INFORMATION (documents_requested field)
Payouts ready (payouts_enabled: true)Webhook v2.account.payouts_enabled; GET /accounts/{id} shows payouts_enabled: true
Express Dashboard login linkPasswordless Sign-In: POST /v1/users/{id}/login_url

Phase 2: Backend Payments, Splits & Refunds​

1. Creating and Processing a Payment​

In Stripe, you create a PaymentIntent on your server and typically confirm it on the client (stripe.confirmPayment) or with confirm: true. In Forward, your frontend SDK tokenizes the card into a pm_... ID, and your backend executes the payment via POST /payment_intents/{id}/payments.

Before (Stripe):

curl https://api.stripe.com/v1/payment_intents \
-u "sk_live_...:" \
-H "Stripe-Account: acct_stripe123" \
-H "Idempotency-Key: order-10041" \
-d amount=1000 \
-d currency=usd \
-d payment_method=pm_stripe456 \
-d confirm=true

After (Forward):

# Step 1: Create Payment Intent (returns client_secret for Payment Elements)
curl -X POST "https://<api-host>/payment_intents" \
-H "x-api-key: key_123456789" \
-H "x-account-id: acct_12345678" \
-H "x-idempotency-key: order-10041-intent" \
-H "Content-Type: application/json" \
-d '{
"amount": 1000,
"capture": true,
"reference_id": "order-10041",
"description": "Order #10041",
"payment_method_types": ["card"]
}'

# Step 2: After frontend tokenization (or using a saved pm_ / customer_id), process the payment
curl -X POST "https://<api-host>/payment_intents/pi_2SG6ibTHTo4N6Sdx6Oh66IGg3o3/payments" \
-H "x-api-key: key_123456789" \
-H "x-account-id: acct_12345678" \
-H "x-idempotency-key: order-10041-attempt-1" \
-H "Content-Type: application/json" \
-d '{
"payment_method_id": "pm_2SXKvZzhPgZJ4nbcVq8UB9eT1B7",
"reference_id": "order-10041-1"
}'

Inspect status and latest_payment.status in the 200 response (captured / uncaptured vs failed).

2. Auth-Only (Manual Capture) & Cancellations​

ActionStripeForward
Authorize without capturingcapture_method: "manual" on PaymentIntent"capture": false on POST /payment_intents
Capture full or partial amountPOST /v1/payment_intents/{id}/capture (amount_to_capture)POST /payment_intents/{id}/capture (amount)
Cancel / void uncaptured intentPOST /v1/payment_intents/{id}/cancel (cancellation_reason)POST /payment_intents/{id}/cancel (cancellation_reason: duplicate, fraudulent, requested_by_customer, abandoned)

3. Platform Fees & Multi-Party Splits​

Replace Stripe Connect's application_fee_amount, transfer_data, and POST /v1/transfers with Forward's payment_splits, Payees, and Adhoc Fees:

Before (Stripe Connect Direct Charge with Application Fee):

curl https://api.stripe.com/v1/payment_intents \
-u "sk_live_...:" \
-H "Stripe-Account: acct_stripe123" \
-d amount=10000 \
-d currency=usd \
-d application_fee_amount=250

After (Forward Payment Splits):

curl -X POST "https://<api-host>/payment_intents" \
-H "x-api-key: key_123456789" \
-H "x-account-id: acct_12345678" \
-H "Content-Type: application/json" \
-d '{
"amount": 10000,
"payment_splits": [
{
"amount": 250,
"description": "Platform Application Fee",
"account_id": "part_1Gqj58Bb9Yj8DZ9C1232"
}
]
}'
  • Do not include the merchant's own acct_... in payment_splits — the merchant automatically keeps the remainder after splits and processing fees.
  • To split funds to a third party (such as a contractor or vendor, similar to Stripe Separate Charges & Transfers), onboard them as a Payee (ctrct_...) and include their ctrct_... ID in payment_splits.
  • To assess a fee after a payment settles or as a standalone fee (e.g., monthly SaaS or late fees), use Adhoc Fees (POST /fees).

4. Refunds & Reversing Splits​

In Stripe, refunds are created at POST /v1/refunds with payment_intent, amount, and refund_application_fee=true. In Forward, refunds are nested under the Payment Intent and accept refund_splits:

curl -X POST "https://<api-host>/payment_intents/pi_2SG6ibTHTo4N6Sdx6Oh66IGg3o3/refunds" \
-H "x-api-key: key_123456789" \
-H "x-account-id: acct_12345678" \
-H "x-idempotency-key: refund-order-10041" \
-H "Content-Type: application/json" \
-d '{
"amount": 10000,
"refund_splits": [
{
"amount": 250,
"description": "Application Fee Refund",
"account_id": "part_1Gqj58Bb9Yj8DZ9C1232"
}
]
}'

5. Hosted Checkout Sessions​

If you use Stripe Checkout (POST /v1/checkout/sessions), Forward provides POST /checkout_sessions:

curl -X POST "https://<api-host>/checkout_sessions" \
-H "x-api-key: key_123456789" \
-H "x-account-id: acct_12345678" \
-H "Content-Type: application/json" \
-d '{
"success_url": "https://yoursite.com/success",
"cancel_url": "https://yoursite.com/cancel",
"reference_id": "order-10041",
"payment_method_types": ["card"],
"payment_intent_data": {
"amount": 1000,
"capture": true
}
}'

Forward also includes built-in endpoints to deliver checkout links and receipts (POST /checkout_sessions/{id}/send/email, POST /checkout_sessions/{id}/send/sms, POST /checkout_sessions/{id}/receipt/email, and POST /checkout_sessions/{id}/expire).

6. Bank Payments (ACH / EFT) and Digital Wallets​

  • Bank Payments (replacing Stripe us_bank_account / Financial Connections): Pass "payment_method_types": ["bank", "card"] (or ["ca_bank"] for Canadian EFT) on your Payment Intent or PMI, and mount Forward's Payment Element or Bank Element, which supports both instant bank linking and manual routing/account entry. See Bank Payments.
  • Apple Pay: Instead of Stripe's Payment Method Domains API, obtain your domain association file from your Forward representative and host it at https://yourdomain.com/.well-known/apple-developer-merchantid-domain-association. See Apple Pay.
  • Google Pay: Register in the Google Pay Business Console to obtain a Google Pay Merchant ID and pass googlePayMerchantId when creating the Payment Element. See Google Pay.

Phase 3: Frontend Checkout (Stripe Elements → Forward Payment Elements SDK)​

Replace <script src="https://js.stripe.com/v3/"></script> with Forward's SDK:

  • Sandbox: https://sandbox-cdn.pci.getfwd.com/sdk/forward.js
  • Production: https://cdn.pci.getfwd.com/sdk/forward.js

Element Mapping​

Stripe ElementForward ElementFactory Method
Payment ElementPayment Element (Card + Apple Pay + Google Pay + Bank)window.Forward.createPaymentElement(...)
Card ElementCard Elementwindow.Forward.createCardElement(...)
Financial Connections / BankBank Elementwindow.Forward.createBankElement(...)
Express Checkout ElementApple Pay Button / Google Pay ButtoncreateApplePayButton / createGooglePayButton

Code Comparison​

Before (Stripe.js):

const stripe = Stripe('pk_live_...');
const elements = stripe.elements({ clientSecret });
const paymentElement = elements.create('payment');
paymentElement.mount('#payment-form');

form.addEventListener('submit', async (e) => {
e.preventDefault();
const { error } = await stripe.confirmPayment({
elements,
confirmParams: { return_url: 'https://yoursite.com/complete' },
});
if (error) showError(error.message);
});

After (Forward Payment Elements SDK):

const paymentElement = await window.Forward.createPaymentElement({
apiKey: 'pkey_123948342832',
clientSecret: 'pi_2SG6ibTHTo4N6Sdx6Oh66IGg3o3_secret_12345678',
googlePayMerchantId: '12345678901234567890', // optional
});

let tokenizeFn;

const unmount = paymentElement.mount('#payment-form', {
onChange: (event) => {
submitButton.disabled = !event.ready;
},
onReady: (tokenize) => {
tokenizeFn = tokenize;
submitButton.disabled = false;
},
onSuccess: async ({ token }) => {
// Send the Forward PaymentMethod ID (pm_...) to your backend to call
// POST /payment_intents/{id}/payments. Throw on failure so the SDK knows.
const res = await fetch('/api/payments/charge', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ paymentIntentId, paymentMethodId: token }),
});
if (!res.ok) {
throw new Error('Payment declined');
}
},
onError: (error) => {
showError(error);
},
});

form.addEventListener('submit', async (e) => {
e.preventDefault();
await tokenizeFn?.();
});
Return a Promise from onSuccess

Your onSuccess callback must return a Promise that sends token (pm_...) to your backend and resolves on payment success or rejects/throws on failure. This is especially critical for Apple Pay and Google Pay sheets to display the right confirmation state.


Phase 4: Customers, Saved Payment Methods & Card Migration​

1. Saving Payment Methods Without Charging (SetupIntents → PMIs)​

Replace Stripe's SetupIntent (POST /v1/setup_intents) with Forward's Payment Method Intent (PMI) (POST /payment_method_intents). Pass customer_id so the newly tokenized card is automatically attached to the customer, set as their default if they don't have one, and enrolled in Account Updater if applicable:

curl -X POST "https://<api-host>/payment_method_intents" \
-H "x-api-key: key_123456789" \
-H "x-account-id: acct_12345678" \
-H "Content-Type: application/json" \
-d '{
"payment_method_types": ["card"],
"customer_id": "cus_2XAvbTyT7PafRQGpn5Y1Zffl3XE",
"validate": true,
"bill_to": "merchant"
}'

Pass the returned client_secret (pmi_..._secret_...) to createCardElement or createBankElement just like a Payment Intent. See Storing Card and Bank Data and Working with Customers.

2. Migrating Customers and Existing Vaulted Cards from Stripe​

You have three strategies for moving stored cards off Stripe without forcing cardholders to re-enter their cards. Choose the one that fits your rollout plan (many platforms combine Options A and B).

Option A: Bulk PCI PAN Export from Stripe to Forward (Best for existing stored cards)​

Stripe supports exporting raw customer payment data (card PANs, expiration dates, customer emails, and metadata) directly to another PCI DSS Level 1-compliant payment processor.

How the Stripe → Forward PAN export works:

  1. Coordinate with Forward first. Contact your Forward implementation specialist or account manager to schedule the migration and confirm Forward's PCI DSS Level 1 Attestation of Compliance (AOC) / Visa Global Registry listing and encryption key details. Forward's PGP public key is published on the Data Migrations page.
  2. Submit a Data Migration Export request to Stripe. An administrator on your Stripe account must contact Stripe Support (or open a migration request from the Stripe Dashboard) to request an export to Forward. Per Stripe's export requirements:
    • Stripe transfers sensitive PAN data only to a verified PCI Level 1 processor using a 4096-bit (or larger) PGP public key hosted over HTTPS on a domain listed on the processor's AOC/Visa Registry.
    • Stripe requires customer records to be exported alongside their payment data.
    • Stripe Connect note: Confirm whether your vaulted payment methods live on your platform account or on individual connected accounts. Connected account data may require account-level authorization or per-account export coordination.
  3. Export non-PAN billing state yourself via the Stripe API. Stripe's PCI export includes card credentials, customer IDs, emails, and metadata, not your subscription schedules or transaction history. Export your Customer IDs, active Subscription plans/intervals/next billing dates, and PaymentMethod metadata using the Stripe API so you can map them to Forward.
  4. Understand Stripe export exclusions:
    • Link credentials cannot be exported. Payment methods saved via Stripe Link are excluded from Stripe PAN exports and must be re-collected from affected customers.
    • Bank accounts (ACH): Confirm with Stripe Support and your Forward specialist whether ACH routing/account numbers are included in your export format or need separate handling.
  5. Receive the Forward mapping file. Once Forward ingests the encrypted export into the Forward vault, you will receive a mapping from your legacy Stripe cus_... / pm_... IDs to your new Forward cus_... / pm_... IDs to update your database.
Store legacy Stripe IDs in user_fields

When creating or importing Customers in Forward, save the original Stripe customer ID inside user_fields (for example, {"stripe_customer_id": "cus_old123"}) to simplify reconciliation and support lookups.

Option B: Zero-Downtime Gradual Cutover via Custom VGS Vault (Best for incremental rollout)​

If you want to stop accumulating new Stripe-locked cards immediately while continuing to process on Stripe during a phased merchant rollout, use Forward's Elements with a Custom VGS Vault bridge:

  1. Swap your frontend card form to window.Forward.createPartnerVaultCardElement(...) (or createPartnerVaultPaymentElement).
  2. Every time a customer enters or updates a card, the SDK tokenizes it once and returns both:
    • VGS aliases (aliases.cardNumber, aliases.cardCvc) — proxy these through VGS outbound to Stripe to keep charging on Stripe unchanged today.
    • A Forward payment_method_id (pm_...) — store this alongside the alias in your database.
  3. When a merchant is ready to cut over to Forward, flip a feature flag in your backend to charge the Forward pm_... instead of Stripe — no second form and no second bulk migration for newly captured cards.

Option C: Organic Re-Collection (Best for one-time / non-recurring checkouts)​

If you do not store cards for recurring billing, simply switch your checkout pages to Forward Payment Elements once merchants are boarded, and keep Stripe active only for refunding pre-migration orders.

3. Recurring Billing (Replacing Stripe Subscriptions)​

Forward does not provide a built-in Subscriptions or Invoicing engine. If you currently rely on Stripe Billing / Subscriptions, move subscription scheduling into your application (or an external billing engine) and use Forward as the payment execution layer:

  1. Create a Forward Customer (POST /customers) for each subscriber and attach their migrated or newly collected pm_... as default_payment_method.
  2. Enroll the Customer in Card Account Updater (cau_enrolled: true) so reissued and renewed Visa, Mastercard, and Discover cards refresh automatically in place (same pm_... ID). See Enrolling Customers in Account Updater.
  3. On each billing cycle, run your scheduler to:
    • Create a Payment Intent (POST /payment_intents) with a deterministic x-idempotency-key (e.g., sub_<id>_<billing_period>), customer_id, and order_details: { "initiated_by": "merchant", "card_not_present_type": "recurring" } (replaces Stripe's off_session: true — see CIT and MIT Flags).
    • Charge the customer's default payment method via POST /payment_intents/{id}/payments passing only customer_id (provide customer_id or payment_method_id, never both).
  4. Handle dunning & card updates: On a failed payment status or a payment_method.automatically_updated webhook with change_type: "closed", trigger your retry/dunning workflow and prompt the payer to update their card via a PMI.

Phase 5: Webhooks, Reporting, Disputes & In-Person Terminals​

1. Migrating Webhooks & Signature Verification​

Forward delivers webhooks via Svix. Configure your endpoints and inspect full event schemas in the Partner Portal → Development.

There are three key differences from Stripe webhooks:

AspectStripe WebhooksForward (Svix) Webhooks
Signature header(s)Single Stripe-Signature: t=...,v1=... headerThree headers: webhook-id, webhook-timestamp, webhook-signature
Signed payload format${timestamp}.${rawBody}${webhook_id}.${webhook_timestamp}.${rawBody}
Signing key & digestRaw whsec_... string, hex HMAC-SHA256Base64-decoded part after whsec_, base64 HMAC-SHA256 (v1,<sig>)
Timeout & retries20s timeout; retries up to 3 days15s timeout; exponential backoff retries (5s → 5m → 30m → 2h → 5h → 10h → 10h); disabled after 5 days of failures
Event scopesSeparate "Your account" vs "Connected accounts" endpointsSingle endpoint per service; filter event types in the Partner Portal

Before (Stripe Node.js verification):

const sig = req.headers['stripe-signature'];
const event = stripe.webhooks.constructEvent(req.rawBody, sig, process.env.STRIPE_WEBHOOK_SECRET);

After (Forward / Svix Node.js verification):

const crypto = require('crypto');

function verifyForwardWebhook(req, secret) {
const webhookId = req.headers['webhook-id'];
const webhookTimestamp = req.headers['webhook-timestamp'];
const webhookSignature = req.headers['webhook-signature'];

// Reject stale timestamps (e.g. > 5 minutes skew) to prevent replay attacks
const nowSeconds = Math.floor(Date.now() / 1000);
if (Math.abs(nowSeconds - Number(webhookTimestamp)) > 300) {
throw new Error('Webhook timestamp outside tolerance');
}

const signedContent = `${webhookId}.${webhookTimestamp}.${req.rawBody}`;
const secretBytes = Buffer.from(secret.split('_')[1], 'base64');
const expectedSig = crypto
.createHmac('sha256', secretBytes)
.update(signedContent)
.digest('base64');

const signatures = webhookSignature.split(' ').map((entry) => entry.split(',')[1]);
const expectedBuf = Buffer.from(expectedSig);
const valid = signatures.some(
(sig) => sig && sig.length === expectedSig.length && crypto.timingSafeEqual(Buffer.from(sig), expectedBuf)
);

if (!valid) {
throw new Error('Invalid Forward webhook signature');
}
return JSON.parse(req.rawBody);
}

You can also use the official svix SDK library to verify signatures automatically. If your webhook endpoint sits behind a firewall, allowlist Forward's webhook source IPs listed in Webhooks.

Common Event Mapping:

Check the Development tab in the Partner Portal for the exact list and JSON schema of every event enabled for your account. Key equivalents include:

Stripe EventForward Equivalent / Where to Monitor
account.updated (approved / gateway active)v2.account.created, v2.account.gateway_updated
account.updated (payouts_enabled)v2.account.payouts_enabled
payment_method.automatically_updatedpayment_method.automatically_updated (data.change_type: data_refresh, closed, attention_required)
Payment, refund, payout, dispute, and payee eventsConfigure subscriptions and inspect exact event types/schemas in Partner Portal → Development

2. Reporting, Balances, Payouts & Disputes​

Stripe EndpointForward EndpointKey Fields
GET /v1/balanceGET /balancescurrency, pending, available
GET /v1/balance_transactionsGET /transactions, POST /transactions/search, POST /transactions/downloadsource_type, source_id, payout_id, settlement_status, amount
GET /v1/payoutsGET /payouts, GET /payouts/{id}, GET /businesses/payoutsstatus (created, held, staged, pending, completed, returned, cancelled, failed), amount, net_amount, fee_amount
GET /v1/disputesGET /disputes, GET /disputes/{id}status (new, accepted, contested, in_review, in_pre_arbitration, lost, won), reason_disputed_code, response_due_date

3. In-Person Payments (Stripe Terminal → Forward Card Present)​

Hardware is not reusable across processors

Stripe Terminal card readers (e.g., BBPOS WisePOS E, Stripe Reader S700) are locked to Stripe's encryption keys and cannot be re-flashed for Forward. Plan hardware procurement and deployment for supported Fiserv/Clover terminals ahead of your cutover date.

In Forward's Card Present flow (see the Terminals API):

  1. Connect to the terminal (POST /terminals/fiserv/connect with the terminal hsn) to receive a 10-minute x-session-key.
  2. Create a Payment Intent (POST /payment_intents) — identical to online payments.
  3. Run the payment (POST /terminals/fiserv/auth_card or auth_manual with x-session-key, hsn, and payment_intent_id).

Testing & Go-Live Checklist​

Sandbox Testing​

Forward's sandbox mirrors production without charging real cards or running live network underwriting checks:

  • Obtain your sandbox API host and API keys from your implementation specialist.
  • Load the sandbox SDK: https://sandbox-cdn.pci.getfwd.com/sdk/forward.js.
  • Note that while Visa 4242 4242 4242 4242 succeeds in both Stripe and Forward, decline test card numbers are different — use the cards in Test Card Numbers to verify NSF, AVS mismatch, CVV decline, and expired card handling.

Pre-Launch Checklist​

  • Merchants boarded: Processing Plans configured, merchant Applications submitted and approved (processing_enabled: true, payouts_enabled: true), and Payees set to ACTIVE.
  • HTTP 200 decline handling verified: Backend checks status / latest_payment.status rather than relying on HTTP 402 exceptions.
  • Idempotency wired up: Every POST/PUT payment, capture, and refund call sends a unique x-idempotency-key (≥10 chars).
  • Single Payment Intent per checkout: Declines retry against the same pi_... instead of creating a new one.
  • Frontend SDK updated: Production script (https://cdn.pci.getfwd.com/sdk/forward.js), publishable key, onSuccess Promise handling, Apple Pay domain association file hosted, and Google Pay Merchant ID configured.
  • Stored cards migrated: Stripe PAN export imported and IDs mapped (or Custom VGS Vault bridge live); Link-only payers notified to re-enter cards if applicable.
  • Account Updater configured: Enabled on merchant accounts and cau_enrolled: true set on recurring Customers.
  • Webhooks verified: Svix signature verification tested against raw request body, timestamp skew enforced, and endpoint returning 2xx within 15 seconds.
  • Legacy Stripe wind-down plan in place: Keep your Stripe secret key active for 90–180 days post-cutover (scoped to refunds, disputes, and historical reporting) so you can still refund or respond to chargebacks on transactions originally processed through Stripe.

Need Help?​

Reach out to your Forward implementation specialist or account manager to:

  • Provision sandbox and production API keys and hosts
  • Enable feature-gated capabilities (Custom VGS Vault, Card Account Updater, Adhoc Fees)
  • Coordinate your PCI DSS Level 1 PAN migration from Stripe