Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic Payment Flow Example? #16

Closed
searzh opened this issue Dec 16, 2019 · 1 comment
Closed

Basic Payment Flow Example? #16

searzh opened this issue Dec 16, 2019 · 1 comment

Comments

@searzh
Copy link

searzh commented Dec 16, 2019

Any chance we could get a basic payment flow as an example? I've read the doc but I think I'm missing a lot of information.

I have created this so far, but then I'm not sure what's next on the list.

Future<void> startMP() async {
    MP mercadoPago = MP('6924219732628689', 'yd5kmBOBHhXE24GuOVK9iozt5D8vjyY2');

    String token = await mercadoPago.getAccessToken();

    var payer = {'email': 'test_user_8098417@testuser.com'};

    var preference = {
      "items": [
        {
          "title": "Test01",
          "quantity": 1,
          "currency_id": "USD",
          "unit_price": 0.01,
          "payer": payer,
        }
      ],
    };

    var result = await mercadoPago.createPreference(preference);

    
  }

What's next? Thank you.

@msilvamolina
Copy link

https://www.youtube.com/watch?v=jumlRs29sEM

@searzh searzh closed this as completed May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants