• Resolved friendofdog

    (@friendofdog)


    I’m using JS to customise shortcode for dynamic pricing. Below an abbreviation of the script. It results in “WP Simple Pay for Stripe requires an amount of 50” instead of the usual payment button.

    <div id="stripe-pay"></div>
    <script>
    var payment = "[stripe name='My Product' description='Product description' amount='" + priceOutput + "']";
    $('#stripe-pay').html(payment);
    <script>

    The variable priceOutput is a strait-up integer. I set it to 1000 for testing, so it is above the minimum value of 50.

    Any suggestions?

    https://ww.wp.xz.cn/plugins/stripe/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Dynamic pricing and JS’ is closed to new replies.