Custom fields stripe metadata in multi-language website #7396
Unanswered
Kurea
asked this question in
Developer Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I will start working on a multi-language website with GiveWP. Custom fields are send to Stripe as metadata but due to multiple languages, I have in Stripe multiple metadata (e.g. country, pays, paese... for a country field).
I took a look at the code and it seems to be intended, the label is taken as metadata id or, if missing, the name of the field :
givewp/includes/gateways/stripe/includes/give-stripe-helpers.php
Line 519 in 11e183e
I'm quite new to GiveWP and WP, I try to figure out the best way to handle this issue and use the meta_key instead of the label.
If I understand well, I can create an extension (based on the snippets available) or suggest an update of GiveWP (with an option to use meat_key instead of the label). What would be the best approach ? Is meta_key information available in stripe helper ? Or did I entirely miss something and it's note supposed to work as it is in my configuration ?
Thanks for your insights !
Beta Was this translation helpful? Give feedback.
All reactions