[Typo3-dev] Service for Online Payments
Martin T. Kutschker
Martin.no5pam.Kutschker at blackbox.n0spam.net
Tue Mar 1 19:38:33 CET 2005
Seibert, Norman wrote:
> Hi all,
>
> to enable online payments via credit cards I am implementing a service
> supporting VeriSign Payflow Pro (Windows version in the first step). The
> payment gateway must handle background transactions that means that the
> user is not redirected to an external page like in the eCardia
> extension.
Good idea!
> As a name for the service class I propose "onlinePayment".
>
> At the moment I use the following API (although Payflow Pro does not use
> all the fields described below):
>
> /**
> * [submits the payment to Payflow Pro]
> *
> * @param [array] $arrCCard: Array with credit card data
> * @param [array] $arrTrans: Array with transaction data
> * @return [string] $transactionCode: Unique
> transaction code returned by Payflow Pro
> * @return [array] $arrResponse: Array with response
> parameters
> * @return [boolean] true = transaction successful,
> false = transaction failed
> */
I think it's easier to deal with one array as single return vallue
rather than numerous reference arguments. Besides it's easier a) to add
new arguments and b) to enlarge the return value.
> I am looking forward to your comments
Not all online payment systems are credit cards. There is Paypal, there
are numerous prepaid cards, and systems of mobile phone services.
Would be nice if they could be grouped together somehow, perhaps as
subtypes.
Masi
More information about the TYPO3-dev
mailing list