-
Notifications
You must be signed in to change notification settings - Fork 46
Pro payment back end link up #1697
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
Conversation
SessionHero01
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
| data class Item( | ||
| val status: ProDetailsStatus, | ||
| @SerialName("plan") | ||
| val planDuration: ServerPlanDuration, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this is a mandatory property? Once added there's no going back...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll check with the team, though I'm not sure what it would mean for it to be missing
| val validUntil: Instant | ||
| val duration: ProSubscriptionDuration | ||
| val subscriptionDetails: SubscriptionDetails | ||
| val subscriptionDetails: PaymentProviderMetadata |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be renamed?
Wiring the server data to our presentation models.
Removed the SubscriptionDetails in favour of the server data directly.
Also removed some code from the subscriber in favour of the payment metadata.
A successful google subscription purchase now links up to our server endpoint.
Cleaned up compose previews.