The current version of Direct Stripe WordPress plugin allows to add the description field to charges for Payment and Donation buttons types; for the Subscription button type, the description is passed to the Subscription meta data in the Stripe dashboard.

A user wanted to add the description to the charge triggered by the subscription event, I thought that’s a way to illustrate how we can use Stripe web hooks with Direct Stripe.

I created a WordPress plugin to be found at https://gist.github.com/New0/d72217de1e60871cf938715c2fd03b61

It adds a description to the charge triggered by a subscription to a defined pricing plan, but we can imagine also adding metadata…

I hope this will help !

Leave a Reply

Your email address will not be published. Required fields are marked *