Stripe setup (credits, storage and contractor payments)

Help Center › API keys & connections › Stripe setup (credits, storage and contractor payments)

Stripe setup (credits, storage and contractor payments)

Paste your Stripe secret key and webhook signing secret to sell credits and storage and to let contractors get paid online.

One Stripe account covers three jobs: selling AI credits, selling extra storage, and Stripe Connect payments for contractors.

Before you start

  • A Stripe account with your business details finished. Follow Stripe’s current instructions.
  • Use test keys first. A test key starts with sk_test_. A live key starts with sk_live_.

Steps

  1. In Stripe, copy your Secret key from the developer API keys area.
  2. In WordPress admin, open Settings → VisionScaper, section Selling extra AI credits.
  3. Paste it into Stripe secret key.
  4. In Stripe, add a webhook endpoint. The address is shown on the VisionScaper screen. It ends in /wp-json/dreamscaper/v1/stripe.
  5. Select the event checkout.session.completed.
  6. Copy the Signing secret (it starts with whsec_).
  7. Paste it into Stripe webhook signing secret.
  8. Tick Let customers buy extra AI credits to open the store. Credits also need a Black Forest Labs key.
  9. Edit Credit packs, one per line: Name | credits | price in dollars.
  10. Press Save Changes.

Credits are also confirmed when the customer returns to your site, so a missed webhook should not lose a purchase.

Extra storage

Tick Let customers buy extra storage and edit Storage packs (Name | megabytes | price in dollars). The prices in the boxes are placeholders, not approved. Set your own.

Contractor payments (Stripe Connect)

  • Contractors connect their own Stripe account in the Contractor Hub under Settings → Get paid online (Stripe).
  • In your Stripe Dashboard, turn on Connect (Express accounts).
  • Add these events to the webhook: checkout.session.completed, checkout.session.async_payment_succeeded, checkout.session.async_payment_failed, and account.updated.
  • Fee boxes on the VisionScaper page set the rates a contractor pays. Their defaults are placeholders, not approved.
  • Let customers pay by bank account (ACH) and Offer contractors Instant Payouts are tick boxes. Instant Payouts also need Instant Payouts and Account Debits enabled in Stripe. Test in test mode first.
  • Automatic payments (autopay) is a separate switch and is off until you turn it on.

Tips

  • Check Stripe’s own fees before you set prices.
  • The page also lists Recent purchases.

If something goes wrong

  • The store does not appear: you need the store switch, the Stripe secret key and a Black Forest Labs key.
  • Payments succeed in Stripe but nothing arrives: the webhook may be wrong. Check the signing secret.

Related articles

Still need help?

Tell us what you were trying to do and a person will reply.

Contact support