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

What happens if the verificator is not able to complete the verification? #31

Closed
hpique opened this issue Oct 31, 2013 · 1 comment
Closed
Labels

Comments

@hpique
Copy link
Member

hpique commented Oct 31, 2013

As discovered by @John-Lluch in #30, RMStore does not provide a way for verificators to indicate that they couldn't complete the verification (e.g., due to connectivity problems).

Also, RMStoreTransactionReceiptVerificator is calling the failure block when the connection with Apple fails. This finishes the transaction but reports the payment or restoration as a failure, when it might not be.

@hpique hpique closed this as completed in 41bfa79 Oct 31, 2013
@hpique
Copy link
Member Author

hpique commented Oct 31, 2013

Verificators can now use the error code RMStoreErrorCodeUnableToCompleteVerification in the failureBlock to indicate that verification could not be completed and thus that the transaction must not be finished.

The error is then propagated to addPayment's failureBlock and to storePaymentTransactionFailed:, allowing you to notify the user accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant