Skip to content

Commit

Permalink
edited the wrong function
Browse files Browse the repository at this point in the history
  • Loading branch information
devo-devo committed Jul 25, 2024
1 parent a695f38 commit a381aec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vendor/processors/stripe.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,15 +356,15 @@ def get_application_fee_percent(self):
if vendor_site_commission.instance:
return vendor_site_commission.get_key_value('commission')

return 0
return None

def get_application_fee_amount(self, amount):
vendor_site_commission = VendorSiteCommissionConfig(self.site)

if vendor_site_commission.instance:
return (vendor_site_commission.get_key_value('commission') * amount) / 100

return None
return 0

def get_recurring_fee_amount(self, amount):
fee = 0
Expand Down

0 comments on commit a381aec

Please sign in to comment.