Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure callback not being called in purchaseNonSubscriptionProduct #67

Closed
msschwartz opened this issue Apr 30, 2023 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@msschwartz
Copy link

The completion callback is never called when in-app purchase fails when making non-subscription purchase.

In the CBPurchaseManager it looks like the payment queue observer is calling buyProductHandler rather than buyNonSubscriptionProductHandler in the transaction failure block.

CBPurchase.shared.purchaseNonSubscriptionProduct(product: product, customer: customer, productType: productType) { result in
  switch result {
  ...
  case .failure():
    // This is never called
  }
}
@cb-haripriyan
Copy link
Contributor

Thanks @msschwartz
This should be fixed with the release 1.0.22
Can you please check it and let us know?
cc: @cb-gadagoju

@cb-haripriyan cb-haripriyan added the bug Something isn't working label May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants