Open subn3t1 opened 1 year ago
Hello guys!
The bug that I have discovered is that if the site is in Bulgarian (cyrillic alphabet ) as translation, after confirming the order, the cart does not redirect to the BTCPay Server but returns error:
============================================================================ "There was an error processing the payment on BTCPay Server. Please try again and contact us if the problem persists."
And then below the first message:
"Продуктът е с изчерпана наличност." (Which means that there is no available amount of this product)
============================================================================
Everything works in English, French and Italian. Only in Bulgarian there is problem.
How can we help? Should we rewrite the language file? Is it the encoding or something else? It is UTF8. We actually do not see anything different from the other language files but the alphabet symbols.
EDIT: The logs are:
2023-01-30 09:48:26 ERROR Error during POST to https://btcpayserver.mydomain.com/api/v1/stores/CrVRD5idL62JRE22uZwHJMHJ7EJ5JuXG6xhN6JMa9aSr/invoices. Got response (400): {"code":"generic-error","message":"Warning: You have payment methods configured but none of them match any of the requested payment methods or the rate is not available. See logs below:\n01/30/2023 09:48:24:Info Creation of invoice starting\n01/30/2023 09:48:24:Info BTC_BGN: The rating rule is coingecko(BTC_BGN)\n01/30/2023 09:48:24:Info BTC_BGN: The evaluated rating rule is ERR_RATE_UNAVAILABLE(coingecko, BTC_BGN)\n01/30/2023 09:48:24:Error BTC_BGN: Rate rule error (RateUnavailable)\n"}
Probably the problem is the missing conversion rate for BGN on the BTCPayserver.
EDIT2 Solution: We have changed the Preferred Price Source from CoinGecko Bitpay which delivers the rates for BGN and now everything works perfect.
Hope this helps for the project development.
Hi @subn3t1 thank you very much for raising the issue. Your proposed fix did indeed fix the problem. I just released v1.0.5 https://github.com/btcpayserver/joomla-virtuemart/releases/tag/v1.0.5 of the plugin. Would be great if you could try it out and let me know if it fixed your issue.
For the rate, yes for BGN and other specific currencies you need to set a rate provider like coingecko or big exchange that supports the currency.
Sure! I have tested it and everything works as expected. Thank you very much!
Hello guys!
After: 1.Upgrading the host from PHP 7.4 to PHP 8.1
The result was the following error: 0 Unsupported operand types: string * float
I use: Firefox under Fedora Linux 36
My fix: I found that the fix is to add (float) before the strings in line 792 in btcpayvm.php
Probably there is a better way but it is up to the developers to decide.
Hope this helps for the project.