As a developer, I want to pass additional information from the form to the metadata for Stripe payments so that I can provide users with more information for better organization at the payment gateway.
Example: I would like to pass the donation comment in the forms to the Stripe metadata section of the payment.
Bug Report
User Story
As a developer, I want to pass additional information from the form to the metadata for Stripe payments so that I can provide users with more information for better organization at the payment gateway.
Example: I would like to pass the donation comment in the forms to the Stripe metadata section of the payment.
Here is a link to the code snippet: https://github.com/impress-org/give-snippet-library/blob/62b821170e30a4aaf229b18faf4fbee7f84c95e6/gateway-customizations/stripe-pass-custom-meta-for-payments.php
Current Behavior
Currently, there is no filter on the "prepare_metadata" function within the addon files
Expected Behavior
I expect this function to be filterable so I can extend the Stripe addon functionality.
Bug Type
Possible Solution
Making the "prepare_metadata" function filterable here: https://github.com/impress-org/give-stripe/blob/986dfef067d2c9daf457ed2e12848dc9b66ccad2/includes/class-give-stripe-gateway.php#L643
Related
https://secure.helpscout.net/conversation/800742754/35972
Acceptance Criteria