1
well I have come up with the form code for xpayment, if you post this form to xpayment as exampled::
le="color: #000000"><?php <form action="/2.5.0/modules/xpayment/index.php" method="post"> <!-- This is the header of the invoice --> <input type="hidden" name="op" value="createinvoice"> <input type="hidden" name="drawnfor" value="IP Site"> <input type="hidden" name="drawnto" value="IP Site"> <input type="hidden" name="drawnto_email" value="simon@chronolabs.coop"> <input type="hidden" name="currency" value="AUD"> <input type="hidden" name="key" value="1a79a4d60de6718e8e5b326e338ae533"> <!-- This is the item trail of the invoice --> <!-- Example Item A --> <input type="hidden" name="item[A][cat]" value="EXPITEMA"> <input type="hidden" name="item[A][name]" value="Example Item A"> <input type="hidden" name="item[A][amount]" value="0.02"> <input type="hidden" name="item[A][quantity]" value="2"> <!-- Example Item B --> <input type="hidden" name="item[B][cat]" value="EXPITEMB"> <input type="hidden" name="item[B][name]" value="Example Item B"> <input type="hidden" name="item[B][amount]" value="0.01"> <input type="hidden" name="item[B][quantity]" value="1"> <!-- This is the footer of the invoice --> <input type="hidden" name="return" value="http://127.0.0.1/2.5.0/modules/xpayment/return.php"> <input type="hidden" name="cancel" value="http://127.0.0.1/2.5.0/modules/xpayment/cancel.php"> <input type="hidden" name="ipn" value="http://127.0.0.1/2.5.0/modules/xpayment/ipn.php"> <input type="submit" name='submit' value="Create An Invoice" /> </form>
It will create an invoice.. At least in beyond 1.05 - Until payment gateways are written there is no way currently to process invoices in xpayment 1.05 but you can follow the development
here...