src/Drivers/Payping/Payping.php
Method purchase
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function purchase()
{
$name = $this->extractDetails('name');
$mobile = $this->extractDetails('mobile');
$email = $this->extractDetails('email');
Method verify
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function verify() : ReceiptInterface
{
$refId = Request::input('refid');
$data = [
'amount' => $this->invoice->getAmount() / ($this->settings->currency == 'T' ? 1 : 10), // convert to toman