![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I am getting a Virtual Merchant account and reading their instructions. I know Genesis is another ball of wax when you are adding new pages, etc., and I am not a programmer, just a novice. So can anyone help me figure out how to incorporate this information into my theme? It says I need these three files. Thank you.
1. virtualmerchant.php < ?php $url = "https://www.myvirtualmerchant.com/VirtualMerchant/process.do"; $ch = curl_init(); // initialize curl handle curl_setopt($ch, CURLOPT_URL,$url); // set url to post to curl_setopt($ch,CURLOPT_POST, 1); // set POST method curl_setopt($ch,CURLOPT_POSTFIELDS,"ssl_merchant_I D=xxxxxx&ssl_user_id=xxx&ssl_pin=xxxxxxx &ssl_transaction_type=ccsale&ssl_amount=1.00&ssl_c ustomer_code=1&ssl_salestax=0.00&ssl_receipt _format=html&ssl_show_form=false&ssl_test_mode=fal se&ssl_result_format=html&ssl_error_url=http:/ 2. error.php < ?php $url = "https://www.myvirtualmerchant.com/VirtualMerchant/process.do"; $ch = curl_init(); // initialize curl handle curl_setopt($ch, CURLOPT_URL,$url); // set url to post to curl_setopt($ch,CURLOPT_POST, 1); // set POST method curl_setopt($ch,CURLOPT_POSTFIELDS,"ssl_merchant_I D=xxxxxx&ssl_user_id=xxx&ssl_pin=xxxxxxx &ssl_transaction_type=ccsale&ssl_amount=1.00&ssl_c ustomer_code=1&ssl_salestax=0.00&ssl_receipt _format=html&ssl_show_form=false&ssl_test_mode=fal se&ssl_result_format=html&ssl_error_url=http:/ 3. response.php < ?php $ssl_result=$_GET['ssl_result']; if ($ssl_result == 0 ) { echo "Transaction approved";} else if ($ssl_result==1) { echo "Transaction Declined;} ? > |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Virtual Database Server Recommendations | multifamily | General Discussion | 1 | 02-03-2010 04:31 PM |
| The Virtual Inch - Chrome 2.0 | Carrie | General Discussion | 8 | 02-17-2009 07:30 AM |
| Virtual Private Servers | jerry4u2innola | General Discussion | 3 | 02-16-2009 09:11 AM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us