close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

eCart option not showing up in PowerStore

Thread began 11/02/2009 2:51 pm by Erikk D. Lee | Last modified 11/05/2009 5:19 pm by Jason Byrnes | 3367 views | 17 replies |

Erikk D. Lee

eCart option not showing up in PowerStore

I'm following the 'Changing PowerStore's payment Gateway with eCart' PDF and on #3 on page 3 there's a problem.

WA_Store_Cart doesn't show up as an option in the Cart menu dropdown.

EDIT: I got that fixed. Now it's not posting to the confirmation screen with the LinkPoint API installed instead of PayPal.

Sign in to reply to this post

Jason ByrnesWebAssist

The powerstore files must be at the root of your Dreamweaver site to be able to use the extensions such as eCart to make changes.

Sign in to reply to this post

Erikk D. Lee

LinkPoint API Configuration w/PowerStore and eCart

I got that fixed. Now it's not posting to the confirmation screen with the LinkPoint API installed instead of PayPal.

Sign in to reply to this post

Jason ByrnesWebAssist

I dont quite follow, are you getting an error on the confirm page?

Can you explain the problem in a bit more detail so I can get an idea of what is going on.

Sign in to reply to this post

Erikk D. Lee

PowerStore/eCart Error Details

Jason,

Here is the XML error from the 'Full Request' and 'Full Response' code placed on the 'Checkout_failure.php' file.

order><merchantinfo><configfile>removed</configfile><keyfile></keyfile><host>secure.linkpt.net</host><port>1129</port></merchantinfo><orderoptions><ordertype>SALE</ordertype><result>LIVE</result></orderoptions><payment><tax>0</tax><shipping>0</shipping><subtotal>2</subtotal><chargetotal>2.00</chargetotal></payment><billing><name>Erikk Lee</name><address1>212 West Tenth Street</address1><address2>Studio B340</address2><city>Indianapolis</city><state>IN</state><zip>46202</zip><country>US</country><phone>317-289-6609</phone><fax>317-682-9007</fax><email>erikk@thunderlightstudios.com</email></billing><creditcard><cardnumber>4111111111111111</cardnumber><cardexpmonth>12</cardexpmonth><cardexpyear>2012</cardexpyear><cvmvalue>132</cvmvalue></creditcard><shipping><name>Erikk Lee</name><address1>212 West Tenth Street</address1><address2>Studio B340</address2><city>Indianapolis</city><state>IN</state><zip>46202</zip><country>US</country><items>2</items><weight>2</weight><total>2</total></shipping><transactiondetails><taxexempt>N</taxexempt><terminaltype>UNSPECIFIED</terminaltype><oid>gq03naun1lesf4p49dlvr4abo6</oid></transactiondetails><items><item><id>11</id><description>Test</description><price>1</price><quantity>2</quantity><id>11</id><description>Test</description><price>1</price><quantity>2</quantity><id>11</id><description>Test</description><price>1</price><quantity>2</quantity><id>11</id><description>Test</description><price>1</price><quantity>2</quantity></item></items></order>
<h1><img src="Images/icon_whatsNew.png" alt=" " width="32" height="35" align="middle" /> Transaction Not Completed</h1>
<div class="contentBox">
<h2>We're sorry</h2>
<p>Your transaction could not be completed. Either your credit card information or billing address has problems and cannot be processed</p>
<p>Please return to <a href="checkout.php">checkout</a> and try again.</p>
</div>

Also, When we login as administrator and upload an image for a product, it says the image has been uploaded but then won't show on the page and we can't see where the image was uploaded to. It's not showing up in the upload/images dir.

Thanks for your help on this. It's been two weeks and I'm getting serious flack from my client.

Sign in to reply to this post

Jason ByrnesWebAssist

Erikk,

I'm sorry, all i see here is the Request, it doesn't look like the Full response is on the page, this is the information we really need.

I'm going to start a ticket so you a send me you confirm page.


On the failure page, I find it helpful to put descriptive text before the Response and Request bindings to separate them visually.

Sign in to reply to this post

Erikk D. Lee

Full Response doesn't show anything

Jason,

