[TYPO3-paymentlib] Donations - no donation record is inserted

Brian Bendtsen nightowl at galnet.dk
Tue Jun 12 09:26:21 CEST 2007


Tonni Aagesen skrev:
> Brian Bendtsen wrote:
> 
>> The code that should redirect to my receed function:
>>
>> $transactionResultsArr = 
>> $providerObj->transaction_getResults($paymentReference);
> 
> Try inserting "var_dump($paymentReference, $transactionResultsArr); 
> exit;" here and see if it gives any clues.
> 
>>         if (is_array ($transactionResultsArr)) {
>>             if ($transactionResultsArr['state'] == 500) {
>>                 header ('Location: 
>> '.t3lib_div::getIndpEnv('TYPO3_SITE_URL').$this->pi_getPageLink($GLOBALS['TSFE']->id, 
>> '', array('tx_indmeldelse_pi1[receed]' => 'receed')));
>>                 exit;
>>             } else {
>>                 $message = 'Payment declined';
>>             }
>>         }
>>
>> The transaction with the correct paymentReference and the state = 500 
>> is present in the database, so why am I not redirected?
> 
> 
After a successful payment I get my confirm page again and the 
var_dump() outputs:

int(1181632980) bool(false)

I think this is strange since the database has a transaction record with 
1181632980 as paymentReference and state=500

/BB


More information about the TYPO3-project-paymentlib mailing list