objects/paypal.rb
Method send_payouts_api
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def send_payouts_api(email, usd, details)
PayPal::SDK.configure(
mode: 'live',
client_id: @config[:id],
client_secret: @config[:secret],
Method pay
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
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',