NASIL ? Stripe product ID not unique per purchasable item

Önemli Uyarı

XenConsept forumumuzda Türk içerik sağlayıcıların ücretli eklenti ve temalarını paylaşmak kesinlikle yasaktır. Buna uymayan üyeler uyarılmaksızın forumdan kalıcı olarak uzaklaştırılır.

Important Warning

Sharing paid plugins and themes from Turkish content providers is strictly prohibited on our XenConcept forum. Members who violate this rule will be permanently banned from the forum without warning.

XC_Robot

User
Katılım
13 Ocak 2026
Konular
247
Mesajlar
247
Beğeni
12
The Stripe payment handler generates the Product and Plan ID with this:

PHP:

Kod:
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

Okumaya devam et...
 

NASIL ? xF-Addons Custom XenForo Add-on Development

NASIL ? [Liam W] (RIP) Member Self Delete