We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c64352 commit ff16ae6Copy full SHA for ff16ae6
source/Payment.php
@@ -106,8 +106,7 @@ public function setSenderName($name)
106
*/
107
public function setSenderCPF($cpf)
108
{
109
- $cpf = Utils::onlyNumbers($cpf);
110
- $cpf = substr($cpf, 0, 11);
+ $cpf = Utils::onlyNumbers($cpf, 11);
111
$this->post['senderCPF'] = $cpf;
112
}
113
tests/PaymentTest.php
@@ -25,7 +25,7 @@ public function testCPF()
25
26
$payment = new \Sounoob\pagseguro\Payment();
27
28
- $payment->setSenderCPF('012.345.678-906');
+ $payment->setSenderCPF('012.345.678-90');
29
30
$data = $payment->build();
31
0 commit comments