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/
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”).
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)
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.