phpyellowtm developer guidePaymentThis page contains information or links to the following:
OverviewYou may offer free listings to every visitor to your directory. Listings may all be free. Listings can also be paid. If you will be receiving payment, you first decide if the payment will be "elective" or "required". Here are directions on how to turn payment logic on or off: Insta-payInsta-PayTM is the internal phpYellow payment switch. It has three modes: off, elective and required.
The administrator may easily change Insta-PayTM mode. Just one word in the configuration file needs to be changed. Look for the CONSTANT called INSTAPAY in the Pro Edition util.php. Modify the value to be 'off', 'elective' or 'required'. Insta-PayTM is available ONLY in the Pro Edition. Setting PricesYou decide the prices to charge for your listings in util.php. Default prices are provided.
/* phpYellow Listing Types and Your Pricing
To NOT display a listing type open util.php and comment out with 2 forward slashes, like this:
// define("LISTING_TYPE_E", "Test"); // for testing only
*/
define("LISTING_TYPE_A", "Sponsor"); // default is to allow Sponsor listings when paid
define("TYPE_A_PRICE", "364.00"); // set your own price
define("LISTING_TYPE_B", "Premium"); // default is to allow Premium listings when paid
define("TYPE_B_PRICE", "149.00"); // set your own price, do NOT use a currency symbol
define("LISTING_TYPE_C", "Featured"); // default is to allow Featured listings when paid
define("TYPE_C_PRICE", "79.00"); // set your own price
/* default is to allow free basic listings,
uncommenting the next 2 lines will require payment for every listing */
//define("LISTING_TYPE_D", "Basic");
//define("TYPE_D_PRICE", "39.00"); // set your own price
//define("LISTING_TYPE_E", "Test"); // for testing only
//define("TYPE_E_PRICE", "FREE"); // for testing only - "00.01"
Set Listing Duration
The default duration is 1 year. Support has been discontinued for the 12 month periods. It is believed that decreasing the number of options improves the checkout because it makes the checkout simpler to understand and quicker to complete. The hope is to induce more listing sales through a simplified checkout process.
1. SET UP THE OPTIONS a) make an html page duration.php with radio buttons, one selection per month desired, and call the month selected as '$monthsGoodFor' b) include duration.php in proCheckout.php, in the 'Listing Type' column 2. PROCESS THE SELECTION c) add your own script code section in proBuy.php to: i) initialize or capture the new $monthsGoodFor variable ii) assign a price for the $monthsGoodFor selected iii) update the $chargeTotal Note: see proBuy.php: switch(item) Payment methodsGiven that you have decided to receive payment, the next decision is what payment methods will you accept? Default payment methods are included. These default methods include:
Each method has a corresponding code module which processes it. If you set aside "Credit Card by Internet" and only consider all the others, you see that the customer must communicate with you to arrange for payment. How to remove payment methodsTo remove methods do this:
Example: to remove 'Credit Card by Internet' delete all of line 9 and next save this file as paymentMethodsList.php. Set a default methodIn the file paymentMethodsList.php move the word "CHECKED" to the html tag you want as the default. Credit Card by Internet
If you have selected payment by Credit Card by Internet then customer payment is handled
differently. You need to have a payment gateway provider for this method. The provider
will approve or decline the transaction. You also need to supply the code to post the transaction
to your provider, and then supply code to respond to the transaction outcome.
Paypal instructionsPaypal is the best and default payment gateway. Click here for instructions on how to use Paypal with phpYellow. Offer to connect payment gatewayIf you do not use Paypal then the folks from phpyellow can connect phpYellow Pro with your own payment gateway provider. Inquire for details. |