Hi Amin,
Thank you so much for your help! 🙌
At first, I encountered the issue with JPY, but I later found that TWD also had the same problem. Since there might be other currencies affected as well, I modified the code you provided to make it more universal. So far, it’s working perfectly for the currencies I’ve tested! 🎉
Here’s the modified code I used
add_filter('forminator_paypal_create_order_request', 'wpmudev_fix_all_forms_currency_paypal_submit', 10, 2);
function wpmudev_fix_all_forms_currency_paypal_submit($request, $data)
{
$request['purchase_units'][0]['amount']['value'] = str_replace(',', '', $request['purchase_units'][0]['amount']['value']);
return $request;
}
I truly appreciate your support, and I hope your development team successfully resolves this issue soon.
Best regards,
korosute