Git Product home page Git Product logo

wirecard_sepa's Introduction

UNMAINTAINED BECAUSE WIRECARD IS BANKRUPT

Wirecard SEPA

Build Status Code Climate Dependency Status

Implements the client for creating payments in the Wircard Elastic Engine gateway. More info here.

Usage

config = WirecardSepa::Config.new({
  api_url: 'https://api-test.wirecard.com/engine/rest/paymentmethods/',
  http_auth_username: '70000-APITEST-AP',
  http_auth_password: 'xxxxxxxxx',
  merchant_account_id: '4c901196-eff7-411e-82a3-5ef6b6860d64',
  creditor_id: 'DE98ZZZ09999999999'
})
gateway = WirecardSepa::Gateway.new(config)
response = gateway.debit({
  requested_amount: '12.12',
  account_holder_first_name: 'John',
  account_holder_last_name: 'Doe',
  bank_account_iban: 'DE42512308000000060004',
  bank_account_bic: 'WIREDEMMXXX',
  mandate_id: '1235678',
  mandate_signed_date: '2015-06-02'
})
response.success?
=> true

Feature: Custom Fields

Beginning with version 0.0.5 the WirecardSepa::Gateway#debit method accepts a custom_fields param which forwards custom key-value pairs to the wirecard payment back end.

Usage example:

response = gateway.debit({
  requested_amount: '12.12',
  account_holder_first_name: 'John',
  account_holder_last_name: 'Doe',
  bank_account_iban: 'DE42512308000000060004',
  bank_account_bic: 'WIREDEMMXXX',
  mandate_id: '1235678',
  mandate_signed_date: '2015-06-02',
  custom_fields: {
    'Banana' => 'tree',
    'Department' => 'IT',
  }
})

TODOS

  • Simple error handling
  • Docs for usage in README.md

Contributing

  1. Fork it ( https://github.com/betterplace/wirecard_sepa/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

wirecard_sepa's People

Contributors

xijo avatar flori avatar stiwwelll avatar averell23 avatar jaynetics avatar

Stargazers

Laurent Schaffner avatar

Watchers

 avatar Johannes Kulick avatar  avatar Tobias avatar Felix Wolfsteller avatar James Cloos avatar Loïc Nogues avatar Axel avatar Barbora Blo avatar Katrin Fritz avatar  avatar Kamil Piwko avatar Liviu Coman avatar  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.