Code Duplication    Length = 11-11 lines in 2 locations

src/Services/Pay.php 2 locations

@@ 58-68 (lines=11) @@
55
        return $this->map($this->makeRequest('card', $params), new CardResponse());
56
    }
57
58
    public function cancel(array $params, int $merchantId, string $secretWord): CancelResponse
59
    {
60
        $params['token'] = md5(
61
            $merchantId
62
            .($params['payment_id'] ?? '')
63
            .($params['amount'] ?? '')
64
            .$secretWord
65
        );
66
67
        return $this->map($this->makeRequest('cancel', $params), new CancelResponse());
68
    }
69
70
    public function charge(array $params, int $merchantId, string $secretWord): ChargeResponse
71
    {
@@ 122-132 (lines=11) @@
119
        return $this->map($this->makeRequest('p2p', $params), new P2PResponse());
120
    }
121
122
    public function recurrent(array $params, int $merchantId, string $secretWord): RecurrentResponse
123
    {
124
        $params['token'] = md5(
125
            $merchantId
126
            .($params['payment_id'] ?? '')
127
            .($params['amount'] ?? '')
128
            .$secretWord
129
        );
130
131
        return $this->map($this->makeRequest('recurrent', $params), new RecurrentResponse());
132
    }
133
134
    public function status(array $params, int $merchantId, string $secretWord): StatusResponse
135
    {