StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-21-2011, 01:23 PM
anitac anitac is offline
Registered User
Genesis Member
 
Join Date: Nov 2009
Posts: 952
Default Add Virtual Merchant to Website

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -5. The time now is 11:05 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.