PHP SDK Moip: What tag to use for Banks when in Online Debit?

Asked

Viewed 39 times

3

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 the Bank of Brazil does not work, which name should I put?

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

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

    header("location:$redirect");

And for the other banks? Bradesco, Barisul and others?

Yeah, I tried payDebitOnlineBrasil and others and nothing works. Someone has worked with Moip’s SDK for online debt can help me?

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

1 answer

5


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

Accepted payment methods for E-commerce and Marketplace

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

  • Debit account: Debit account with Banco Itaú.

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

  • It’s version 2. So just Itau. Got it. Thanks @gmsantos.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.