امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
PHP version - 7.2.24-0ubuntu0.18.04.6
Class - XF\Payment\Stripe
Function - prepareCost($cost, $currency)
Bug:-
Code:
Should be:-
Code:
Due to how floating points are represented in PHP, this causes the number to be rounded lower which causes Stripe return value(1 cent lower) and the value stored in database for user upgrade to not match and the user is not upgraded.
DragonByte User Upgrade Coupons was also being...
Read more
Class - XF\Payment\Stripe
Function - prepareCost($cost, $currency)
Bug:-
Code:
return intval($cost);Should be:-
Code:
return intval(strval($cost));Due to how floating points are represented in PHP, this causes the number to be rounded lower which causes Stripe return value(1 cent lower) and the value stored in database for user upgrade to not match and the user is not upgraded.
DragonByte User Upgrade Coupons was also being...
Read more
