Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

burzum/Sofort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sofortüberweisung Payment Processor

Discontinued. Go for another lib like https://github.com/thephpleague/omnipay. I would prefer the architecture of this CakePHP plugin but maintaining this code alone is far beyond my available free time.


Sofortueberweisung.de Payment Processor Plugin based on the standard payments lib

Requirements

This plugin is based on the standard Payments lib, you'll need it.

Setup

Clone from github

git clone git://github.com/burzum/Sofort.git

Usage

Configure a live API connection

$Config = new PaymentProcessorConfig(array(
	'apiKey' => 'YOU-SOFORT-API-KEY');
$Processor = new SofortUeberweisungProcessor($Config, 'default');

Configure sandbox API connection

$Config = new PaymentProcessorConfig(array(
	'apiKey' => 'YOU-SOFORT-API-KEY');
$Processor = new SofortUeberweisungProcessor($Config, 'default', true);

Processing payment actions

Pay

Payments require a primary reason to be set and an secondary optionally set

$Processor->set('payment_reason', 'Order 123'); // required
$Processor->set('payment_reason2', 'Something here'); // optional
$Processor->pay(15.99);

Refund

Sofort Refund requires you to set a bank account, usually the one that received the money before, to send the money from back to the buyer.

$Processor->set('sender_account_bic', 'Order 123'); // required
$Processor->set('sender_account_iban', 'Something here'); // required
$Processor->set('sender_account_holder', 'Something here'); // required
$Processor->refund(null, 15.99, 'My comment');

License

Copyright 2012, Florian Krämer

Licensed under The LGPL License

About

Sofortüberweisung Payment Processor for CakePHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages