Many failing purchases because of Error: Payment is Cancelled
#2748
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I'm currently facing a couple of issues because of
Error: Payment is Cancelled
.I assume the error is getting thrown when calling
requestSubscription
. Here is my implementation ofhandlePurchase
:Based on the point of where the error gets thrown it is clear that
currentPurchaseError
was not defined.From the customer that faced that issue, we know that the purchase took place and there is even a GPA transaction which got refunded after three days.
So it's clear that the user didn't cancel the purchase and even got charged for the purchase.
Questions
currentPurchaseError
empty? It is not wrapped inuseCallback
which is not optimal I guess but leads to a non-memoized function with up to date values.purchaseErrorListener
here or is the flow with getting the currentPurchaseError from the useIAP hook the preferred way to go?useIAP
hook and importing variables from the package directly which feels not right.Beta Was this translation helpful? Give feedback.
All reactions