31,034
edits
Tag: 2017 source edit |
Tag: 2017 source edit |
||
| 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 | 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: | ||
< | <syntaxhighlight lang="PHP"> | ||
header("Location: myexternalpaymenturl?keyforfulltag=$FULLTAG&myotherparameters"); | header("Location: myexternalpaymenturl?keyforfulltag=$FULLTAG&myotherparameters"); | ||
exit; | exit; | ||