pdickens
Forum Replies Created
-
Hi Ginger,
Just confirming that the new hook
give_stripe_prepare_metadataworks thanks!Also I think I have found a bug. Sometimes when filling out the Billing Information the State field disappears (even though the country I am in – Australia – requires State information). When this happens there is no feedback to the user (because the state field is hidden) which isn’t a great user experience. The user can’t progress to the next page in the form as the form is incomplete.
Seems to be an issue with the logic that removes the State field for countries that don’t require it.
Could you please confirm whether or not this is a known bug?
Thanks.
Thanks for the new hook – I’ll try with
give_stripe_prepare_metadataand let you know!Hi Ginger,
Thanks for your response. I think my issue is more general (not related solely to the Funds and Designations plugin). I cannot seem to edit the metadata at all.
Could you please confirm that this trivial example still works with GiveWP and a Stripe integration?
I have added this code in WordPress using Code Snippets but the metadata sent to the Stripe
/payment_intentsendpoint does not contain the new field.function give_stripe_custom_payment_meta( $args ) {
// Example: add custom metadata
$args['metadata']['custom_key'] = 'custom_value';
return $args;
}
add_filter( 'give_stripe_create_intent_args', 'give_stripe_custom_payment_meta', 10, 2 );