Skip to content

Selling credits through WooCommerce

WP Career Board overviewFree + ProGet WP Career Board →

You can sell credit packs as WooCommerce products. WooCommerce takes the payment with any gateway you have set up, and Career Board Pro adds the credits to the employer’s balance once the order is paid. You can also sell recurring credits with WooCommerce Subscriptions.

Use this guide when:

  • You already have a WooCommerce store.
  • You want employers to buy credits like any other product (cart, checkout, orders page).
  • You want monthly credits, for example “10 credits per month”.
  • WooCommerce is installed and active, with at least one payment gateway set up (WooCommerce -> Settings -> Payments).
  • WooCommerce Subscriptions is installed if you want recurring packs.
  • To charge for posting, set a credit cost on a board. See Credit packages and costs. Selling packs works whether or not posting charges credits.
  1. Go to Products -> Add New.
  2. Name it, for example “10 Job Posting Credits”, and set the Price.
  3. Leave the type as Simple product, or choose Simple subscription for recurring credits.
  4. Optionally mark it Virtual.
  5. Publish it.

Step 2: Map the product to a credit amount

Section titled “Step 2: Map the product to a credit amount”
  1. Go to Career Board -> Settings -> Credits and find the Credit mappings card.
  2. In Product / Plan, pick your product. Products are grouped by source, so WooCommerce products sit under a “WooCommerce” heading and subscription products under “WooCommerce Subscriptions”.
  3. Enter the number of Credits, for example 10.
  4. Click + Add Mapping.

The mapping appears in the table (Provider, Product / Plan, Credits) with a Remove button. Add one mapping per credit pack.

The Detected providers card lists each supported source as active or not installed. A source that is not installed does not offer products to map.

Make sure Product mapping is on under Payment methods on the same tab. The employer’s Credits tab then lists the product under Buy through the store, with a Buy button that opens the product page.

  1. Log in as an employer.
  2. Open the Credits tab of the employer dashboard and note the balance.
  3. Click Buy on the product and complete the WooCommerce checkout.
  4. When the order is paid, return to the dashboard. The balance shows the new credits and the ledger has a topup row.
  • The order must be paid. An order that has not been paid, such as cash on delivery that is still processing, does not add credits until payment is recorded.
  • The buyer must be logged in. A guest order is not credited.
  • The credits are the mapped amount times the quantity ordered.
  • Each order is credited once, even if WooCommerce reports the status change more than once.

When a WooCommerce order is refunded or cancelled, Career Board Pro takes back the credits that order gave, in proportion to the refund. It takes back only credits the employer has not spent yet, and the balance never goes below zero. A partial refund removes a matching share. The employer gets a credit refund email.

Recurring credits with WooCommerce Subscriptions

Section titled “Recurring credits with WooCommerce Subscriptions”
  1. Install WooCommerce Subscriptions.
  2. Create the product as a Simple subscription.
  3. Map it under Credit mappings. It appears under “WooCommerce Subscriptions” in the Product / Plan list.
  4. Set the credits added on each successful payment.

Credits are added when the subscription is first paid and on every renewal payment.

Order completed but credits did not add. Check that the product has a mapping row, that Product mapping is on, that the order was placed by a logged-in customer, and that the order shows a payment date.

An employer bought before the product was mapped. The order is not credited later. Add the credits with an admin adjustment.