Line 80:
Line 80:
For all of this, you must implement the hook '''doPayment''' in the context 'newpayment'.
For all of this, you must implement the hook '''doPayment''' in the context 'newpayment'.
−
If you need to embed you own form, the content must returned by the hook it into this->resPrint.
+
If you need to embed you own form, the content must returned by the hook, for example:
+
<syntaxhighlight>
+
this->resPrint = "<script>my javascript</script><form><input type="text" name="credit card num"></form>";
+
</syntaxhighlight lang="php">
If you need to make a redirect to an external page, do it into this hook with:
If you need to make a redirect to an external page, do it into this hook with:
−
<syntaxhighligh lang="php">
+
<syntaxhighlight lang="php">
header("Location: myexternalpaymenturl?keyforfulltag=$FULLTAG&myotherparameters");
header("Location: myexternalpaymenturl?keyforfulltag=$FULLTAG&myotherparameters");
exit;
exit;