GithubHelp home page GithubHelp logo

minusmillionaer / netzfabrik-sepa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dsentker/php-sepa-lastschrift

0.0 0.0 0.0 37 KB

php lib to create sepa xml file

License: GNU Lesser General Public License v3.0

PHP 100.00%
php xml sepa payment

netzfabrik-sepa's Introduction

php lib to create sepa xml file

use NETZFABRIK\Payments\Sepa;

$datum = new DateTime("now + 14 days");
$lastschriften = new DirectDebit($datum, /* msgid */ "randomid",
                                         /* initiator */ "Example Org (user)",
                                     /* account owner */ "FeM e.V.",
                                      /* account IBAN */ "DE123IBAN",
                                       /* account BIC */ "BICEXAMPLE0",
                                       /* creditor ID */ "DE123456",
                                                         "EUR");

$lastschriften->addLastschrift( /* id */ "randomtxid",
                              /* iban */ "DE456IBAN",
                               /* bic */ "BICEXAMPLE1",
                     /* account owner */ "Test Me",
                           /* mandate */ "Mandate-Id123",
              /* mandate signing date */ new DateTime("2013-05-23"),
                            /* amount */ 42.00,
                           /* subject */ "blabla SSS",
                              /* type */  "FRST");
$lastschriften->addLastschrift("randomtxid2", "DE789IBAN", "BICEXAMPLE2", "Test Me2", "Mandate-Id122", new DateTime("2013-05-22"), 44.00, "blabla SSS","RCUR");
$lastschriften->addLastschrift("randomtxid3", "DE012IBAN", "BICEXAMPLE3", "Test Me3", "Mandate-Id123", new DateTime("2013-05-22"), 44.00, "blabla SSS","RCUR");

# enable self-test: optional
global $sepaLastschriftXMLVersion; # 008.002.02
global $sepaLastschriftXSD; # ../media/
$sepaLastschriftXSD = dirname(__FILE__);
function add_message($msg, $class="hinweis") {
  echo $msg."\n";
}

# output
header("Content-type: text/xml");
echo $lastschriften->asXML();

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.