امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
The Stripe payment handler generates the Product and Plan ID with this:
PHP:
However this doesn't differentiate between the entity ID being purchased. For example if you had "User Upgrade 1" and "User Upgrade 2" with the same price and length, it would only create a...
Read more
PHP:
کد:
protected function getStripeProductAndPlanId(Purchase $purchase)
{
return $purchase->purchasableTypeId . '_' . md5(
$purchase->currency . $purchase->cost . $purchase->lengthAmount . $purchase->lengthUnit
);
}
However this doesn't differentiate between the entity ID being purchased. For example if you had "User Upgrade 1" and "User Upgrade 2" with the same price and length, it would only create a...
Read more
