On the web, with more detail: Errors and telemetry.

Every call answers {:ok, struct} or {:error, error}, where error is a MishkaPay.Errors (Splode) exception. Show people MishkaPay.Ash.message(error) (with Ash) or Exception.message(error): plain sentences that never repeat a provider's own words, which can name keys and ids.

ErrorMeansDo
MishkaPay.Errors.Invalidbad input; errors has each fieldshow it on the field
MishkaPay.Errors.Declinedthe card or buyer was declined (reason)ask for another way to pay
MishkaPay.Errors.Rejectedthe provider refused (status, code, param)log it; often keys or ids
MishkaPay.Errors.Refusedyour checkout gate said noshow its reason
MishkaPay.Errors.Unsupportedthe provider cannot do itpick another provider
MishkaPay.Errors.MissingCredentialsno keys for that provider and sitethe site adds keys
MishkaPay.Errors.UnknownProviderno such provider installedsupervise it
MishkaPay.Errors.Unreachableno answer from the providertry later; nothing was charged twice

Rejected codes Mishka Pay names itself: "idempotency_error" (a reference reused with other details), "already_exists", "resource_missing", "managed_payments_invoice". Its param is the refused field, by Mishka Pay's name when it has one ("trial_days").