biskgitblue / braintree_payment_processing Goto Github PK
View Code? Open in Web Editor NEWThis project forked from jch/braintree_payment_processing
client to Braintree payment processing API
License: MIT License
This project forked from jch/braintree_payment_processing
client to Braintree payment processing API
License: MIT License
BraintreePaymentProcessing ========================== Ruby client library to [Braintree Payment Gateway](braintreepaymentsolutions.com/). See lib/braintree/client.rb for details. I wrote this client based on Braintree's API documentation to handle recurring billing. Later on, it would probably make sense to add this functionality back into active_merchant. Dependencies ============ * 'rest-client' gem * 'active_merchant' plugin Example ======= client = Braintree::Client.new({ :username => 'testapi', :password => 'password1', :api_url => 'https://secure.braintreepaymentgateway.com/api/transact.php', :on_error => Proc.new { |post_params, response| HoptoadNotifier.notify(:error_message => "Payment Error: #{response.text}") } }) # credit_card - valid ActiveMerchant::Billing::CreditCard object client.add_credit_card_to_vault(credit_card) # customer_vault_id - if of customer to update # product_sku - sku of plan to add customer to client.add_recurring(customer_vault_id, product_sku) Reference ========= * http://dev.braintreepaymentsolutions.com/vault/direct-post/ Copyright (c) 2009 [Jerry Cheung], released under the MIT license
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.