|
||||||||||||||||||||||||||
Payment - Technical SpecificationsThis page contains information or links to the following:
Overview
Approval decisionIf the transaction is approved then the gateway should be configured to automatically post back to phpyellow so that the customer listing can be updated.Outcome of a declineIf the transaction is declined the reason for the decline should be made clear to the customer. The processing may then [optionally] return to a phpyellow page [example:sorry.php].Data out
Payment scripts on phpyellow make the submission [post] to the gateway containing the
phpyellow and gateway specific data going out. Following is the data
required by phpyellow to be sent out:
* The value for the variable named duration is in months, not days Data out for a specific gatewayThe data out for a specific gateway varies with the gateway. See your gateway implementation guide for details on the data you must send to your gateway. At minimum the gateway will require a total price to be charged, and will also collect contact and other payment information at the gateway.
* the variable called amount is NOT required by phpyellow however amount is normally required by the gateway. Financial transaction data is NOT saved by phpyellow. This data is typically saved on your gateway. Data inThe data sent back in to phpyellow from the gateway must contain the variables called:
Affected files and their functionsFollowing is a list of files used in the payment process and the function the file performs: Files used to send data out
Files used to accept data in
How to add other gatewaysOther gateways will need to have a url to send the transaction to, as well as gateway specific data. Gateway URLThe url to post data to may be one of:
Gateway specific data may include hidden html variables and preprocessed code.
Hidden html variables
Sample form for posting to your gatewayA sample form for posting to your gateway is data_out.php included with every Pro Edition purchase. Generating a unique product id for each listingHow a product_id may be generated - used with 2checkout.com recurring billing - for reference only Rank Position Duration (months) product_id 0 Bronze 3 1 0 Bronze 6 2 0 Bronze 12 3 1 Silver 3 4 1 Silver 6 5 1 Silver 12 6 2 Gold 3 7 2 Gold 6 8 2 Gold 12 9 3 Mini-webpage 3 10 3 Mini-webpage 6 11 3 Mini-webpage 12 12 4 Sponsor 3 13 4 Sponsor 6 14 4 Sponsor 12 15 Preprocessed code or other moduleYour gateway may require additional pre-processing or other code modules. In general, pre-processing should be made by customizing or including other files in buy.php resulting in the final form to post being data_out.phpOffer to connect payment gatewayWe can connect phpYellow Pro EditionTM with your own payment gateway provider. Contact us for details. |
||||||||||||||||||||||||||
|