Merge pull request #2203 from volzhs/fix_android_payments

Fix android payments
This commit is contained in:
Juan Linietsky 2015-10-17 12:12:34 -03:00
commit 3d121b474b
1 changed files with 3 additions and 1 deletions

View File

@ -47,8 +47,10 @@ public class PaymentsManager {
}
public PaymentsManager initService(){
Intent intent = new Intent("com.android.vending.billing.InAppBillingService.BIND");
intent.setPackage("com.android.vending");
activity.bindService(
new Intent("com.android.vending.billing.InAppBillingService.BIND"),
intent,
mServiceConn,
Context.BIND_AUTO_CREATE);
return this;