Here is the new XML error code. The Full Response isn't generating anything.

<!-- InstanceBeginEditable name="MainContent" -->
-----------------FULL RESPONSE BELOW-----------------

-----------------FULL REQUEST BELOW-----------------
<order><merchantinfo><configfile>removed</configfile><keyfile></keyfile><host>secure.linkpt.net</host><port>1129</port></merchantinfo><orderoptions><ordertype>SALE</ordertype><result>LIVE</result></orderoptions><payment><tax>0</tax><shipping>0</shipping><subtotal>5</subtotal><chargetotal>5.00</chargetotal></payment><billing><name>Erikk Lee</name><address1>212 West Tenth Street</address1><address2>Studio B340</address2><city>Indianapolis</city><state>IN</state><zip>46202</zip><country>US</country><phone>317-289-6609</phone><fax>317-682-9007</fax><email>erikk@thunderlightstudios.com</email></billing><creditcard><cardnumber>4111111111111111</cardnumber><cardexpmonth>12</cardexpmonth><cardexpyear>2012</cardexpyear><cvmvalue>123</cvmvalue></creditcard><shipping><name>Erikk Lee</name><address1>212 West Tenth Street</address1><address2>Studio B340</address2><city>Indianapolis</city><state>IN</state><zip>46202</zip><country>US</country><items>5</items><weight>5</weight><total>5</total></shipping><transactiondetails><taxexempt>N</taxexempt><terminaltype>UNSPECIFIED</terminaltype><oid>gq03naun1lesf4p49dlvr4abo6</oid></transactiondetails><items><item><id>11</id><description>Test</description><price>1</price><quantity>5</quantity><id>11</id><description>Test</description><price>1</price><quantity>5</quantity><id>11</id><description>Test</description><price>1</price><quantity>5</quantity><id>11</id><description>Test</description><price>1</price><quantity>5</quantity></item></items></order>

<h1><img src="Images/icon_whatsNew.png" alt=" " width="32" height="35" align="middle" /> Transaction Not Completed</h1>
<div class="contentBox">
<h2>We're sorry</h2>
<p>Your transaction could not be completed. Either your credit card information or billing address has problems and cannot be processed</p>
<p>Please return to <a href="checkout.php">checkout</a> and try again.</p>
</div>
<!-- InstanceEndEditable -->

I'm also sending confirm.php as well. Let me know what else I need to get you.

Sign in to reply to this post

Jason ByrnesWebAssist

I the request, I see:
<keyfile></keyfile>

this means the keyfile is not being found.

In the local checkout server behavior it is entered as:
$LinkPointAPI_required[0][$nextIndex] = "merchantinfo->keyfile";
$LinkPointAPI_required[1][$nextIndex] = "".realpath("napem.pem") ."";

This is looking for the napem.pem file in the same folder as the confirm page is uploaded to, does that file exist there or at another location?

Aslo, line 209 - 261:

