Skip to content

Commit

Permalink
fix gem configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
fcarrero committed Aug 1, 2023
1 parent 71704c3 commit 6815f57
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,7 @@ require 'conekta'
# Setup authorization
Conekta.configure do |config|
# Configure Bearer authorization: bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
# Configure a proc to get access tokens in lieu of the static access_token configuration
config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' }
# Configure faraday connection
config.configure_faraday_connection { |connection| 'YOUR CONNECTION CONFIG PROC' }
config.access_token = '$API_KEY'
end

api_instance = Conekta::AntifraudApi.new
Expand Down

0 comments on commit 6815f57

Please sign in to comment.