Skip to content

StripeYPT Plugin

walt93 edited this page Oct 12, 2023 · 6 revisions

The StripeYPT plugin is a critical AVideo module used for various purposes, including accepting payments. This guide provides detailed steps on how to set it up, including how to input the required parameters.

Prerequisites:

You need to have a Stripe account. If you don't have one, you can create it at Stripe's website.

Steps:

1. Retrieving your Stripe API keys:

  • Log into your Stripe Dashboard.
  • Here, you will find your publishable (format pk_***) and restricted keys (format rk_***).

2. Saving your Stripe keys in AVideo:

  • Go to your AVideo platform and navigate to the StripeYPT plugin settings.
  • Enter your Stripe publishable key and restricted key in the respective fields.

3. Initiating the first purchase:

  • Make the first purchase attempt through your AVideo platform. This will trigger the creation of the webhook on Stripe's end. This attempt will not succeed but is a necessary step for the webhook creation.

4. Retrieving the Signing Secret:

  • Once the webhook is auto-created, Stripe will generate the signing secret (format whsec_****).
  • Go to your Stripe Dashboard's Webhooks settings to retrieve the signing secret.
  • Click on the "Click to reveal" button next to the relevant webhook endpoint to reveal the secret.

5. Saving the Signing Secret in AVideo:

  • Return to the StripeYPT plugin settings in your AVideo platform.
  • Enter the Signing Secret in the respective field.

6. Customizing Button Labels:

  • The StripeYPT plugin allows you to customize the labels on your subscription and one-time payment buttons.
  • Provide your custom labels in the subscriptionButtonLabel and paymentButtonLabel fields.

7. Save the settings:

  • After entering all the required information, ensure to save your settings.

By following these steps, you can fully set up the AVideo StripeYPT plugin. Now your AVideo platform can process payments via Stripe and display your customized labels on subscription and payment buttons.

Clone this wiki locally