I need a shoppingcart integration php script made for 2 files, [url removed, login to view] and [url removed, login to view]
I don't think this will cost more than $50 to do...
Below is the: (step1, the form is already made in control center; step2, is what you need to make) I have paypal and 2CO php example files if needed.
Third Party Payment Gateway Integeration Manual
Now Any payment gateway can be integrated. For that you have to add the payment gateway to site. Its just simple to fill the form and provide some essential data to integrate any payment gateway.
Payment Gateway Name: Name of the Payment Gateway that you want to integrate with the site. This name is also used to display the payment gateway name on the submit button if the payment gateway image is not added.
Description: Here you can give the brief information about the payment gateway.
URL to your third party script: This is the URL of your php file that will handle the payment gateway code and send the date to the payment gateway.
For example: you want to integrate the payment gateway “Paypal”. Then first create the paypal folder and then add a php page to call the “Paypal form and send data to the paypal. Lets say you have created the [url removed, login to view] file. Our System will send the all-necessary data to this page. Here you can get the necessary data to manipulate the form and send it to the payment gateway. So you will have to enter the full URL of your php script. Like [url removed, login to view] .
Method to call page: This method will be used to submit all necessary data to you php script page.
For example: if you select the Get method then the data will be send through the get method to your php script and you can get all the data using $_GET in your php script.
if you select the POST method then the data will be send through the get method to your php script and you can get all the data using $_POST in your php script.
Payment Button: Here you can add the payment gateway button that will be visible on the front end where ever you want the payment gateway to be appearing.
How the System Works?
Step1: To integrate the third party payment gateway yow will have to add the payment gateway using the above form. After successful addition of payment gateway you will have to make that active to display on the site.
Setp2: you will have to create a php script to process the data sent from the site to you script and send that data to the payment gateway. It would be better to create folder with your payment gateway name without space and then create a [url removed, login to view] file to process the data retrieved from the site.
The List of variable that you will get from the site are given below.
amount : the total amount that will be charged.
member_id : the unique member_id.
currency : Currency type
description : the payment descript that will be displayed on payment gateway.
hash_id : The Unique hash id that is used for internal processing
frequency : you can use this variable in recurring payment to set frequency of recurring payment.
lifecycle : you can use this variable in recurring payment to set lifecycle of recurring payment.
trial_amount : This is optional variable. You can use this variable in recurring payment to set trial amount of recurring payment.
trial_period : This is optional variable. You can use this variable in recurring payment to set trial period of recurring payment.
trial_period_unit : This is optional variable. You can use this variable in recurring payment to set trial period Unit of recurring payment. The trial period unit are
D = Days
W = Week
M = Month
Y = Year
num_recur-> This is optional variable. You can use this variable in recurring payment to limit the number of recurring payment.
Note:-Create a [url removed, login to view] page to check all processing after the payment. Here you can check for the payment that whether the payment is successful or not. Once the payment get successful please return all the data sent from the payment gateway as an IPN data with the upper variables and pay_success=true and some more variables to the given url.
[url removed, login to view]
Variables to be returned with the IPN data.
Note: All variables are case sensitive.
pay_mode : It will be the name of your payment gateway.
mode : mode decides that whether you are sending data to process for member registration or shopping cart products.;
amount : The total amount paid.
txn_id : The transaction id sent from payment gateway on successful payment.