source/Services/Checkout/Payment.php
Method checkout
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function checkout(Credentials $credentials, \PagSeguro\Domains\Requests\Payment $payment, $onlyCode)
{
Logger::info("Begin", ['service' => 'Checkout']);
try {
$connection = new Connection\Data($credentials);