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

Improve errors handling #22

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

lxkuz
Copy link

@lxkuz lxkuz commented Feb 10, 2023

  1. We can use Faraday middlewares, logger for instance
    Momoapi.configure do |config|
      #...
      config.faraday_block = Proc.new do |f|
        f.use Faraday::Response::Logger
      end
    end
  end
  1. Error will store transaction reference to be able to re-check transaction status even after errored/timeouted Momo API response

@lxkuz lxkuz changed the title Pass Faraday block into configuration Improve errors handling Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant