Skip to content

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