Collecta V2

v2: Sample Code

Sample HTML to send payment to Collecta

<div class="row">
    <div class="col-md-4">
        <h2>Pay</h2>
        <form  method="POST" action="https://app.collecta.com.ng/Pay/Pay/">

            <div class="form-group">
                <label class="control-label">Amount</label>
                <input type="number" min="1000" name="Amount" class="form-control">
                <hr>
            </div>
            <div class="form-group">
                <label class="control-label">Transaction Reference</label>
                <input type="text" name="ref" class="form-control">
            </div>
            <div class="form-group">
                <label class="control-label">Surname</label>
                <input type="text"  name="SurName" class="form-control">
            </div>
            <div class="form-group">
                <label class="control-label">Firstname</label>
                <input type="text" name="FirstName" class="form-control">
            </div>
            <div class="form-group">
                <label class="control-label">Othernames</label>
                <input type="text" name="OtherNames" class="form-control">
            </div>

            <div class="form-group">
                <label class="control-label">Email</label>
                <input type="email" name="EmailAddress" class="form-control">
            </div>
            <div class="form-group">
                <label class="control-label">Phone</label>
                <input type="tel"  name="PhoneNumber" class="form-control">
            </div>
            <div class="form-group">
                <hr/>
                <small>This is for demo purposes only, MerchantID, Secret Key and Hash should not be visible to users</small>
            </div>
            <div class="form-group">
                <label class="control-label">Merchant ID</label>
                <input type="text"  name="MerchantId" class="form-control">
            </div>
            <div class="form-group">
                <label class="control-label">Hash <br/> <small>SHA256 of amount+apikey+secretkey</small></label>
                <input type="text"  name="hash" class="form-control" >
            </div>
            <input type="hidden" id="Validity" name="Validity" value="432000">
            <input type="hidden" id="TransType" name="TransType" value="Fees Payment">
            <div class="form-group">
                <button type="submit">Pay now</button>
            </div>
        </form>
    </div>

</div>

Last updated