• 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

    (@nahuelmahe)

    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

    (@olysmar)

    Hi nicolas,
    I’m in the first case
    Do you have a sample to adding code ?
    Thanks

    Plugin Author Nicolas Figueira

    (@nahuelmahe)

    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,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Define amount in jquery’ is closed to new replies.