When trying to edit Mercado Pago Payment admin/commerce/config/payment-methods/manage/commerce_payment_mercado_pago_payment_sdk/edit/ the following errors appear

Warning: Illegal string offset 'method' in MPRestClient::get() (line 549 of sites/all/libraries/mp_sdk/lib/mercadopago.php).

Exception: No HTTP METHOD specified in MPRestClient::build_request() (line 426 of sites/all/libraries/mp_sdk/lib/mercadopago.php).

A path would be supplied shortly

CommentFileSizeAuthor
#2 New version support-2584447.patch1.36 KBjrviorato

Comments

jrviorato created an issue. See original summary.

jrviorato’s picture

StatusFileSize
new1.36 KB

The error is caused because the new version of MercadoPago SDK changes its protocol for using MPRestClient::get

jrviorato’s picture

Issue summary: View changes
jrviorato’s picture

Issue summary: View changes
andresc75’s picture

Aplicando el patch en #2 soluciona el problema (testeado en dev y luego en sitio en producción)

jrviorato’s picture

Status: Needs review » Closed (fixed)