Hello Sylo,
Thank you for using Direct Stripe.
I need more information to help you, do you mean to set the amount based on user parameters input ? In this case this require adding custom code.
Or you want the user to set the amount ? In the this case, you can set the Direct Stripe to be a donation type.
Kind regards,
Nicolas
Hi nicolas,
I’m in the first case
Do you have a sample to adding code ?
Thanks
Hello @olysmar ,
You can use the “ds_filter_params” filter hook to set a custom amount based on another value, you’ll find an example gist at https://gist.github.com/New0/df61a9f95ae7a156c061e4f4cc2952cf that sets the email paranm based on a query parameter, ( just make sure you sue base64_encode on the amount passed in params )
Or you could also use the “direct_stripe_charge_data” filter hook, you’ll find all actions and filters available at https://newo.me/direct-stripe-actions-and-filters-hooks/
Let me know how that goes,
Kind regards,