Skip to main content

Enabling and Managing Credits

King Media Script supports a credit-based system for user interactions and content access. Use the steps below to set up and customize credits on your platform.

1. Enable Credits

  • Navigate to Admin Panel > Premium > Credits > Enable Credits to activate the credit system.
  • Set the Credit Exchange Rate (e.g., 100 credits per $1).
  • Choose your preferred currency for credit transactions.

2. Set Up Payment Methods

Enable payments for purchasing credits via Stripe or PayPal.

Stripe (Card Payment):

  • Enter your Publishable Key and Secret Key from your Stripe account.
  • Create a webhook in Stripe and use:
    https://PAGEURL/king-include/webhook.php
    Replace PAGEURL with your actual site URL.
  • Paste your Webhook Secret Key into the corresponding field.

PayPal:

  • Use a PayPal Business account.
  • Add the following IPN URL in your PayPal settings:
    https://PAGEURL/king-include/paypal.php
    Replace PAGEURL with your actual site URL.

3. Configure Credit Options

In Admin Panel > Premium > Credits, you can:

  • Grant Free Credits to New Users: Set a starting balance for new accounts.
  • Require Credits for Viewing Posts: Specify credits needed per content type (leave blank for free access).
  • Require Credits for Creating AI Images: Set credits needed for image generation.
  • Require Credits for Creating Posts: Define credits required to publish content.

4. Allow Authors to Earn Credits

  • Enable author earnings so creators receive credits when their posts are purchased.
  • Set the Author Credit Earning Rate (percentage of credits per sale).

5. Notes

  • Users must pay the specified credits for actions with requirements; blank fields allow free access.
  • The credit system helps monetize your platform and incentivizes user engagement.