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 Table of listing types, their default rank and labelFor each listing type there is a corresponding signed integer value used by the database. Following are the values assigned:
Disable Listing Types
Listing types are all available by default. To NOT display a listing type comment out
with 2 forward slashes, like this: Example: when a listing is upgraded to "Silver" the rank of the listing is automatically changed to the value of 1. 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, 6 months and 3 months.
1. SET UP THE OPTIONS a) modify the html page proDuration.php with radio buttons, one selection per month desired, and call the month selected as '$monthsGoodFor' b) include proDuration.php in pro_checkout.php, in the 'Listing Type' column 2. PROCESS THE SELECTION c) add your own script code section in pro_buy.php to: i) initialize or capture the new $monthsGoodFor variable ii) assign a price for the $monthsGoodFor selected iii) update the $chargeTotal Note: see pro_buy.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 gateway integration code is included FREE (as is) with every Pro Edition. When customers choose the payment method called "Paypal" their listing purchase is handled by Paypal (an Ebay company). Click here for instructions on how to use Paypal with phpYellow. 2checkout.com instructions2checkout.com gateway integration code is included FREE (as is) with every Pro Edition. When customers choose the payment method called "Credit Card by Internet" their listing purchase is handled by 2checkout.com. Click here for instructions on how to use 2checkout.com with phpYellow. Other gatewaysphpYellowTM Pro Edition can be connected with other gateways such as Authorizenet, Linkpoint International or others. To connect with other gateways you will need to provide code which is not included. The code - also called a script - needs to "talks" with your specific payment gateway. Your gateway may or may not need to have custom made code to complete a payment transaction. Data out and in - Technical SpecificationsClick here for information on the data out and data in required by phpYellow. Offer to connect payment gatewayWe can connect phpYellowTM Pro Edition with your own payment gateway provider. Contact us for details. |