Skip to content
New issue

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

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

Already on GitHub? # to your account

Update Subscriptions #17

Open
FelippeFarias opened this issue Apr 5, 2021 · 1 comment
Open

Update Subscriptions #17

FelippeFarias opened this issue Apr 5, 2021 · 1 comment

Comments

@FelippeFarias
Copy link

FelippeFarias commented Apr 5, 2021

Implement the method to Downgrade/Upgrade current subscriptions.

fun updateSubscription (activity: Activity, oldSku: String, purchaseTokenOfOriginalSubscription: String,sku: String) { val flowParams = BillingFlowParams.newBuilder() .setOldSku(oldSku, purchaseTokenOfOriginalSubscription) .setReplaceSkusProrationMode(IMMEDIATE_WITHOUT_PRORATION) .setSkuDetails(fetchedSkuDetailsList.find { it.sku == sku }!!) .build(); val responseCode = iapClient.launchBillingFlow(activity, flowParams) }

@akshaaatt
Copy link
Owner

I haven't landed on this use case yet. Sorry for the late reply, I was really tied up with college and everything. If you have the knowledge clear on this, please make a PR. Other than that I will deal with this issue when I find the relevant use case myself and that can take a month even more tbh.

Thanks for bringing this up though :)

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

No branches or pull requests

2 participants