Glench / ExtPay

The JavaScript library for ExtensionPay.com — payments for your browser extensions, no server needed.
https://extensionpay.com
Other
524 stars 66 forks source link

Starting trial in test mode but " user.trialStartedAt && (now - user.trialStartedAt) < sevenDays " false #195

Closed adamstrad closed 9 months ago

adamstrad commented 9 months ago

problem was because you cannot use the test email for testing trial.

adamstrad commented 9 months ago

The problem seems to be that after starting the trial, the value continues to be user.trialStartedAt = null

animalnots commented 9 months ago

Got the same issue, @adamstrad how did you resolve it?

I'm in test mode though.

adamstrad commented 9 months ago

hey @animalnots it turned out that the problem was that I was testing it with my ExtPay account email address. Each time I reloaded my app and tried to register for a trial, what was actually happening was I was logging in with a paid email address. The docs say this:

While testing, use your ExtensionPay email to test payments without entering credit card information. Reinstall the extension to reset back to an unpaid user.

I resolved it by using another email address, I was able to sign up for a free trial this way and it turned out it already worked fine.