Business Database
Home Recent Index Add Login Graph Search  
Search in

Index - Admin - FAQ - Install - Configure - Customize - Payment - Security - Database

Payment

Choose an interface

Application payment configuration may be done at either of 2 interfaces:
  • point and click interface
  • manual code interface - edit util.php

Point and click interface

To make changes to how payment is handled:

login to admin > Setup > Edit Configuration > Payment settings

Choose from:
  • off - no payment is possible
  • elective - the customer decides to upgrade and pay, or not
  • required - immediately takes the customer to the checkout


API

For other payment info see the API.

Detail

Click a link to the following:

Overview

You 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". For directions on how to turn payment logic on or off see admin > Setup > Edit Configuration > Payment settings

Listing types and setting prices

You decide the prices to charge for your listings. Default prices are provided. see improveMyListing.php for detailed listing comparisons
/* phpYellow Listing Types and Your Pricing 

define("LISTING_TYPE_A", "Sponsor"); define("LISTING_TYPE_B", "Gold"); define("LISTING_TYPE_C", "Silver"); define("LISTING_TYPE_D", "Bronze"); define("LISTING_TYPE_E", "Test"); define("LISTING_TYPE_F", "Mini Webpage"); define("TYPE_A_PRICE", "240.00"); define("TYPE_B_PRICE", "180.00"); define("TYPE_C_PRICE", "120.00"); define("TYPE_D_PRICE", "00.00"); define("TYPE_E_PRICE", "00.10"); define("TYPE_F_PRICE", "180.00");

Table of listing types, their default rank and label

For each listing type there is a corresponding signed integer value used by the database. Following are the values assigned:

listing type rank label
LISTING_TYPE_E 2* test
LISTING_TYPE_D 0 bronze
LISTING_TYPE_C 1 silver
LISTING_TYPE_B 2 gold
LISTING_TYPE_F 3 mini webpage
LISTING_TYPE_A 4 sponsor

Disable Listing Types

Listing types are all available by default. When a listing is upgraded to "Silver" the rank of the listing is changed to the value of 1. To NOT display a listing type comment out with 2 forward slashes, like this:

// define("LISTING_TYPE_E", "Test"); // for testing only*

Alternatively use the admin point and click interface here:

admin > Setup > Edit Configuration > Payment settings > Listing types

*Note: you SHOULD disable the test listing type because it allows customers to upgrade without paying.

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.

If you wish to customize the duration offered the process is:


1. SET UP THE OPTIONS
a) modify the html page duration.php with radio buttons, one selection per month desired, 
   and call the month selected as '$monthsGoodFor'
b) include duration.php in checkout.php, for example in the 'Listing Type' column

2. PROCESS THE SELECTION
c) add your own script code section in 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 buy.php: switch($item)

Payment methods

Given 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:


Credit Card by Internet
Paypal
Credit Card by Fax
Credit Card by Phone
Credit Card by Mail
Check by Fax
Check by Mail
Money Order by Mail
Travelers Checks
Wire
Email Invoice to me
US Currency
( via courier or registered mail )


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 methods

To remove methods do this:
  1. open paymentMethodsListAll.php in an html editor
  2. to remove a payment method delete the line it is on
  3. save this modified file as paymentMethodsList.php
  4. paymentMethodsList.php is automatically included in the online form called proCheckout.php

Example: to remove 'Credit Card by Internet' delete all of line 9 and next save this file as paymentMethodsList.php.

Set a default method

In 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.

If you use Paypal default connect code is provided as is. Paypal gateway connection code processes live internet payments and automatically updates the phpYellow listing online, if Paypal is chosen as a payment method. Please note that gateways frequently update their processing and the code provided by phpYellow is freely given on an "as is" basis only.

Paypal instructions

Paypal 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.

Other gateways

You can choose any processor you like. We can write code to connect to your chosen gateway. The code to connect to your chosen gateway will require additional payment not included in a license purchase. Please inquire by sending us the name of the gateway you want to use. We will tell you our price to connect to that gateway. More info: http://www.globalissa.com/showcase.php?n=1&p=12 phpYellow Pro EditionTM can be connected with other gateways such as 2checkout, 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 "talk" 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 Specifications

Click here for information on the data out and data in required by phpYellow.

Offer to connect payment gateway

We can connect phpYellow Pro EditionTM with your own payment gateway provider. Contact us for details.


Index - Admin - FAQ - Install - Configure - Customize - Payment - Security - Database



Powered by phpYellow  
All content Copyright©2024 Russian-American Business. All rights reserved. Terms of Use. Privacy. Documentation. Contact Us.