Sell AI credit packs and extra storage (site owner)

Help Center › Invoices & payments › Sell AI credit packs and extra storage (site owner)

Sell AI credit packs and extra storage (site owner)

Let signed-in customers buy AI credits and extra online storage with Stripe, and see recent purchases.

Signed-in customers get free daily AI credits and some free online storage. When they run out, they can buy more on Stripe’s checkout page. Purchased credits and storage never expire.

Warning: The pack names, sizes and prices that come with the plugin are placeholders, not approved. Set your own.

Before you start

  • Set up Stripe first. See “Set up Stripe for your site”.
  • The credit store also needs your image-generation API key saved on the same page. Without it the store stays hidden.
  • The storage store needs a free storage amount set under Customer accounts on the same page.

Credit store steps

  1. In WordPress go to Settings → VisionScaper and find Selling extra AI credits.
  2. Tick Let customers buy extra AI credits. Optionally tick Email me about each purchase.
  3. In Credit packs, write one pack per line: Name | credits | price in dollars. Up to four packs look best.
  4. Set Price per single credit ($) for a custom amount. Set 0 to sell packs only.
  5. Set Minimum custom purchase (credits). The most a customer can buy at once is 500.
  6. Click Save Changes.

Storage store steps

  1. Find Selling extra library storage.
  2. Tick Let customers buy extra storage.
  3. In Storage packs, write one per line: Name | megabytes | price in dollars. 1 GB is 1024 MB.
  4. Click Save Changes.

What the customer sees

  • AI credits window: free credits left today, purchased credits, and credits ready to use. Pack buttons show credits, price and price each. The cheapest per credit is tagged Best value. A stepper lets them pick an exact number.
  • My storage window: a usage bar, what uses space, and storage pack buttons.
  • Checkout is on Stripe. They can use a card, Apple Pay or Google Pay. You never see the card number.
  • Coming back from Stripe, they see a thank-you. If the payment is still processing, they see that instead.

Purchased credits are used after the free ones run out.

Recent purchases

Below the settings, a Recent purchases table lists the latest 30: Date, Customer, Email, Bought, Paid.

Tips

  • Check that each pack’s price covers Stripe’s fee and your AI cost.
  • Each purchase is counted once, even if Stripe sends the message twice.

If something goes wrong

  • The store does not show for customers. Check the store box, the Stripe secret key and the image-generation key.
  • Credits missing after paying. They are added when Stripe confirms. Add the checkout.session.completed event to your webhook.

Related articles

Still need help?

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

Contact support