Help Center
New to VisionScaper?
Start here
Help Center › Getting started & settings › Selling extra AI credits and storage
Selling extra AI credits and storage
Connect Stripe, set the webhook, and define credit packs and storage packs your customers can buy.
Customers get free daily AI credits and free online storage. When those run out, they can buy more on Stripe’s checkout page (card, Apple Pay or Google Pay). Purchased credits never expire and are used after the free ones.
Warning: All prices in the default packs are unapproved placeholders. Set your own before you turn the shop on.
Set up Stripe
- Create a Stripe account and finish its business details, following Stripe’s current instructions.
- In Stripe, find your API Secret key. Use a test key to practice and a live key to sell.
- In Stripe, add a webhook endpoint pointing to the address shown on your settings page (it ends with
/wp-json/dreamscaper/v1/stripe). Send the eventcheckout.session.completed. - Copy the webhook Signing secret.
- In Settings → VisionScaper → Selling extra AI credits, paste the Stripe secret key and the Stripe webhook signing secret.
- Tick Let customers buy extra AI credits. Optionally tick Email me about each purchase.
The settings page says credits are also confirmed when the customer returns to your site, so a missed webhook should not lose a purchase.
Credit packs
- Field Credit packs: one pack per line in this form:
Name | credits | price in dollars. - The settings page says up to 4 packs look best.
- Price per single credit ($): for a custom amount. Set 0 to sell packs only.
- Minimum custom purchase (credits).
Storage packs
Under Selling extra library storage:
- Tick Let customers buy extra storage.
- Edit Storage packs, one per line:
Name | megabytes | price in dollars. 1 GB equals 1024 MB.
Storage is one time and never expires. It is added when Stripe confirms payment. The page notes a Plant ID plant uses about 0.2 to 0.5 MB, and a design about 1 to 4 MB.
Recent purchases
A Recent purchases table at the bottom of the settings page lists date, customer, email, what was bought and the amount paid.
Tips
- Test in Stripe test mode first.
- This same Stripe account is used for contractor subscriptions and payments. See [contractor-tools-text-and-payments].
If something goes wrong
- Customer paid but has no credits. Check the webhook address and signing secret. Have the customer reload.
- A pack line is ignored. Check the three parts are separated by the bar character.
- The Buy button is missing. The shop checkbox is off, or the Stripe secret key is empty.