php:
while ( !$WA_Store_Cart->EOF() )      {

  $nextIndex = count($LinkPointAPI_itemized[0]);
  $LinkPointAPI_itemized[0][$nextIndex] = "id" . strval($cartIndex+1) . "";
  $LinkPointAPI_itemized[1][$nextIndex] = "".$WA_Store_Cart->DisplayInfo("ID")  ."";
  $nextIndex = count($LinkPointAPI_itemized[0]);
  $LinkPointAPI_itemized[0][$nextIndex] = "description" . strval($cartIndex+1) . "";
  $LinkPointAPI_itemized[1][$nextIndex] = "".$WA_Store_Cart->DisplayInfo("Name")  ."";
  $nextIndex = count($LinkPointAPI_itemized[0]);
  $LinkPointAPI_itemized[0][$nextIndex] = "price" . strval($cartIndex+1) . "";
  $LinkPointAPI_itemized[1][$nextIndex] = "".$WA_Store_Cart->DisplayInfo("Price")  ."";
  $nextIndex = count($LinkPointAPI_itemized[0]);
  $LinkPointAPI_itemized[0][$nextIndex] = "quantity" . strval($cartIndex+1) . "";
  $LinkPointAPI_itemized[1][$nextIndex] = "".$WA_Store_Cart->DisplayInfo("Quantity")  ."";
  $nextIndex = count($LinkPointAPI_itemized[0]);
  $LinkPointAPI_itemized[0][$nextIndex] = "id" . strval($cartIndex+1) . "";
  $LinkPointAPI_itemized[1][$nextIndex] = "".$WA_Store_Cart->DisplayInfo("ID")  ."";
  $nextIndex = count($LinkPointAPI_itemized[0]);
  $LinkPointAPI_itemized[0][$nextIndex] = "description" . strval($cartIndex+1) . "";
  $LinkPointAPI_itemized[1][$nextIndex] = "".$WA_Store_Cart->DisplayInfo("Name")  ."";
  $nextIndex = count($LinkPointAPI_itemized[0]);
  $LinkPointAPI_itemized[0][$nextIndex] = "price" . strval($cartIndex+1) . "";
  $LinkPointAPI_itemized[1][$nextIndex] = "".$WA_Store_Cart->DisplayInfo("Price")  ."";
  $nextIndex = count($LinkPointAPI_itemized[0]);
  $LinkPointAPI_itemized[0][$nextIndex] = "quantity" . strval($cartIndex+1) . "";
  $LinkPointAPI_itemized[1][$nextIndex] = "".$WA_Store_Cart->DisplayInfo("Quantity")  ."";
  $nextIndex = count($LinkPointAPI_itemized[0]);
  $LinkPointAPI_itemized[0][$nextIndex] = "id" . strval($cartIndex+1) . "";
  $LinkPointAPI_itemized[1][$nextIndex] = "".$WA_Store_Cart->DisplayInfo("ID")  ."";
  $nextIndex = count($LinkPointAPI_itemized[0]);
  $LinkPointAPI_itemized[0][$nextIndex] = "description" . strval($cartIndex+1) . "";
  $LinkPointAPI_itemized[1][$nextIndex] = "".$WA_Store_Cart->DisplayInfo("Name")  ."";
  $nextIndex = count($LinkPointAPI_itemized[0]);
  $LinkPointAPI_itemized[0][$nextIndex] = "price" . strval($cartIndex+1) . "";
  $LinkPointAPI_itemized[1][$nextIndex] = "".$WA_Store_Cart->DisplayInfo("Price")  ."";
  $nextIndex = count($LinkPointAPI_itemized[0]);
  $LinkPointAPI_itemized[0][$nextIndex] = "quantity" . strval($cartIndex+1) . "";
  $LinkPointAPI_itemized[1][$nextIndex] = "".$WA_Store_Cart->DisplayInfo("Quantity")  ."";
  $nextIndex = count($LinkPointAPI_itemized[0]);
  $LinkPointAPI_itemized[0][$nextIndex] = "id" . strval($cartIndex+1) . "";
  $LinkPointAPI_itemized[1][$nextIndex] = "".$WA_Store_Cart->DisplayInfo("ID")  ."";
  $nextIndex = count($LinkPointAPI_itemized[0]);
  $LinkPointAPI_itemized[0][$nextIndex] = "description" . strval($cartIndex+1) . "";
  $LinkPointAPI_itemized[1][$nextIndex] = "".$WA_Store_Cart->DisplayInfo("Name")  ."";
  $nextIndex = count($LinkPointAPI_itemized[0]);
  $LinkPointAPI_itemized[0][$nextIndex] = "price" . strval($cartIndex+1) . "";
  $LinkPointAPI_itemized[1][$nextIndex] = "".$WA_Store_Cart->DisplayInfo("Price")  ."";
  $nextIndex = count($LinkPointAPI_itemized[0]);
  $LinkPointAPI_itemized[0][$nextIndex] = "quantity" . strval($cartIndex+1) . "";
  $LinkPointAPI_itemized[1][$nextIndex] = "".$WA_Store_Cart->DisplayInfo("Quantity")  ."";

    $WA_Store_Cart->MoveNext();
    $cartIndex ++;
  }



should be:

