Skip to content

Commit

Permalink
IAP: Implement old getBuyIntent through forwarding to new one (#2534)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaVinci9196 authored Nov 10, 2024
1 parent 36fedfa commit 95361b4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ class InAppBillingServiceImpl(private val context: Context) : IInAppBillingServi
developerPayload: String?
): Bundle {
if (Log.isLoggable(TAG, Log.DEBUG)) Log.d(TAG, "getBuyIntent(apiVersion=$apiVersion, packageName=$packageName, sku=$sku, type=$type, developerPayload=$developerPayload)")
return resultBundle(BillingResponseCode.BILLING_UNAVAILABLE, "Not yet implemented")
return runCatching { getBuyIntentExtraParams(apiVersion, packageName!!, sku!!, type!!, developerPayload, null) }
.getOrDefault(resultBundle(BillingResponseCode.BILLING_UNAVAILABLE, "Not yet implemented"))
}

override fun getPurchases(
Expand Down

0 comments on commit 95361b4

Please sign in to comment.