Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restorePurchases doesn't work #168

Open
zhulduz opened this issue Nov 29, 2023 · 4 comments
Open

restorePurchases doesn't work #168

zhulduz opened this issue Nov 29, 2023 · 4 comments
Assignees

Comments

@zhulduz
Copy link
Contributor

zhulduz commented Nov 29, 2023

Hi guys, I found out that in 2.4.4 version API restorePurchases doesn't work,
I also tried an example with own config credentials.

Could you please try also, maybe something missing in docs.

@cb-haripriyan cb-haripriyan self-assigned this Nov 29, 2023
@cb-haripriyan
Copy link
Collaborator

hi @zhulduz
Can you give us the error message/payload that you are seeing?
Also does this happen for both iOS and Android?

@zhulduz
Copy link
Contributor Author

zhulduz commented Nov 29, 2023

I have checked on iOS only, there wasn't any error.
The process starts but without any issues and without any results from callback function.

In the example below nothing happens after calling Chargebee.restorePurchases(...)

try {
  console.log('Restoring purchases for ', customer);
  const restoredSubscriptions = await Chargebee.restorePurchases(includeInActiveProducts, customer)
  console.log('Restored purchases', restoredSubscriptions);
} catch (error) {
  console.log('Restore Purchases failed', error);
}

@cb-haripriyan
Copy link
Collaborator

@zhulduz If there aren't any errors returned, could it be because there are no active subscriptions found to restore?
If the problem still persist, can you reach out to us so that we can look into your specific case?

@zhulduz
Copy link
Contributor Author

zhulduz commented Dec 5, 2023

@cb-haripriyan Hello, I tried for different customers: with/without active subscriptions, the result the same.
Anyway, if customer doesn't have active subscriptions, the process should be stopped somehow, but in my cases nothing happens after calling Chargebee.restorePurchases: nor success logs, nor error logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants