Skip to content

Commit

Permalink
Merge branch 'pro-account-bans'
Browse files Browse the repository at this point in the history
  • Loading branch information
gbp committed Sep 29, 2023
2 parents fe539d4 + 19e027f commit 85ca241
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/pro_account_bans.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module ModelMethods
def update_source
return super unless pro_account_banned?

sleep (4...10).to_a.sample unless Rails.env.test? # simulate random delay
raise ProAccount::CardError, _("The card issuer couldn't authorize " \
"payment.")
end
Expand Down

0 comments on commit 85ca241

Please sign in to comment.