Skip to content

Commit

Permalink
Add transactionSrc to get_response
Browse files Browse the repository at this point in the history
  • Loading branch information
chapmankyle committed Sep 17, 2024
1 parent bd1d35b commit 9b646ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ups/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ def get_response(path, body = {}, method = 'post')
headers = {
'Content-Type' => 'application/json',
'Authorization' => "Bearer #{access_token}",
'transId' => SecureRandom.hex(16) # Unique identifier for this request
'transId' => SecureRandom.hex(16), # Unique identifier for this request
'transactionSrc' => 'testing' # Identifies client/source app that is calling, UPS has default of 'testing' (sometimes)
}

if method.downcase == 'get'
Expand Down

0 comments on commit 9b646ba

Please sign in to comment.