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. Listing types and setting pricesYou decide the prices to charge for your listings in util.php. Default prices are provided. /* phpYellow Listing Types and Your Pricing Disable Listing Types
Listing types are all available by default. To NOT display a listing type comment out
with 2 forward slashes, like this: Currency Symbol
The currency symbol is the dollar character "$" by default. This may be changed
to your currency character, for example the Euro or pound, by inserting the symbol in util.php
like this:
define("CURRENCYSYMBOL", "$"); // replace the dollar character with your symbol
Set Listing Duration
The default durations are 1 year or 6 months. Support has been discontinued for the 12
individual month long 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 proDuration.php with radio buttons, one selection per month desired, and call the month selected as '$monthsGoodFor' b) include proDuration.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. |