Title: Define amount in jquery
Last modified: March 29, 2019

---

# Define amount in jquery

 *  [olysmar](https://wordpress.org/support/users/olysmar/)
 * (@olysmar)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/define-amount-in-jquery/)
 * Hi,
 * I need to define the amount to be paied.
    Is it possible with your plugin ? If
   yes, how I can do this ?
 * Thanks
    Sylo

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Nicolas Figueira](https://wordpress.org/support/users/nahuelmahe/)
 * (@nahuelmahe)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/define-amount-in-jquery/#post-11371444)
 * 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
 *  Thread Starter [olysmar](https://wordpress.org/support/users/olysmar/)
 * (@olysmar)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/define-amount-in-jquery/#post-11371925)
 * Hi nicolas,
    I’m in the first case Do you have a sample to adding code ? Thanks
 *  Plugin Author [Nicolas Figueira](https://wordpress.org/support/users/nahuelmahe/)
 * (@nahuelmahe)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/define-amount-in-jquery/#post-11376047)
 * Hello [@olysmar](https://wordpress.org/support/users/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](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/](https://newo.me/direct-stripe-actions-and-filters-hooks/)
 * Let me know how that goes,
 * Kind regards,

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Define amount in jquery’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/direct-stripe_7787ff.svg)
 * [Direct Stripe](https://wordpress.org/plugins/direct-stripe/)
 * [Support Threads](https://wordpress.org/support/plugin/direct-stripe/)
 * [Active Topics](https://wordpress.org/support/plugin/direct-stripe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/direct-stripe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/direct-stripe/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Nicolas Figueira](https://wordpress.org/support/users/nahuelmahe/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/define-amount-in-jquery/#post-11376047)
 * Status: not resolved