Skip to main content
Question

purchaseProduct callback not executing


Forum|alt.badge.img+1

From what I can tell, (here and here), `purchaseProduct` should execute a callback upon completion, but I can’t seem to get it to fire. The transaction goes through and the purchase is made with no issues/errors, but the callback i would expect - those console logs (in the example below) - never go through.

I saw this post from a month ago where it was mentioned that there’s an issue with the purchaseProduct method, are these related?

Thanks

 

Purchases.purchaseProduct(plan.identifier, ({ productIdentifier, customerInfo }) => {
        console.log("productIdentifier:", productIdentifier); // does not call
        console.log("customerInfo:", customerInfo); // does not call
    }, ({ error, userCancelled }) => {
        console.log("error:", error); // does not call
        console.log("userCancelled:", userCancelled) // does not call
    }, null);

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings