Selling Credit Packs with WooCommerce

Let members purchase post credits directly through WooCommerce. Create credit packs at different price points and credits are added automatically when the order completes.

What You’ll Learn

  • How WooCommerce credit packs work
  • Creating credit packs
  • Displaying packs for purchase
  • Handling refunds

Before You Start

  • WooCommerce plugin active
  • Post Credits module enabled
  • WooCommerce payment gateway configured

How Credit Packs Work

Credit packs are special WooCommerce products:

  • Created as hidden products (don’t appear in regular shop)
  • Members purchase via shortcode or custom page
  • Credits added automatically when order completes
  • Refunds automatically remove the credited amount

Creating a Credit Pack

  1. Go to Member Blog → Post Credits → Credit Packs
  2. Click Create New Pack
  3. Fill in the details:
FieldWhat to EnterExample
Pack NameDisplay name members see“10 Post Credits”
Credits AmountNumber of credits included10
PriceWooCommerce product price$9.99
DescriptionBrief pack description“Perfect for occasional bloggers”
  1. Click Create Pack

Example Pack Structure

PackCreditsPricePrice Per Credit
Starter Pack5$4.99$1.00
Standard Pack15$12.99$0.87
Value Pack50$34.99$0.70

Offering bulk discounts encourages larger purchases.

Displaying Credit Packs

Use the shortcode to display purchasable packs on any page:

[bpmb_credit_packs]

Shortcode Options

AttributeDefaultDescription
columns3Number of columns in grid
show_descriptionyesShow pack descriptions

Example Usage

[bpmb_credit_packs columns="2" show_description="yes"]

What Members See

The shortcode displays:

  • All available credit packs
  • Price for each pack
  • Add to Cart buttons
  • Member’s current credit balance

Purchase Flow

When a member purchases credits:

  1. Member views credit packs (via shortcode)
  2. Clicks “Add to Cart” on desired pack
  3. Completes WooCommerce checkout
  4. Order marked as “Complete”
  5. Credits automatically added to their account
  6. Member can immediately use credits to publish

Handling Refunds

When you refund an order:

Refund TypeCredit Action
Full refundAll credits from that order removed
Partial refundProportional credits removed

What If Credits Are Already Used?

If a member has used some credits before the refund, their balance may go negative. You can:

  • Allow the negative balance (they need to purchase more)
  • Manually adjust their balance via admin
  • Have a conversation about partial refunds

Creating a Purchase Page

Create a dedicated page for purchasing credits:

  1. Create a new page (e.g., “Buy Credits”)
  2. Add the shortcode: [bpmb_credit_packs]
  3. Add introductory text explaining the credit system
  4. Publish the page
  5. Set this URL in Post Credits settings as the “Purchase URL”

Now when members run out of credits, they’re directed to this page.

Tips for Success

  • Offer variety – Create 3-4 packs at different price points
  • Bulk discounts – Reward larger purchases with lower per-credit pricing
  • Clear naming – Use names like “10 Post Credits” not “Pack A”
  • Visible placement – Add the purchase page to your main navigation

Troubleshooting

IssueSolution
Credits not added after purchaseCheck that order status is “Complete” (not just “Processing”)
Packs not showingVerify packs are created and not deleted
Wrong price showingEdit the pack and verify the price field

Related Documentation

  • Understanding the Post Credits System
  • Membership Plugin Credit Integration
  • Manual Credit Management
]]>
Last updated: January 18, 2026