All Projects → braintree → Braintree_dotnet

braintree / Braintree_dotnet

Licence: mit
Braintree .NET library

Projects that are alternatives of or similar to Braintree dotnet

Braintree python
Braintree Python library
Stars: ✭ 217 (+99.08%)
Mutual labels:  payments, braintree
Braintree Android Drop In
Braintree Drop-In SDK for Android
Stars: ✭ 78 (-28.44%)
Mutual labels:  payments, braintree
Braintree java
Braintree Java library
Stars: ✭ 129 (+18.35%)
Mutual labels:  payments, braintree
Braintree php
Braintree PHP library
Stars: ✭ 491 (+350.46%)
Mutual labels:  payments, braintree
Braintree Web
A suite of tools for integrating Braintree in the browser
Stars: ✭ 357 (+227.52%)
Mutual labels:  payments, braintree
Braintree node
Braintree Node.js library
Stars: ✭ 271 (+148.62%)
Mutual labels:  payments, braintree
Nestjs Braintree
A module for braintree reoccurring payments and transactions 💳
Stars: ✭ 62 (-43.12%)
Mutual labels:  payments, braintree
Braintree android
Braintree SDK for Android
Stars: ✭ 343 (+214.68%)
Mutual labels:  payments, braintree
Braintree ruby
Braintree Ruby library
Stars: ✭ 407 (+273.39%)
Mutual labels:  payments, braintree
Django Payments
Universal payment handling for Django.
Stars: ✭ 575 (+427.52%)
Mutual labels:  payments, braintree
Gopay
💰 Integrace Gopay pro Nette Framework
Stars: ✭ 68 (-37.61%)
Mutual labels:  payments
Shopping cart
A basic shopping cart for digital products. Made with Django
Stars: ✭ 70 (-35.78%)
Mutual labels:  payments
Stripe Payments Demo
Sample store accepting universal payments on the web with Stripe Elements, Payment Request, Apple Pay, Google Pay, Microsoft Pay, and the PaymentIntents API. 💳🌍✨
Stars: ✭ 1,287 (+1080.73%)
Mutual labels:  payments
React Native Payments
Accept Payments with Apple Pay and Android Pay using the Payment Request API.
Stars: ✭ 1,350 (+1138.53%)
Mutual labels:  payments
E Wallet
Wallet project based on laravel. The project is integrated with stripe for card payments and paypal APIs. It is 90% complete with features including deposits send money with cool ui. Clone the project and start your wallet system asap. cheers
Stars: ✭ 65 (-40.37%)
Mutual labels:  payments
Openfintech
Opensource FinTech standards & payment provider data
Stars: ✭ 87 (-20.18%)
Mutual labels:  payments
Pybtc
Python bitcoin library
Stars: ✭ 64 (-41.28%)
Mutual labels:  payments
Adyen Php Api Library
Adyen API Library for PHP
Stars: ✭ 93 (-14.68%)
Mutual labels:  payments
Braintree Elixir
💳 Native elixir client for Braintree
Stars: ✭ 86 (-21.1%)
Mutual labels:  braintree
Payment icons
An easy to use library that allows you to manage and access payment icons
Stars: ✭ 59 (-45.87%)
Mutual labels:  payments

Braintree .NET library

The Braintree .NET library provides integration access to the Braintree Gateway.

Please Note

The Payment Card Industry (PCI) Council has mandated that early versions of TLS be retired from service. All organizations that handle credit card information are required to comply with this standard. As part of this obligation, Braintree is updating its services to require TLS 1.2 for all HTTPS connections. Braintree will also require HTTP/1.1 for all connections. Please see our technical documentation for more information.

Dependencies

  • The Braintree .NET library targets Net Framework 4.5.2 and Net Standard 2.0. It is tested against .NET Framework 4.5.2 (via Mono) and NET Core 3.1.

Versions

Braintree employs a deprecation policy for our SDKs. For more information on the statuses of an SDK check our developer docs.

Major version number Status Released Deprecated Unsupported
5.x.x Active August 2020 TBA TBA
4.x.x Inactive March 2018 June 2022 June 2023
3.x.x Unsupported September 2016 March 2018 March 2018
2.x.x Unsupported April 2010 March 2018 March 2018
1.x.x Unsupported April 2010 March 2018 March 2018

Documentation

Updating from an Inactive, Deprecated, or Unsupported version of this SDK? Check our Migration Guide for tips.

Quick Start Example

using System;
using Braintree;

namespace BraintreeExample
{
    class Program
    {
        static void Main(string[] args)
        {
            var gateway = new BraintreeGateway
            {
                Environment = Braintree.Environment.SANDBOX,
                MerchantId = "the_merchant_id",
                PublicKey = "a_public_key",
                PrivateKey = "a_private_key"
            };

            TransactionRequest request = new TransactionRequest
            {
                Amount = 1000.00M,
                PaymentMethodNonce = nonceFromTheClient,
                Options = new TransactionOptionsRequest
                {
                    SubmitForSettlement = true
                }
            };

            Result<Transaction> result = gateway.Transaction.Sale(request);

            if (result.IsSuccess())
            {
                Transaction transaction = result.Target;
                Console.WriteLine("Success!: " + transaction.Id);
            }
            else if (result.Transaction != null)
            {
                Transaction transaction = result.Transaction;
                Console.WriteLine("Error processing transaction:");
                Console.WriteLine("  Status: " + transaction.Status);
                Console.WriteLine("  Code: " + transaction.ProcessorResponseCode);
                Console.WriteLine("  Text: " + transaction.ProcessorResponseText);
            }
            else
            {
                foreach (ValidationError error in result.Errors.DeepAll())
                {
                    Console.WriteLine("Attribute: " + error.Attribute);
                    Console.WriteLine("  Code: " + error.Code);
                    Console.WriteLine("  Message: " + error.Message);
                }
            }
        }
    }
}

Developing and Tests

See DEVELOPMENT.md.

License

See the LICENSE file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].