Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Active Merchant is a simple payment abstraction library used in and sponsored by Shopify. It is written by Tobias Luetke, Cody Fauser, and contributors. This fork contains code to integrate with Spanish Online POS systems BBVA and Sermepa.
Ruby

This branch is 5 commits ahead, 1668 commits behind Shopify:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
generators
lib
rails
script
test
.gitignore
.travis.yml
.yardopts
CHANGELOG
CONTRIBUTORS
Gemfile
Gemfile_rails30
Gemfile_rails31
Gemfile_rails32
GettingStarted.md
MIT-LICENSE
README.md
RELEASING
Rakefile
activemerchant.gemspec
gem-public_cert.pem
init.rb

README.md

Active Merchant

This project adds integration for Spanish TPVs Sermepa and BBVA to Active Merchant

It was created using code from samlown/active_merchant and enriclluelles/active_merchant

Installation

From Git

You can check out the latest source from git:

git clone git://github.com/apalancat/active_merchant.git

As a Rails plugin

ActiveMerchant includes an init.rb file. This means that Rails will automatically load ActiveMerchant on startup. Run the following command from the root directory of your Rails project to install ActiveMerchant as a Rails plugin:

script/plugin install git://github.com/apalancat/active_merchant.git

As a Gem

Add the following to your Gemfile

gem 'activemerchant', :git => 'git://github.com/apalancat/active_merchant.git'

Usage

BBVA

First create an initializer with the commerce info:

# config/initializers/bbva.rb

ActiveMerchant::Billing::Integrations::BbvaTpv::Helper.credentials = {
  :terminal_id   => '999999',
  :commercial_id => 'X9999999999999',
  :secret_key    => 'secretkey',
  :secret_key_data => '99;99;99;99;99;99;99;99;99;99;99;99;99;99;99;99;99;99;99;99'
}

# include the view helper in order to be able to generate the form
require 'active_merchant/billing/integrations/action_view_helper'
ActionView::Base.send(:include, ActiveMerchant::Billing::Integrations::ActionViewHelper)

Then generate the form in the view:

<%= payment_service_for "123", 'The Shop', :amount => 50000, :currency => 'EUR', :service => :bbva_tpv do |service| %>
    <% service.description "Some description of the purchase"%>
    <% service.customer_name "Name"%>
    <% service.notify_url ""%>
    <% service.success_url ""%>
    <% service.failure_url ""%>

    <%= submit_tag "Go to payment gateway!"%>
<%end%>

For further info see @samlown documentation on integration with Sermepa

Shopify's API documentation.

Something went wrong with that request. Please try again.