Git Product home page Git Product logo

mercadopagocore's Introduction

MercadoPagoCore - Repository

This library provides developers with a simple set of bindings to help you integrate Mercado Pago API to a website and start receiving payments.

Build Status

.NET Core

MercadoPagoCore

πŸš€ Package information

latest version downloads APM

πŸ’‘ Requirements

.net >= 5.0

πŸ“² Installation

Using our NuGet package

First time using Mercado Pago? Create your Mercado Pago account, if you don’t have one already.

Using Package Manager

PM> Install-Package MercadoPagoCore -Version 5.0.0

Using .Net CLI

> dotnet add package MercadoPagoCore --version 5.0.0

Using Paket CLI

> paket add MercadoPagoCore --version 5.0.0

Using Package Reference

<PackageReference Include="MercadoPagoCore" Version="5.0.0" />

Copy the access_token in the credentials section of the page and replace YOUR_ACCESS_TOKEN with it.

That's it! MercadoPagoCore SDK has been successfully installed.

🌟 Getting Started

Simple usage looks like:

using System;
using System.Threading.Tasks;
using MercadoPago.Client.Payment;
using MercadoPago.Config;
using MercadoPago.Resource.Payment;

MercadoPagoConfig.AccessToken = "YOUR_ACCESS_TOKEN";

var request = new PaymentCreateRequest
{
    TransactionAmount = 10,
    Token = "CARD_TOKEN",
    Description = "Payment description",
    Installments = 1,
    PaymentMethodId = "visa",
    Payer = new PaymentPayerRequest
    {
        Email = "[email protected]",
    }
};

var client = new PaymentClient();
Payment payment = await client.CreateAsync(request);

Console.WriteLine($"Payment ID: {payment.Id}");

πŸ“š Documentation

Visit our Dev Site for further information regarding:

❀️ Support

If you require technical support, please contact our support team at developers.mercadopago.com

🏻 License

MIT license. Copyright (c) 2020 
For more information, see the LICENSE file.

mercadopagocore's People

Contributors

carlospavajeau avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.