feat: Implement getSubscription for paddle without sdk

This commit is contained in:
Faruk AYDIN
2023-03-25 18:32:16 +03:00
parent 9a5a3e879d
commit fe3048aab0
2 changed files with 26 additions and 7 deletions

View File

@@ -13,7 +13,7 @@ const handleSubscriptionPaymentSucceeded = async (request: IRequest) => {
})
.throwIfNotFound();
const remoteSubscription = await Billing.paddleClient.getSubscriptionPlan(
const remoteSubscription = await Billing.paddleClient.getSubscription(
Number(subscription.paddleSubscriptionId)
);