• Resolved rgalton

    (@rgalton)


    Hi Franky,

    My client wants a new payment gateway added. Currently they are just using PayPal, but now they want Stripe as well. I have two questions:

    1) I can’t seem to add the new option to an event which is already set up with the PayPal option. Am I missing something, or is this not possible?

    2) Is it possible to change the order of the offered payment gateways?

    Thanks,
    Rosemary

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Franky

    (@liedekef)

    1) Did you configure Stripe correctly in the EME options?
    2) Use the filter eme_payment_gateways to change the order, see https://www.e-dynamics.be/wordpress/category/documentation/12-hooks-and-filters/

    Thread Starter rgalton

    (@rgalton)

    Hi Franky, thanks for your reply.

    1) I think I had the wrong test api keys (I was confused because I was still able to add Stripe to a new event). Now I have new test keys ond I am able to add Stripe to existing events. However, now I get the following error when I try to checkout with Stripe:

    Stripe\Exception\InvalidRequestException thrown

    You cannot use line_items.amount, line_items.currency, line_items.name, line_items.description, or line_items.images in this API version. Please use line_items.price or line_items.price_data. Please see https://stripe.com/docs/payments/checkout/migrating-prices for more information.

    I don’t have access to the Stripe account so I don’t know if there are other settings there that I need to change.

    2) Thanks, I will look into this.

    Plugin Author Franky

    (@liedekef)

    I use stripe checkout for payments, maybe you have an older api key? You should contact stripe and ask for explanation (and mention “stripe checkout” and “api”).

    Thread Starter rgalton

    (@rgalton)

    Hi Franky,

    I have now been able to access the Stripe account, and can confirm it is using the latest API version (2022-08-01). And the website is running the latest version of EME.

    The Stripe documentation says that the parameters listed above were removed in the latest version:
    https://stripe.com/docs/upgrades#2022-08-01

    But I see that you update EME to use the latest Stripe API on 2022/08/16. So I’m a bit confused. Are there any settings I need to change. Sorry, this is a bit beyond me.

    Thanks,
    Rosemary

    Plugin Author Franky

    (@liedekef)

    I’ll reopen this and check later today. Indeed it seems they removed/renamed some parameters, so I will need to change some lines.

    Plugin Author Franky

    (@liedekef)

    Thread Starter rgalton

    (@rgalton)

    Yes that works, thanks so much!

    I’ve just made a donation, thanks for all your work 🙂

    Plugin Author Franky

    (@liedekef)

    I tested using my (older) test key, and there the old and new code works as expected. Si I’ll release a new version later this weekend.

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

The topic ‘Adding new payment gateways’ is closed to new replies.