Created
March 31, 2020 05:17
-
-
Save agungsetiawan/3f288d8728a52c215b035278bf38414c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def call | |
# code omitted | |
res = Connection.internal_api.post do |req| | |
req.url "#{ENV['TRANSACTION_HOST']}/transactions" | |
req.headers['UserCode'] = params[:user_serial] | |
req.body = params.to_json | |
end | |
# code omitted | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment