MishkaPay.Errors.Refused exception (Mishka Pay v0.0.1)

Copy Markdown View Source

Refused by the project itself, before the provider was asked: a plugin on mishka_pay:checkout:before said no (out of stock, a blocked buyer, a closed shop), or could not answer, which counts as no.

  • :operation: :checkout.
  • :reason: the plugin's own words, or why it gave none: :cannot_run, :raised, :exited, :timeout, :invalid_answer.

Summary

Functions

exception(args)

@spec exception(opts :: Keyword.t()) :: %MishkaPay.Errors.Refused{
  __exception__: term(),
  bread_crumbs: term(),
  class: term(),
  operation: term(),
  path: term(),
  reason: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Create an Elixir.MishkaPay.Errors.Refused without raising it.

Keys

  • :operation
  • :reason