• Resolved jrm7

    (@jrm7)


    Hello,

    I can’t seems to change button’s amount dynamically.

    Following the filter example from https://newo.me/direct-stripe-actions-and-filters-hooks/ does work with ‘current_email_address’ but not with ‘amount’ :

    add_filter( ‘ds_filter_params’, function( $params ){
    $amount = base64_encode(50);
    if( isset($amount) ){
    $params[‘amount’] = $amount;
    }
    return $params;
    } );

    I thought, names from the var ds**** array could be used. Also tried ‘original_amount’ with no success.

    Is this possible ?

    cheers,

    EDIT : just created full custom button shortcode

    • This topic was modified 5 years, 6 months ago by jrm7.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Payment Custom Amount’ is closed to new replies.