TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

TYPO3 Mailingliste: nicht fragen - lesen!

TYPO3 Mailingliste: nicht fragen - lesen!_RR_1-->
Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-project-tt-products@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 19.11.2008, 18:01
John Nicholas
Gast
 
Beiträge: n/a
Standard [TYPO3-shop] handleScript

Please help me clarify how handleScript works.

It looks to me like if a handleScript is defined in typoscript the
processPayment method of class.tt_products_control.php this line is called

$content.= $this->paymentshipping->includeHandleScript($handleScript,
$this->basket->basketExtra['payment.']['handleScript.'],
$this->conf['paymentActivity'], $bFinalize);

which should get to this function in

function includeHandleScript($handleScript, &$confScript, $activity,
&$bFinalize) {
$content = '';
include($handleScript);
return $content;
}

which basically puts my handlescript inline. if I put a die("In the
handle script!") that text will be displayed. I can also run some code i
there. for example:

$localTemplateCode = $this->pibase->cObj->fileResource(
'EXT:tt_products/template/payment_Authorize_template.tmpl'); // Fetches
the Authorize.net template file
$localTemplateCode =
$this->pibase->cObj->substituteMarkerArrayCached($localTemplateCode,
$this->pibase->globalMarkerArray);
die($localTemplateCode)

will display the template code. since the includeHandleScript function
just returns content. I would assume that I generate a form or run the
authorization and put the results in $content. anything besides the
die() just goes to the finalize page.

After a few days of experimenting I have no idea what to do next.
_______________________________________________
TYPO3-project-tt-products mailing list
TYPO3-project-tt-products (AT) lists...netfielders.de
http://lists.netfielders.de/cgi-bin/...ct-tt-products
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 19.11.2008, 19:33
Franz Holzinger
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-shop] handleScript

John Nicholas a écrit :
> Please help me clarify how handleScript works.
>
> It looks to me like if a handleScript is defined in typoscript the
> processPayment method of class.tt_products_control.php this line is called


Try to understand handlescript_2checkout first. This is known to be
working. I do not know if authorize-net does or needs modifications.
Maybe you can adapt the code like the other extension.

- Franz




_______________________________________________
TYPO3-project-tt-products mailing list
TYPO3-project-tt-products (AT) lists...netfielders.de
http://lists.netfielders.de/cgi-bin/...ct-tt-products
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 19.11.2008, 21:46
John Nicholas
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-shop] handleScript

This doesn't really address my question. The issue isn't authorize.net
related. The question is why setting any content in $content isn't
displayed or otherwise effects what happens when a person hits the next
button even though die() commands show that the code is being run.

if the handlescript $content value isn't meant to be displayed (which
appears to be the case in the old DIBs example and the 2checkout
example) what is it meant to be in there. If it isn't related to the
$content variables contents, what else effects how this is processed?

Franz Holzinger wrote:
> John Nicholas a écrit :
>> Please help me clarify how handleScript works.
>>
>> It looks to me like if a handleScript is defined in typoscript the
>> processPayment method of class.tt_products_control.php this line is
>> called

>
> Try to understand handlescript_2checkout first. This is known to be
> working. I do not know if authorize-net does or needs modifications.
> Maybe you can adapt the code like the other extension.
>
> - Franz
>
>
>
>

_______________________________________________
TYPO3-project-tt-products mailing list
TYPO3-project-tt-products (AT) lists...netfielders.de
http://lists.netfielders.de/cgi-bin/...ct-tt-products
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #4  
Alt 19.11.2008, 22:11
John Nicholas
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-shop] handleScript

Additionally the only thing I can tell that effects how the next page
loads is the submit button in the template as

<input type="Submit" name="products_customized_payment" value="Pay /
Order" onClick="document.forms[0].action='###FORM_URL_FINALIZE###';">

which renders in the output as

<input type="Submit" name="products_customized_payment" value="Pay /
Order"onClick="document.forms[0].action='store/cart.html?tx_ttproducts_pi1%5BbackPID%5D=21&amp;cH ash=c5503959c5';">

I tried changing name="products_customized_payment" to a few other
values like "products_payment" based on what _control is looking for but
that just made it loop back to the first page of the checkout.

