Hi,

I am trying to implement MercadoPago in Drupal 8 like "https://github.com/mercadopago/dx-php",
I have all ready but when I try to do this;

require_once 'vendor/autoload.php';

MercadoPago\SDK::setAccessToken("YOUR_ACCESS_TOKEN");

Drupal show me next error

Error: Class 'Drupal\Mercadopago\SDK' not found in Drupal\mercadopago\Controller\MercadoPagoPaymentController->payment() (line 68 of modules/mercadopago/src/Controller/MercadoPagoPaymentController.php).

Somebody coould you help me?

Greetings

Comments

oksanchez created an issue. See original summary.

jrviorato’s picture

Can you show me your code? Only the error is not enough to find the problem.

Have you uploaded your code somewhere? Do you have a sandbox project or something?

Best,
Jesus

joelibaceta’s picture

Hi, MercadoPago SDK assume you are using composer for the SDK installation, maybe you can use a simple client rest to use the Payments API.

danrod’s picture

Any status of this issue? is anyone doing any port of this module for Drupal 8? I would like to contribute some time on it.

jrviorato’s picture

Hi @danrod, I am the manager of this module (MercadoPago payment module). And I am not working on porting it to Drupal 8 and I don't know anyone doing it. If you have time and you would like to do it, I am happy to help you with whatever you need. Right now I have this project abandoned because I have no time to work on it.

Let me know whatever you need.

Best,
Jesus

danrod’s picture

Hello @jrviorato can I be co-maintainer of this module? I would like to create a new branch for the D8 module and then push it.

Thanks in advance,

Daniel R.

jrviorato’s picture

Assigned: Unassigned » danrod

I got distracted with some other issues at work. But I am back now. I granted you commit and maintain issues access.

You can now submit your ported version whenever is ready.

Thanks,
Jesus

danrod’s picture

Thanks @jrviorato, I will have a look on this soon.

pepemty’s picture

Hey there!
Any advance on this issue...?

Warm regards.

jidrone’s picture

Hi Everyone,

I'm also interested in MercadoPago and Commerce in Drupal 8, I don't see any release for D8.

I want to have a common web checkout process redirecting to Mercado Pago to do the Payment and then taking the user back to store when finish.

If you have any progress, I'm willing to help with code.

danrod’s picture

Hello @jidrone,

I have a mockup contrib module that implements MercadoPago as a Gateway Payment for Drupal Commerce 2, I think I will push it to github first, and we can continue from there, hopefully it should be online this weekend.

jidrone’s picture

Hi @danrod,

That's a great news, I will wait for your update.

Thank you.

jidrone’s picture

Hi @danrod,

Any progress pushing the code?
If you agree, we can just create a Drupal 8 dev branch with your code so that I can help you coding.

Then we can modify this issue title and details with the remaining tasks.

Regards.

ramirojoaquin’s picture

Hi, i am very interested also in having a mercadopago gateway for drupal 8.
I am not an advanced developer but i can help with testing and whatever else is needed.
Is there anything uploaded to github?

martin gersbach’s picture

Hola,

Que curioso que nadie haya contribuido este módulo...
será un tema de financiamiento?
cuanto puede costar el desarrollo de ese module?

raprieto’s picture

Hi to all,
I'm interested to participate in porting Mercado Pago SDK into Drupal 9 and Commerce 2.x.

@Shermany, what is the status of the project you have started?
@danrod, any update you can give us about this?

I saw there is another project initiated by @matiasmiranda here: https://www.drupal.org/project/mercadopago_api
All these projects are empty. So I'm not sure who has started to work into it and what we have already.

I'm open to participate as developer as well.

Thank you guys,
Rod