📢 Moderators Needed 🚀

Moderators are needed with resources to post or have access to resources to post. Submit an application to be considered.
M

RSS Stripe product ID not unique per purchasable item

M

mattrogowski

Guest
Guest or Bot
The Stripe payment handler generates the Product and Plan ID with this:

PHP:

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

Continue reading...
 
Similar content Most view View more
Back
Top