The log is empty, no error:
"POST /fechar-pedido/finalizacao/step-1/task-step HTTP/1.1" 500 1434
Only it.
The error show when i set a variable inside setSender:
$nome = $order->customer->name;
$email = $order->customer->email;
$paymentRequest->setSender(
$nome,
$email
);
// error
if i set hardcode on the setSender, no problem is showed:
$paymentRequest->setSender(
"Nome Maldito",
"plugin@maldito.com"
);
// no error
Why ? I do not understand why, do you have any ideia ?
update: I discovery the error: the payment library has some kind of parse about customer name... i just check if the name is right before send across method...
update 2: i made the plugin, all is working without problem.