Skip to content

Commit

Permalink
Kushki: fix add amount default method
Browse files Browse the repository at this point in the history
  • Loading branch information
yunnydang committed Aug 2, 2023
1 parent 23a917c commit 47f663b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Reach: Update list of supported countries [jcreiff] #4842
* Paysafe: Truncate address fields [jcreiff] #4841
* Braintree: Support third party Network Tokens [aenand] #4775
* Kushki: Fix add amount default method for subtotalIva and subtotalIva0 [yunnydang] #4845

== Version 1.134.0 (July 25, 2023)
* Update required Ruby version [almalee24] #4823
Expand Down
4 changes: 2 additions & 2 deletions lib/active_merchant/billing/gateways/kushki.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ def add_invoice(action, post, money, options)
end

def add_amount_defaults(sum, money, options)
sum[:subtotalIva] = amount(money).to_f
sum[:subtotalIva] = 0
sum[:iva] = 0
sum[:subtotalIva0] = 0
sum[:subtotalIva0] = amount(money).to_f

sum[:ice] = 0 if sum[:currency] != 'COP'
end
Expand Down

0 comments on commit 47f663b

Please sign in to comment.