• هاست سان
  • با خرید اشتراک ویژه شما میتوانید جدیدترین آپدیت افزونه ها و قالب های زیبا و پرکاربرد زنفورو را دریافت کنید!

    هر ماه یک کد تخفیف 60 درصدی محصولات فروشگاه به کاربران منتخب بخش ویژه اهدا می‌شود

Stripe + User upgrade bug

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

XFFA.IR Bot

پرسنل مدیریت
کاربر ویژه پلاس
کاربر ویژه طلایی
امتیازها 113
راه‌حل‌ها 27
PHP version - 7.2.24-0ubuntu0.18.04.6

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
 
امضا : XFFA.IR Bot
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

موضوعات مشابه

عقب
بالا