Custom Payment Provider
From Documentation
←Older revision | Newer revision→
Custom payment providers was added in v3.1.1 and allows you to easily add a new payment provider into 68 Classifieds.
This system uses two files to send and process data for the payment provider. The two files are located in includes/payment and they are named customsend.php and customreturn.php
Custom Send
The customsend.php file is used to set up the form to send to the gateway. This is where you would enter any required variables and edit the form post.
Custom Return
The customreturn.php handles the return data from the gateway. All gateways return some variables that you would then use to tell whether the transaction has been approved or declined.
Normally payment providers will send at least three variables back:
- Order ID
- Transaction Number
- Approved or Declined
Using these three variables you can then determine if the payment has been approved and call the updateOrder function which marks the listing as active.