app/services/paypal_service.rb
Method create_prepay_invoice
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def self.create_prepay_invoice(n_months)
# Create a Paypal invoice to redirect to for payment
request = PayPalCheckoutSdk::Orders::OrdersCreateRequest::new
request.request_body({
intent: "CAPTURE",