Skip to content

Improve errors handling - #22

Open
lxkuz wants to merge 3 commits into
sparkplug:masterfrom
lxkuz:akuznetsov/better_errors_handling
Open

Improve errors handling#22
lxkuz wants to merge 3 commits into
sparkplug:masterfrom
lxkuz:akuznetsov/better_errors_handling

Conversation

@lxkuz

@lxkuzlxkuz commented Feb 10, 2023

Copy link
Copy Markdown
  1. We can use Faraday middlewares, logger for instance
Momoapi.configuredo |config|
#...config.faraday_block=Proc.newdo |f|
f.useFaraday::Response::Loggerendendend
  1. Error will store transaction reference to be able to re-check transaction status even after errored/timeouted Momo API response

@lxkuzlxkuz changed the title Pass Faraday block into configurationImprove errors handlingFeb 10, 2023
@raybesiga

Copy link
Copy Markdown
Member

Apologies @lxkuz only just seeing this.

Sign up for freeto 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.

2 participants

@lxkuz@raybesiga