This document will show you how to collect payments from your customers using PayChangu in a HTML file

Integrating Website Payment

Receiving money on your website is now easy. All you need to do is copy the html form code below to your website page

<form method="POST" action="https://api.paychangu.com/ext_transfer" >
    <input type="hidden" name="public_key" value="{public_key}" />
    <input type="hidden" name="callback_url" value="https://example.com/callbackurl" />
    <input type="hidden" name="return_url" value="https://example.com/returnurl" />
    <input type="hidden" name="tx_ref" value="2346vrcd" />
    <input type="hidden" name="amount" value="100" />
    <input type="hidden" name="currency" value="MWK" />
    <input type="hidden" name="email" value="[email protected]" />
    <input type="hidden" name="first_name" value="John" />
    <input type="hidden" name="last_name" value="Doe" />
    <input type="hidden" name="title" value="Test Payment" />
    <input type="hidden" name="description" value="Payment Description" />
    <input type="hidden" name="logo" value="https://example.com/logo.png" />
    <input type="hidden" name="meta" value="" />
    <input type="submit" value="submit" />
</form>

Then you can go ahead with Transaction verification