• Resolved amanda221

    (@amanda221)


    Hi,
    I am using HTML rather then short codes, and am trying to enter an amount of $98 Australian dollars. I believe this would be entered as amount=”9800″ within the code, but it will not work.
    The code works perfectly with amount=”1999″, so there does not seem to be anything wrong with the rest of my code. I have tried amount=”98″ and this does not work either.
    Your help would be so much appreciated!
    Thanks,

    my code is specifically:
    <?php echo do_shortcode(‘[stripe description=”Ultimate Foodie” amount=“9800″ payment_button_label=”Buy Now $98”]’); ?>

    The payment button label does not work either, is there a solution for this? This is not as pressing as the amount though.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • When I copied your code it showed up with some different style quotes. When I changed them to the regular double quotes it worked fine for me.

    Does this work for you?

    <?php echo do_shortcode(‘[stripe description=”Ultimate Foodie” amount=”9800″ payment_button_label=”Buy Now $98″]’); ?>

    I know it looks similar but you can see the difference in quotes at the end of the description, at the beginning of the amount, and also at the end of the button label.

    Let me know if copy/pasting what I put in here works for you.

    Thanks!

    Thread Starter amanda221

    (@amanda221)

    Hi Nick,
    That worked perfectly!
    But then I had to duplicate two more times on the same page, and now nothing is showing up 🙁

    I saw that when you need to use it multiple times you need to add [/stripe] after each one. I tried this too, a couple different ways, but no luck. I will paste my code in here:

    <?php echo do_shortcode(‘[stripe description=”Ultimate Foodie” amount=”9800″ payment_button_label=”Buy Now $98″][/stripe]’); ?>

    <?php echo do_shortcode(‘[stripe description=”Time To Explore” amount=”3400″ payment_button_label=”Buy Now $34″][/stripe]’); ?>

    <?php echo do_shortcode(‘[stripe description=”Mini Break” amount=”1600″ payment_button_label=”Buy Now $16″][/stripe]’); ?>

    I also tried putting /stripe inside the existing brackets at the end, but that also didn’t work.
    Thanks so much for your help,
    Amanda

    Hey Amanda,

    So it looks like a similar issue as before but with the ending apostrophe this time. Try this out:

    <?php echo do_shortcode(‘[stripe description=”Ultimate Foodie” amount=”9800″ payment_button_label=”Buy Now $98″][/stripe]’); ?>

    <?php echo do_shortcode(‘[stripe description=”Time To Explore” amount=”3400″ payment_button_label=”Buy Now $34″][/stripe]’); ?>

    <?php echo do_shortcode(‘[stripe description=”Mini Break” amount=”1600″ payment_button_label=”Buy Now $16″][/stripe]’); ?>

    What text editor are you using to add these lines in?

    Thread Starter amanda221

    (@amanda221)

    Thanks Nick that worked great!

    I’m using text edit on my mac… is this ok? I’m using it in plain text mode

    Thanks again for your help!

    Oh ok, I was just curious. If it is in plain text it should work. I will admit to being a Windows user though so I am not to aware of how the Mac text editor works. If you have any more issues with it I would just check that the quotes are being added as plain text quotes and not the fancy kind added by some word processors.

    Glad it is all working for you now though 🙂

    Thanks for using the plugin and let us know if you run into anything else.

    Thanks!

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

The topic ‘html/php for amount not working’ is closed to new replies.