John Nicholas wrote:
> This doesn't really address my question. The issue isn't authorize.net
> related. The question is why setting any content in $content isn't
> displayed or otherwise effects what happens when a person hits the next
> button even though die() commands show that the code is being run.
>
> if the handlescript $content value isn't meant to be displayed (which
> appears to be the case in the old DIBs example and the 2checkout
> example) what is it meant to be in there. If it isn't related to the
> $content variables contents, what else effects how this is processed?
>
> Franz Holzinger wrote:
>> John Nicholas a écrit :
>>> Please help me clarify how handleScript works.
>>>
>>> It looks to me like if a handleScript is defined in typoscript the
>>> processPayment method of class.tt_products_control.php this line is
>>> called

>>
>> Try to understand handlescript_2checkout first. This is known to be
>> working. I do not know if authorize-net does or needs modifications.
>> Maybe you can adapt the code like the other extension.
>>
>> - Franz
>>
>>
>>
>>

_______________________________________________
TYPO3-project-tt-products mailing list
TYPO3-project-tt-products (AT) lists...netfielders.de
http://lists.netfielders.de/cgi-bin/...ct-tt-products
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #5  
Alt 20.11.2008, 06:15
Franz Holzinger
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-shop] handleScript

John Nicholas a écrit :
> This doesn't really address my question. The issue isn't authorize.net
> related. The question is why setting any content in $content isn't
> displayed or otherwise effects what happens when a person hits the next
> button even though die() commands show that the code is being run.


You must put the marker ###MESSAGE_PAYMENT_SCRIPT### into your Shop HTML
template.
Set the paymentActivity to payment or finalize.

> if the handlescript $content value isn't meant to be displayed (which
> appears to be the case in the old DIBs example and the 2checkout
> example) what is it meant to be in there. If it isn't related to the
> $content variables contents, what else effects how this is processed?


$content is meant to be displayed. It is the output of the payment
script. Or it can even redirect to the gateway and will hopefully come
back to the shop later again.
This script must fill in the $bFinalize parameter with TRUE, if the shop
shall do the finalization.

- Franz





_______________________________________________
TYPO3-project-tt-products mailing list
TYPO3-project-tt-products (AT) lists...netfielders.de
http://lists.netfielders.de/cgi-bin/...ct-tt-products
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #6  
Alt 20.11.2008, 06:19
Franz Holzinger
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-shop] handleScript

John Nicholas a écrit :
> Additionally the only thing I can tell that effects how the next page
> loads is the submit button in the template as
>
> <input type="Submit" name="products_customized_payment" value="Pay /
> Order" onClick="document.forms[0].action='###FORM_URL_FINALIZE###';">
>
> which renders in the output as
>
> <input type="Submit" name="products_customized_payment" value="Pay /
> Order"onClick="document.forms[0].action='store/cart.html?tx_ttproducts_pi1%5BbackPID%5D=21&amp;cH ash=c5503959c5';">
>
>
> I tried changing name="products_customized_payment" to a few other
> values like "products_payment" based on what _control is looking for but
> that just made it loop back to the first page of the checkout.


products_customized_payment is needed if the gateway needs an
intermediate step before or after entering of the credit card data.

This is the activity which will be done by the shop on the next step.

- Franz



_______________________________________________
TYPO3-project-tt-products mailing list
TYPO3-project-tt-products (AT) lists...netfielders.de
http://lists.netfielders.de/cgi-bin/...ct-tt-products
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #7  
Alt 21.11.2008, 16:14
John Nicholas
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-shop] handleScript

Currently I my handleScript does connect successfully to authorize.net
by using products_customized_payment and by setting paymentActivity to
customized. No other variations seem to actually run the handleScript code.

This leaves the finalize step of closing out the cart and sending the
emails. I have tried setting $bFinalize = true with no effect.
The DIBS and 2Checkout examples see to use $this->order->finalize or
$this->pibase->order->finalize for this but I don't see an effect from
that either.

One thing I might need to note is that nothing is being rendered at
authorize.net. My handlescript simply connects to them and uses the
result to render and error message or success message. I just need the
success message to trigger the the finalize step instead

