zold-io/wts.zold.io

View on GitHub
objects/paypal.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Method send_payouts_api has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def send_payouts_api(email, usd, details)
    PayPal::SDK.configure(
      mode: 'live',
      client_id: @config[:id],
      client_secret: @config[:secret],
Severity: Minor
Found in objects/paypal.rb - About 1 hr to fix

    Method pay has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def pay(email, usd, details)
        require 'openssl'
        OpenSSL::SSL.const_set(:VERIFY_PEER, OpenSSL::SSL::VERIFY_NONE)
        gateway = ActiveMerchant::Billing::PaypalAdaptivePayment.new(
          mode: 'live',
    Severity: Minor
    Found in objects/paypal.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status