php:
while ( !$WA_Store_Cart->EOF() )      {

  $nextIndex = count($LinkPointAPI_itemized[0]);
  $LinkPointAPI_itemized[0][$nextIndex] = "id" . strval($cartIndex+1) . "";
  $LinkPointAPI_itemized[1][$nextIndex] = "".$WA_Store_Cart->DisplayInfo("ID")  ."";
  $nextIndex = count($LinkPointAPI_itemized[0]);
  $LinkPointAPI_itemized[0][$nextIndex] = "description" . strval($cartIndex+1) . "";
  $LinkPointAPI_itemized[1][$nextIndex] = "".$WA_Store_Cart->DisplayInfo("Name")  ."";
  $nextIndex = count($LinkPointAPI_itemized[0]);
  $LinkPointAPI_itemized[0][$nextIndex] = "price" . strval($cartIndex+1) . "";
  $LinkPointAPI_itemized[1][$nextIndex] = "".$WA_Store_Cart->DisplayInfo("Price")  ."";
  $nextIndex = count($LinkPointAPI_itemized[0]);
  $LinkPointAPI_itemized[0][$nextIndex] = "quantity" . strval($cartIndex+1) . "";
  $LinkPointAPI_itemized[1][$nextIndex] = "".$WA_Store_Cart->DisplayInfo("Quantity")  ."";
  
    $WA_Store_Cart->MoveNext();
    $cartIndex ++;
  }
Sign in to reply to this post

Erikk D. Lee

Checkout Failure

Jason,

I changed the code and now the pem shows up. It was in the same (root) directory as confirm.php. I removed all of the following:

"".realpath("../napem.pem") ."";

and replaced it with...

"napem.pem";

_______________________________________________________________________

Here is the new XML generated code...

<!-- InstanceBeginEditable name="MainContent" -->
-----------------FULL RESPONSE BELOW-----------------

-----------------FULL REQUEST BELOW-----------------
<order><merchantinfo><configfile>1001216864</configfile><keyfile>napem.pem</keyfile><host>secure.linkpt.net</host><port>1129</port></merchantinfo><orderoptions><ordertype>SALE</ordertype><result>LIVE</result></orderoptions><payment><tax>0</tax><shipping>0</shipping><subtotal>1</subtotal><chargetotal>1.00</chargetotal></payment><billing><name>Erikk Lee</name><address1>212 West Tenth Street</address1><address2>Studio B340</address2><city>Indianapolis</city><state>IN</state><zip>46202</zip><country>US</country><phone>317-289-6609</phone><fax>317-682-9007</fax><email>erikk@thunderlightstudios.com</email></billing><creditcard><cardnumber>4111111111111111</cardnumber><cardexpmonth>12</cardexpmonth><cardexpyear>2012</cardexpyear><cvmvalue>123</cvmvalue></creditcard><shipping><name>Erikk Lee</name><address1>212 West Tenth Street</address1><address2>Studio B340</address2><city>Indianapolis</city><state>IN</state><zip>46202</zip><country>US</country><items>1</items><weight>1</weight><total>1</total></shipping><transactiondetails><taxexempt>N</taxexempt><terminaltype>UNSPECIFIED</terminaltype><oid>gq03naun1lesf4p49dlvr4abo6</oid></transactiondetails><items><item><id>11</id><description>Test</description><price>1</price><quantity>1</quantity></item></items></order>

<h1><img src="Images/icon_whatsNew.png" alt=" " width="32" height="35" align="middle" /> Transaction Not Completed</h1>
<div class="contentBox">
<h2>We're sorry</h2>
<p>Your transaction could not be completed. Either your credit card information or billing address has problems and cannot be processed</p>
<p>Please return to <a href="checkout.php">checkout</a> and try again.</p>
</div>
<!-- InstanceEndEditable -->

I'm also including a ZIP file that includes confirm.php and checkout_failure.php.

Also the upload feature in the Admin section isn't working. It says it uploads the images but nothing shows up on the server. The path is wrong somehow and I can't figure out how to fix it.

Thoughts?

Attached Files
checkout_success.zip
Sign in to reply to this post

Jason ByrnesWebAssist

You need to keep the realpath function though, since they are in the same foldeer, the value should be:

"".realpath("napem.pem") ."";

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...