[Typo3-shop] 3 questions
Franz Holzinger
franz at fholzinger.com
Sat Nov 5 15:07:37 CET 2005
Hello Fred,
> 1)
> You can see my script in attached files (myRelay.php).
>
> I have the following error (after the payment and the redirection to the
> handlescript) : "$this and $this->cObj must be objects!"
>
> What is wrong with it ?
Make an update to the latest development version of tt_products.
http://fholzinger.com/development/tt_products-2.3.4.7.zip
Due to the creation of more classes in the code, the $this object does
not work here any more. So you have adapt the payment script like in the
example of the DIBS script.
>
> 2)
> You can see my modified DIBS template script in attached files
> (myPayment_DIBS.php).
>
> Theses lines doesn't work for me because $lConf and $conf does'nt exist and
> display nothing :
>
> [CODE]
> // $lConf = $this->basketExtra["payment."]["handleScript."]; // Loads the
> handleScript TypoScript into $lConf.
> $lConf = $conf;
>
> $markerArray['###HIDDEN_FIELDS###'] = '<input type="hidden" name="accepturl"
> value="https://payment.architrade.com/cgi-ssl/relay.cgi/'.$lConf["relayURL"]
> .'&products_cmd=accept&products_finalize=1'.$param.'">';
> [/CODE]
>
> Here is the accepturl I can see in the HTML when I use the DIBS template :
> https://payment.architrade.com/cgi-ssl/relay.cgi/&products_cmd=accept&produc
> ts_finalize=1&FE_SESSION_KEY=26c730eb07-ff3c8587bd14a326bf9177e43ad869ab
>
> How is it supposed to work ?
See the manual for DIBS.
You have to use some TypoScript setup code to make this working.
>
> 3)
> When I use you DIBS template (payment_DIBS.php in attached files), here is
> the error I have after submitting the form (with the credit card field) :
> Invalid url sent to relay.cgi:
> &products_cmd=decline&products_finalize=1&FE_SESSION_KEY=26c730eb07-ff3c8587
> bd14a326bf9177e43ad869ab?reason=2&message=Unknown%20merchant%20id
> Is there a problem with the DIBS template ?
>
>
This is no correct URL, because you did not use the Setup code like for
DIBS.
Franz
More information about the TYPO3-project-tt-products
mailing list