• Resolved temparcweb

    (@temparcweb)


    Custom donation amount is sending 0 to Stripe causing payment failure after updating this plugin. Example shortcode used to produce this error:

    [accept_stripe_payment name=”Custom Donation” quantity=”1″ price=”0″ button_text=”Donate custom amount” currency=”USD” description=”General Donation – Custom”]

    I have deactivated all plugins and error still exists. Stripe logs verify that a price of “0” is being sent to stripe. Please advise on how this can be fixed (perhaps a JS error?)

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Hi, please read the following documentation. Let me know if this helps you.

    Kind regards

    Thread Starter temparcweb

    (@temparcweb)

    Thank you for your quick response. I’ve looked at the documentation but the same error occurs even with the shortcode provided in the documentation example:

    Shortcode:
    [accept_stripe_payment price=”0″ name=”Test donation for a good cause” button_text=”Donate Custom Amount”]

    From the debug log:
    [04/25/2018 9:14 PM] – Payment processing started.
    [04/25/2018 9:14 PM] – Triggering hook for addons to process posted data if needed.
    [04/25/2018 9:14 PM] – Checking received data.
    [04/25/2018 9:14 PM] – Checking price consistency.
    [04/25/2018 9:14 PM] – Getting API keys and trying to create a charge.
    [04/25/2018 9:14 PM] – Firing pre-payment hook.
    [04/25/2018 9:14 PM] – Processing payment.
    [04/25/2018 9:14 PM] – FAILURE: Invalid positive integer

    However, the normal shortcode buttons with fixed amounts where price=”XX” seem to work.

    Thread Starter temparcweb

    (@temparcweb)

    I have reverted to version 1.7.1 of this plugin (the last previous version I used before updating to the current version) and it does not have this error; custom amounts work with the above shortcode.

    Plugin Support mbrsolution

    (@mbrsolution)

    Thank you for reporting this. I have submitted a message to the developers to investigate further your findings.

    Kind regards.

    Plugin Author mra13

    (@mra13)

    We will investigate it. In the meantime, if you want to use the latest version you should use the new method of creating a donation product and using that product to collect donation. The following tutorial has step by step info on how to create a donation using the Stripe payments plugin:
    https://stripe-plugins.com/accepting-donations-using-stripe-payment-gateway/

    Test it out on a test page, I think you will like it.

    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    Hi @temparcweb.

    It was a bug in the plugin. It has been fixed in new version 1.8.4, which is going to be released shortly. Please upgrade the plugin and this should fix it.

    Sorry for inconveniences.

    Thread Starter temparcweb

    (@temparcweb)

    No problem – I will wait for the update. Thank you all for your help and for developing this plugin!

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi @temparcweb, the new version is out. Have you test it yet? Can you verify to us if it is working for you.

    Thank you

    Thread Starter temparcweb

    (@temparcweb)

    @mbrsolution I just tested it and the custom amount problem appears to be fixed in the new version. Thank you for your help.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Custom amount – FAILURE: Invalid positive integer’ is closed to new replies.