[using Flutter SDK] on iOS when I call Purchases.purchaseProduct and it throws the exception(s)
PurchasesErrorCode.paymentPendingError
or
PurchasesErrorCode.storeProblemError
The docs suggest that this is not an error and to inform the user that the purchase is pending.
For some customers, they do not succeed in setting up a valid payment method at this point.
I have instances where the actual purchase comes through 30+ days later (when a payment method is finally established, probably for another reason). At this point the payment is taken but the user may have uninstalled my app by then!
Ideally, I would like to cancel the pending purchase in the App Store at this point and then require my users to go through the purchase flow a second time.
How can I programatically cancel a pending purchase on iOS or at the very least, see this state outside of the purchaseProduct exception and report it to the user?