You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
Ao tentar criar um pagamento passando um objeto $holder sem telefone definido ocorre: ErrorException: Undefined property: stdClass::$phone in .../vendor/moip/moip-sdk-php/src/Resource/Holder.php:120
Segundo a documentação o telefone só é obrigatório para o Venda Protegida, então, em teoria deveria ser possível criar pagamentos sem especificar o telefone do holder.
Estou contornando o problema passando string vazia para setPhone:
$holder = $moip->holders()
->setFullname('Fulano da Silva')
->setBirthDate('2000-12-25)
->setTaxDocument('90027971090') // 4devs.com.br/gerador_de_cpf
->setPhone('',''); // workaround for wirecard problem
$moipPayment = $order->payments()
->setCreditCardHash('D73EAN3y5VRMUw90y2woIcG631ag/Svs...')
->setInstallmentCount(1)
->setStatementDescriptor('Minha Empresa')
->execute();
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Ao tentar criar um pagamento passando um objeto $holder sem telefone definido ocorre:
ErrorException: Undefined property: stdClass::$phone in .../vendor/moip/moip-sdk-php/src/Resource/Holder.php:120
Segundo a documentação o telefone só é obrigatório para o Venda Protegida, então, em teoria deveria ser possível criar pagamentos sem especificar o telefone do holder.
Estou contornando o problema passando string vazia para
setPhone
:The text was updated successfully, but these errors were encountered: