PayHere Live Examples

Skip to end of metadata
Go to start of metadata

Pay Here Examples

Contents
To run a simulated sale, use the following information:
  • Card Number: 4012301230123010
  • Expiration: 1216
  • CVV: 123
  • Address & Zip: Any
  • Amount: $1.00 or higher

These tests are not live, and will not produce a valid authorization

When using an example on your own website, be sure to modify the hidden form elements with valid URLs and profile information.

Buy Now Button

This example uses basic HTML only.
It is intended for an extremely small site with few products.
Unless additional fields are exposed, vital customer information is not collected.

Live Example
Buy Now Button Example HTML




Fees Example

This example also uses only HTML.
The transaction_amount is exposed to allow the 'tenant' to enter the amount they wish to pay.
Similarly, the invoice_number is exposed, and labeled as 'tenant name' to identify who is paying (invoice_number populates in all reporting).

Live Example
Rent Due
Tenant Name
Fees Example HTML




Donation Example with Javascript

The Javascript in this example is used to:

  • Require each field in the billing information section
  • Verify formatting is proper for certain fields (no letters, etc in custom amount field)
  • In this example, the invoice number is populated with the customer email address. The client_reference_number is populated with the rest of the information. Javascript is used to concatenate the fields.
  • If there are no errors, disable the submit button and proceed.
Live Example
Billing Information
* Name:
* Address:
* City:
* State:
* Email Address:
* Phone Number:
Gift Information
* Select Gift Amount: $20.00
$35.00
$50.00
$100.00
$500.00
$
* Required Fields
Donation Example HTML + Javascript
Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.