I am getting null response when I call bp.getPurchaseListingDetails(MY_PRODUCT_ID);. Any help?
I figured it out. I was calling this method in onCreateView. At this instance the onBillingInitialized() was not called back. I had to wait until onBillingInitialized is called.
Yes Rishabh you are saying right, we have to wait untill onBillingInitializes is called and then bp.getPurchaseListingDetails(MY_PRODUCT_ID) will return SkuDetails object.
I am calling this method on BillingInitialized but the same error is occuring
Most helpful comment
I figured it out. I was calling this method in
onCreateView. At this instance theonBillingInitialized()was not called back. I had to wait untilonBillingInitializedis called.