File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
poolakey/src/main/java/ir/cafebazaar/poolakey Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ import ir.cafebazaar.poolakey.config.PaymentConfiguration
32
32
import ir.cafebazaar.poolakey.constant.BazaarIntent
33
33
import ir.cafebazaar.poolakey.constant.Billing
34
34
import ir.cafebazaar.poolakey.constant.Const.BAZAAR_PACKAGE_NAME
35
+ import ir.cafebazaar.poolakey.constant.Const.BAZAAR_PAYMENT_SERVICE_CLASS_NAME
35
36
import ir.cafebazaar.poolakey.exception.BazaarNotFoundException
36
37
import ir.cafebazaar.poolakey.exception.DisconnectException
37
38
import ir.cafebazaar.poolakey.exception.IAPNotSupportedException
@@ -65,7 +66,10 @@ internal class ServiceBillingConnection(
65
66
callbackReference = WeakReference (callback)
66
67
contextReference = WeakReference (context)
67
68
68
- return Intent (BILLING_SERVICE_ACTION ).apply { `package` = BAZAAR_PACKAGE_NAME }
69
+ return Intent (BILLING_SERVICE_ACTION ).apply {
70
+ `package` = BAZAAR_PACKAGE_NAME
71
+ setClassName(BAZAAR_PACKAGE_NAME , BAZAAR_PAYMENT_SERVICE_CLASS_NAME )
72
+ }
69
73
.takeIf (
70
74
thisIsTrue = {
71
75
context.packageManager.queryIntentServices(it, 0 ).isNullOrEmpty().not ()
Original file line number Diff line number Diff line change @@ -2,4 +2,6 @@ package ir.cafebazaar.poolakey.constant
2
2
3
3
internal object Const {
4
4
const val BAZAAR_PACKAGE_NAME = " com.farsitel.bazaar"
5
+ const val BAZAAR_PAYMENT_SERVICE_CLASS_NAME =
6
+ " com.farsitel.bazaar.inappbilling.service.InAppBillingService"
5
7
}
You can’t perform that action at this time.
0 commit comments