How to add a description to a charge triggered by a subscription of Direct Stripe WordPress plugin plugin
-
Log in the Stripe Dashboard
-
Add a webhook endpoint in Developers -> Webhooks -> ( Add endpoint ) button
- Url to be called => the URL of the website which uses a Direct Stripe button + /wp-json/direct-stripe/v1/subscription-charge-succeeded which gives https://you-domain.ext/wp-json/direct-stripe/v1/subscription-charge-succeeded
- Click "Select types to send" and select "invoice.payment_succeeded"
- Click the Add endpoint button
- Edit the code of ds-custom-code.php file
- Insert your own Secret API key
- Edit with your own pricing plan ID
- Edit with the decription you want to add to charges triggered by the Subscription
- Zip the file
- Go to Plugins -> Add new
- Click the Upload plugin button
- Select the Zipped file of ds-custom-code.php
- Activate the plugin