Skip to content

Commit

Permalink
DLocal: Update void response
Browse files Browse the repository at this point in the history
Add to_s on response['status_code'] in success_from
  • Loading branch information
Alma Malambo committed Nov 26, 2024
1 parent 364f53e commit 1c0f9e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_merchant/billing/gateways/d_local.rb
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def success_from(action, response)
return false unless response['status_code']

if action == 'void'
response['status_code'] == '400' && response['status'] == 'CANCELLED'
response['status_code'].to_s == '400' && response['status'] == 'CANCELLED'
else
%w[100 200 400 600 700].include? response['status_code'].to_s
end
Expand Down

0 comments on commit 1c0f9e3

Please sign in to comment.