Franz Holzinger wrote:
> John Nicholas a écrit :
>> Additionally the only thing I can tell that effects how the next page
>> loads is the submit button in the template as
>>
>> <input type="Submit" name="products_customized_payment" value="Pay /
>> Order" onClick="document.forms[0].action='###FORM_URL_FINALIZE###';">
>>
>> which renders in the output as
>>
>> <input type="Submit" name="products_customized_payment" value="Pay /
>> Order"onClick="document.forms[0].action='store/cart.html?tx_ttproducts_pi1%5BbackPID%5D=21&amp;cH ash=c5503959c5';">
>>
>>
>> I tried changing name="products_customized_payment" to a few other
>> values like "products_payment" based on what _control is looking for
>> but that just made it loop back to the first page of the checkout.

>
> products_customized_payment is needed if the gateway needs an
> intermediate step before or after entering of the credit card data.
>
> This is the activity which will be done by the shop on the next step.
>
> - Franz
>
>
>

_______________________________________________
TYPO3-project-tt-products mailing list
TYPO3-project-tt-products (AT) lists...netfielders.de
http://lists.netfielders.de/cgi-bin/...ct-tt-products
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #8  
Alt 22.11.2008, 00:18
John Nicholas
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-shop] handleScript

What is ###MESSAGE_PAYMENT_SCRIPT### and what is it supposed to do?
Where does it go? I found one message saying it should be in
BASKET_ORDERCONFIRMATION_TEMPLATE but that is the page that I seem to be
unable to get to from my handleScript so it doesn't seem to be part of
my problem.

What is the relationship between paymentActivity in typoscript and
setting the form submit between products_customized_payment and
products_payment? From what I've seen so far, only
products_customized_payment will actually run the handleScript code but
then it will only render $content from there. Setting $bFinalize=true
looks like it should then run the finalize code but this doesn't seem to
happen.


Franz Holzinger wrote:
> John Nicholas a écrit :
>> This doesn't really address my question. The issue isn't authorize.net
>> related. The question is why setting any content in $content isn't
>> displayed or otherwise effects what happens when a person hits the
>> next button even though die() commands show that the code is being run.

>
> You must put the marker ###MESSAGE_PAYMENT_SCRIPT### into your Shop HTML
> template.
> Set the paymentActivity to payment or finalize.
>
>> if the handlescript $content value isn't meant to be displayed (which
>> appears to be the case in the old DIBs example and the 2checkout
>> example) what is it meant to be in there. If it isn't related to the
>> $content variables contents, what else effects how this is processed?

>
> $content is meant to be displayed. It is the output of the payment
> script. Or it can even redirect to the gateway and will hopefully come
> back to the shop later again.
> This script must fill in the $bFinalize parameter with TRUE, if the shop
> shall do the finalization.
>
> - Franz
>
>
>
>
>

_______________________________________________
TYPO3-project-tt-products mailing list
TYPO3-project-tt-products (AT) lists...netfielders.de
http://lists.netfielders.de/cgi-bin/...ct-tt-products
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

Thema Autor Forum Antworten Letzter Beitrag
[TYPO3-shop] tt_products handleScript for PayPal Express Checkout Richard Hirner typo3-project-tt-products@lists.netfielders.de 11 14.03.2008 13:31
[TYPO3-shop] Handlescript processing WITHOUT finalize Juan Pablo Villaverde typo3-project-tt-products@lists.netfielders.de 5 19.01.2008 23:58
[TYPO3-shop] handleScript call without finalize Richard Hirner typo3-project-tt-products@lists.netfielders.de 3 17.01.2008 08:25
[TYPO3-shop] Payment handlescript showsBASKET_ORDERCONFIRMATION_TEMPLATE page instead of the desired output Juan Pablo Villaverde typo3-project-tt-products@lists.netfielders.de 5 17.01.2008 08:15
Re: [TYPO3-shop] Error in handlescript payment_dibs.php typo3-project-tt-products@lists.netfielders.de 2 06.12.2006 00:36


Alle Zeitangaben in WEZ +1. Es ist jetzt 22:40 Uhr.


Powered by vBulletin® Version 3.7.4 (Deutsch)
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Template-Modifikationen durch TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77