Skip to main content

Connecting Stripe

Maven uses Stripe Connect to process payments on your Stripe account. The setup uses OAuth — you authorize Maven to create charges on your behalf.

Prerequisites

  • A Stripe account (test or live)
  • A Maven app

Setup Steps

1

Go to Payments

In the Maven Dashboard, navigate to your app and click the Payments tab.
2

Click Connect Stripe

Click the Connect Stripe button. You’ll be redirected to Stripe’s OAuth authorization page.
3

Authorize Maven

On the Stripe page, review the permissions and click Connect. Maven requests the ability to create charges and customers on your account.
4

Return to Dashboard

After authorization, you’ll be redirected back to the Maven Dashboard. Your Stripe account will show as connected.

Test vs Live

Maven stores separate credentials for test and live modes:
  • Test mode (mvn_test_ keys): Uses your Stripe test mode. No real charges.
  • Live mode (mvn_live_ keys): Uses your Stripe live mode. Real charges.
Connect both test and live Stripe accounts for full functionality.

Processor Response Fields

When a payment succeeds via Stripe, the processor object in the GET session response includes:

Charge Mode

Tokenize Mode

Both stripe_customer_id and payment_method_id live on your own connected Stripe account — not on Maven’s platform account. Query and charge them with your own Stripe secret key (no stripe_account header needed, because they’re already on your account). Each tokenize creates a dedicated customer with exactly one saved card, so the customer + payment_method pair uniquely identifies the card — you never have to guess among multiple payment methods.

Using Tokenized Cards

After tokenizing, use the returned stripe_customer_id and payment_method_id to create charges via the Stripe API. Run this with your own Stripe secret key — the customer and payment method are on your account:
Pass both customer and payment_method. Stripe treats the customer as optional in general, but because the card is saved to that customer, passing it is the reliable way to charge the intended card. As an extra safeguard you can verify card_last4 before charging.

Disconnecting

To disconnect Stripe, go to the Payments tab in your app and click Disconnect. Existing sessions won’t be affected, but new sessions using the stripe gateway will fail.