@@ -37,22 +37,22 @@ internal class PurchaseFunction(
3737 }
3838
3939 when {
40- doesClientSupportIntentV3 (purchaseConfigBundle) -> {
41- fireBuyIntentV3 (billingService, intentResponseIsNullError)
40+ isBazaarSupportIntentV3 (purchaseConfigBundle) -> {
41+ launchBuyIntentV3 (billingService, intentResponseIsNullError)
4242 }
43- doesClientSupportIntentV2 (purchaseConfigBundle) -> {
44- fireBuyIntentV2 (billingService, intentResponseIsNullError)
43+ isBazaarSupportIntentV2 (purchaseConfigBundle) -> {
44+ launchBuyIntentV2 (billingService, intentResponseIsNullError)
4545 }
4646 else -> {
47- fireBuyIntent (billingService, intentResponseIsNullError)
47+ launchBuyIntent (billingService, intentResponseIsNullError)
4848 }
4949 }
5050 } catch (e: RemoteException ) {
5151 PurchaseIntentCallback ().apply (callback).failedToBeginFlow.invoke(e)
5252 }
5353 }
5454
55- private fun PurchaseFunctionRequest.fireBuyIntentV3 (
55+ private fun PurchaseFunctionRequest.launchBuyIntentV3 (
5656 billingService : IInAppBillingService ,
5757 intentResponseIsNullError : () -> Unit
5858 ) {
@@ -66,11 +66,11 @@ internal class PurchaseFunction(
6666 bundle.getParcelable<PendingIntent >(INTENT_RESPONSE_BUY ) != null
6767 }, andIfNot = intentResponseIsNullError
6868 )?.getParcelable<Intent >(INTENT_RESPONSE_BUY )?.also { purchaseIntent ->
69- fireIntentWithIntent .invoke(purchaseIntent)
69+ launchIntent .invoke(purchaseIntent)
7070 }
7171 }
7272
73- private fun PurchaseFunctionRequest.fireBuyIntentV2 (
73+ private fun PurchaseFunctionRequest.launchBuyIntentV2 (
7474 billingService : IInAppBillingService ,
7575 intentResponseIsNullError : () -> Unit
7676 ) {
@@ -92,11 +92,11 @@ internal class PurchaseFunction(
9292 bundle.getParcelable<PendingIntent >(INTENT_RESPONSE_BUY ) != null
9393 }, andIfNot = intentResponseIsNullError
9494 )?.getParcelable<Intent >(INTENT_RESPONSE_BUY )?.also { purchaseIntent ->
95- fireIntentWithIntent .invoke(purchaseIntent)
95+ launchIntent .invoke(purchaseIntent)
9696 }
9797 }
9898
99- private fun PurchaseFunctionRequest.fireBuyIntent (
99+ private fun PurchaseFunctionRequest.launchBuyIntent (
100100 billingService : IInAppBillingService ,
101101 intentResponseIsNullError : () -> Unit
102102 ) {
@@ -117,7 +117,7 @@ internal class PurchaseFunction(
117117 bundle.getParcelable<PendingIntent >(INTENT_RESPONSE_BUY ) != null
118118 }, andIfNot = intentResponseIsNullError
119119 )?.getParcelable<PendingIntent >(INTENT_RESPONSE_BUY )?.also { purchaseIntent ->
120- fireIntentWithIntentSender .invoke(purchaseIntent.intentSender)
120+ launchIntentWithIntentSender .invoke(purchaseIntent.intentSender)
121121 }
122122 }
123123
@@ -172,11 +172,11 @@ internal class PurchaseFunction(
172172 }
173173 )
174174
175- private fun doesClientSupportIntentV2 (purchaseConfigBundle : Bundle ? ): Boolean {
175+ private fun isBazaarSupportIntentV2 (purchaseConfigBundle : Bundle ? ): Boolean {
176176 return purchaseConfigBundle?.getBoolean(INTENT_V2_SUPPORT ) ? : false
177177 }
178178
179- private fun doesClientSupportIntentV3 (purchaseConfigBundle : Bundle ? ): Boolean {
179+ private fun isBazaarSupportIntentV3 (purchaseConfigBundle : Bundle ? ): Boolean {
180180 return purchaseConfigBundle?.getBoolean(INTENT_V3_SUPPORT ) ? : false
181181 }
182182
0 commit comments