User Guide
Installation & Setup 139
AShop Software © Copyright 2002 - 2010
· gatewayssek - Swedish Krona
· gatewayssgd - Singapore Dollar
· gatewaystec - Traffic Exchange Credits
For each currency there is a set of payment gateway (.gw) files. Each payment gateway file is named
with an abbreviation for the payment service that it is configured to work with.
Payment Gateway Module Variables
$gatewayname = the name of the payment processor as it will appear in the AShop administration panel
$paymenturl = the URL to which AShop should post order information.
For gateways that require the merchant to collect credit card information on the merchant's site the
function process_payment is used instead and this URL should be set to the orderform.php script that is
included with AShop.
$postbackurl = the URL to the AShop order.php script which will receive the postback of order
information from the payment gateway and then process the order.
$visibleorderprocessing = should be set to TRUE or FALSE.
If it is set to TRUE then the order.php script will process the order directly in the customer's web browser
and then show the thank you text if the order was processed successfully. If it is set to FALSE then the
order.php script will be called through server to server communication with the gateway to process the
order and the thank you text will be shown to the customer regardless of the result of the order
processing.
$resultpagessl = should be set to TRUE or FALSE.
If it is set to true then the order.php script will produce an SSL adapted version of the thank you page.
This is used by some gateways that fetch the thank you page from their own URL instead of redirecting
the customer back to the merchant's site.
$sendpayoptionid = should be set to TRUE or FALSE.
Payment gateways that require the merchant to collect credit card information on the merchant's site
should set this to TRUE. All other gateways should set this to FALSE.
$noquerystring = should be set to TRUE or FALSE.
This was added to fix a problem with some payment gateways that check the referring URL and need an
exact match, with the exact same query string. Setting this to TRUE will simply remove the query string
from the AShop script that sends the order information to the payment gateway.