I am developing a marketplace system and each salesperson needs to have a MOIP account to receive sales.
As these vendors are very lazy I thought about automating this so they do not have to create a MOIP account, which is automatically cre...
In the following example, for debit with Banco Itaú, it works perfectly:
$payment = $order->payments()
->setOnlineBankDebit('341', $expiration_date, 'http://localhost/federais/')
->execute();
$redirect = $payment->getL...
Using the Moip SDK, I use the command to generate a link and be redirected to the link:
$redirect = $payment->getLinks()->getLink('payOnlineBankDebitItau');
header("location:$redirect");
But do not redirect. But when I execute b...