PHP SDK Moip: Which tag to use for Banks when in Debt online?

2

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->getLinks()->getLink('payOnlineBankDebitItau');

    header("location:$redirect");

But for Banco do Brasil does not work, what name should I put?

$payment = $order->payments()
    ->setOnlineBankDebit('001', $expiration_date, 'http://localhost/federais/')
    ->execute();

    $redirect = $payment->getLinks()->getLink('payDebitOnline');

    header("location:$redirect");

What about the other banks? Bradesco, Barisul and others?

You have tried payDebitOnlineBrasil and others and nothing works. Has anyone worked with the Moip SDK for online debt can you help me?

I just tested Bradesco: payDebitOnlineBradesco and it worked. But what about the other banks?

    
asked by anonymous 28.07.2018 / 21:42

1 answer

4

What version of SDK are you using? It seems to me that v2 only has the support for bank transfer with Banco Itaú, according to support page them:

  

Accepted payment methods for E-commerce and Marketplace

     
  • Credit cards: Visa, MasterCard, Hiper, Dinners Club, American Express, Elo and Hipercard.

  •   
  • Debit in account: The debit in account with Banco Itaú.

         

    In a somewhat older version (v1) we also have Banco Bradesco, Banco Banrisul and Banco do Brasil.

  •   
    
28.07.2018 / 21:51