app/models/payments/stripe/charge.rb
Method charge
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def charge options
fail ArgumentError unless options[:amount] >= 50 && # 50 cents minimum
(!!options[:token] ^ !!options[:customer]) # boolean-coerced xor
begin
- Create a ticket