2007-04-27 19:44
Anybody helpe to integrate QuickCart with plugnpay.com
» Quick.Cart v1.x 2007-04-28 11:24
Im looking into it soon as they can provide the info password!!
2007-04-30 18:30
I ned. https://www.icommercegateway.com/admin username: pnpdemo2 password: pnpdemo222 my email is: contacto@marceloandrade.com.ar
2007-05-03 02:37
Please NED..helpme with this isue.........thanks
2007-05-03 13:58
Please try this. This goes into your messages file in the same way as PayPal is added in actions_client/orders.php. Obviously change PAYPAL to PLUGNPAY. name="publisher-name" value="pnpdemo2" needs to be changed to your account number when the test is working and you have finished setting up your easycart. The trash@ email address is one they send the return order to which wont go anywhere on the test as you wont be completing the payment. When its working change publisher-email" value= to your email address. Also add the line <input type="hidden" name="cc-email" value="$aData[sEmail]"> if you want an email sent to your customer direct from icommerce/plugnpay <!-- BEGIN PLUGNPAY --> <form name="checkout" method="post" action="http://easycart.plugnpay.com/easycart.cgi"> <input type="hidden" name="publisher-email" value="trash@plugnpay.com"> <input type="hidden" name="publisher-name" value="pnpdemo2"> <input type="hidden" name="card-amount" value="$aList[fSummary]"> <input type="hidden" name="order-id" value="Order ID $config[order_prefix]$iOrder"> <input type="hidden" name="card-allowed" value="Visa,Mastercard,AMEX,Discover"> <input type="hidden" name="shipinfo" value="$aData[fCourierPrice]"> <input type="hidden" name="easycart" value=1> <input type="hidden" name="ec_version" value="2.0"> <input type="text" name="submit" value="click here to pay"> </form> <!-- END PLUGNPAY --> You could try creditcard number Visa 4111 1111 1111 1111 to test as this is a testing card on some sites. Your icommerce testing status is on for "demo2". Please post how you get on and any modifications you have to make.
2007-05-03 14:27
I dont understand where put <!-- BEGIN PLUGNPAY --><!-- END PLUGNPAY --> in orders.php?..where?..
2007-05-03 15:34
Ned... I put in lang/en -------------------- * Messages */$lang['prepaypal'] = 'Thank you. Your order has been saved and we will send you a confirmation email with all the details. <br />You can now pay for your order by <b>PayPal</b> using the button below to make your payment to us.<br />We will dispatch your order as soon as we receive immediate confirmation of your payment from PayPal .'; -------------------- in message.tpl <div id="message"> $lang[prepaypal]<br /> <div id="ok"> <!-- BEGIN PLUGNPAY --> <form name="checkout" method="post" action="http://easycart.plugnpay.com/easycart.cgi">; <input type="hidden" name="publisher-email" value="trash@plugnpay.com"> <input type="hidden" name="publisher-name" value="pnpdemo2"> <input type="hidden" name="card-amount" value="$aList[fSummary]"> <input type="hidden" name="order-id" value="Order ID $config[order_prefix]$iOrder"> <input type="hidden" name="card-allowed" value="Visa,Mastercard,AMEX,Discover"> <input type="hidden" name="shipinfo" value="$aData[fCourierPrice]"> <input type="hidden" name="easycart" value=1> <input type="hidden" name="ec_version" value="2.0"> <input type="text" name="submit" value="click here to pay"> </form> <!-- END PLUGNPAY --> <!-- BEGIN DONE --> <div id="message"> <div id="ok"> $lang[operation_completed]<br /> <a href="?p=$link">« $lang[operation_go_back]</a> </div> </div> <!-- END DONE --> <!-- BEGIN ERROR --> <div id="message"> <div id="error"> $lang[operation_not_completed]<br /> <a href="?p=$link">« $lang[operation_go_back]</a> </div> </div> <!-- END ERROR --> <!-- BEGIN FORM_ERROR --> <div id="message"> <div id="error"> $lang[operation_especify_all_required_fields]<br /> <a href="javascript:history.back();">« $lang[operation_go_back]</a> </div> </div> <!-- END FORM_ERROR --> <!-- BEGIN NOT_EXISTS --> <div id="message"> <div id="error"> $lang[operation_not_found]<br /> <a href="javascript:history.back();">« $lang[operation_go_back]</a> </div> </div> <!-- END NOT_EXISTS --> <!-- BEGIN ORDER_SAVED --> <div id="message"> <div id="ok"> $lang[Order_finished]<br /> <a href="javascript:windowNew( '?p=ordersWindowPrint&iOrder=$iOrder' );">» $lang[Order_print]</a><br /> <a href="?p=">$lang[Homepage]</a> </div> </div> <!-- END ORDER_SAVED --> -------------------- In actions_client/orders.php <?php if( !isset( $_SESSION['iCustomer'] ) ) session_start( ); if( !isset( $_SESSION['iCustomer'] ) ) $_SESSION['iCustomer'] = time( ).rand( 100, 999 ); require_once DIR_CORE.'couriers-'.$config['db_type'].'.php'; require_once DIR_CORE.'couriers.php'; require_once DIR_CORE.'orders-'.$config['db_type'].'.php'; require_once DIR_CORE.'orders.php'; require_once DIR_CORE.'products-'.$config['db_type'].'.php'; require_once DIR_CORE.'products.php'; //--------- Start PayPal Code $aData = throwOrder( $iOrder ); listBasket( $iOrder); $aData['fSummary'] = sprintf( '%01.2f', $aData['fCourierPrice'] + $aList['fSummary'] ); if( $aData['fCourierPrice'] > 0 ){ $content .= $tpl->tbHtml( 'messages.tpl', 'ORDER_PAYPAL' ); } else //-------- End PayPal Code if( $a == 'Basket' ){ if( isset( $sOption ) ){ $iOrder = throwOrderIdTemp( $_SESSION['iCustomer'], 'add' ); if( $sOption == 'add' ){ if( isset( $iProduct ) && is_numeric( $iProduct ) && isset( $iQuantity ) && is_numeric( $iQuantity ) && $iQuantity >= 1 && $iQuantity < 1000 ){ addOrderProduct( $iProduct, $iQuantity, $iOrder ); } // added for not showing basket echo "<script type='text/javascript' language='javascript'> history.go(-1); </script>"; exit; // end // original code header( 'Location: '.$_SERVER['PHP_SELF'].'?p=ordersBasket' ); exit; // original code } elseif( $sOption == 'del' ){ if( isset( $iElement ) && is_numeric( $iElement ) ) delOrderElement( $iOrder, $iElement ); } elseif( $sOption == 'save' ){ if( isset( $_POST['aElements'] ) && is_array( $_POST['aElements'] ) ){ saveOrderProducts( $_POST ); } if( isset( $_POST['sSave'] ) ){ header( 'Location: '.$_SERVER['PHP_SELF'].'?p=ordersDelivery' ); exit; } } } else $iOrder = throwOrderIdTemp( $_SESSION['iCustomer'], null ); if( isset( $iOrder ) && is_numeric( $iOrder ) ) $content .= listBasket( $iOrder ); else $content .= $tpl->tbHtml( 'orders_basket.tpl', 'NOT_FOUND' ); } elseif( $a == 'Delivery' ){ $iOrder = throwOrderIdTemp( $_SESSION['iCustomer'], null ); if( isset( $iOrder ) && is_numeric( $iOrder ) ){ if( isset( $_POST['sOption'] ) && $_POST['sOption'] == 'send' ){ if( checkOrderFields( $_POST ) === true && checkOrderProducts( $iOrder ) === true ){ saveOrder( $iOrder, $_POST ); $content .= $tpl->tbHtml( 'messages.tpl', 'ORDER_SAVED' ); } else $content .= $tpl->tbHtml( 'messages.tpl', 'FORM_ERROR' ); } else{ if( checkOrderProducts( $iOrder ) === true ){ $sCourierSelect = listCouriers( 'couriers_select.tpl' ); $content .= $tpl->tbHtml( 'orders_delivery.tpl', 'FORM' ); $content .= listBasket( $iOrder, 'orders_delivery.tpl' ); $content .= $tpl->tbHtml( 'orders_delivery.tpl', 'COURIER' ); } else $content .= $tpl->tbHtml( 'messages.tpl', 'NOT_EXISTS' ); } } else $content .= $tpl->tbHtml( 'orders_basket.tpl', 'NOT_FOUND' ); } elseif( $a == 'Print' && isset( $iOrder ) && is_numeric( $iOrder ) ){ $aData = throwOrder( $iOrder ); if( isset( $aData ) && is_array( $aData ) && $aData['iClient'] == $_SESSION['iCustomer'] && $aData['iStatus'] > 0 ){ $aData['sComment'] = ereg_replace( '\|n\|', "<br />" , $aData['sComment'] ); $content .= $tpl->tbHtml( 'orders_print.tpl', 'SHOW' ); if( checkOrderProducts( $iOrder ) === true ){ $content .= listBasket( $iOrder, 'orders_print.tpl' ); $aData['fSummary'] = tPrice( $aData['fCourierPrice'] + $aList['fSummary'] ); $content .= $tpl->tbHtml( 'orders_print.tpl', 'COURIER' ); } } else{ $content .= $tpl->tbHtml( 'messages.tpl', 'ERROR' ); } } else $content .= $tpl->tbHtml( 'messages.tpl', 'ERROR' ); ?> --------------------------- BUT DONT WORK....the PLUGPAY dont appear in any page Sure I do anithing wrong I have version 1.4
2007-05-03 17:06
The change in actions_client/orders.php calls the required code block in messages.tpl. So your script doesn't work as you are calling the block "ORDER_PAYPAL" and you need the block PLUGNPAY". You also need the text for payment options within the block being called. Add the section PLUGNPAY anywhere in messages.tpl (the ORDER_PAYPAL section can stay in if you like.) Change the line in actions_client/orders.php from $content .= $tpl->tbHtml( 'messages.tpl', 'ORDER_PAYPAL' ); to $content .= $tpl->tbHtml( 'messages.tpl', 'PLUGNPAY' ); Create another $lang{pre_plugnpay] to get the right message to the customer about paying with icommerce. Then start the section... <!-- BEGIN PLUGNPAY --> <div id="message"> $lang[prepaypal]<br /> <div id="ok"> <form name="checkout" method="post" action="http://easycart.plugnpay.com/easycart.cgi">;; etc.. etc..
2007-05-03 18:46
Ned. Look at www.kardsforkids.com/catalogo/ Make an order...and look When press "» Pay your Order Here!"....there are not ANY FORM.... ------------------------------------------------------ messages.tpl <!-- BEGIN PLUGNPAY --> <link href="../../css/estiloie.css" rel="stylesheet" type="text/css"> <div align="center"><span class="orderPrint_texto"> <div id="message"> $lang[pre_plugnpay]<br /> </span> <div id="ok"> <form> </div> <form name="checkout" method="post" action="http://easycart.plugnpay.com/easycart.cgi"> <p align="center"> <input type="hidden" name="publisher-email" value="trash@plugnpay.com" /> <input type="hidden" name="publisher-name" value="pnpdemo2"> <input type="hidden" name="card-amount" value="$aList[fSummary]"> <input type="hidden" name="order-id" value="Order ID $config[order_prefix]$iOrder"> <input type="hidden" name="card-allowed" value="Visa,Mastercard,AMEX,Discover"> <input type="hidden" name="shipinfo" value="$aData[fCourierPrice]"> <input type="hidden" name="easycart" value=1> <input type="hidden" name="ec_version" value="2.0"> <input type="submit" name="Submit" value="Click to Pay" /> </p> <p align="center"> </p> </form> <div align="center"> <!-- END PLUGNPAY --> <!-- BEGIN DONE --> </div> <div id="message"> <div id="ok"> <div align="center"><span class="orderPrint_texto">$lang[operation_completed]<br /> <a href="?p=$link">« $lang[operation_go_back]</a> </span></div> </div> </div> <div align="center"><span class="orderPrint_texto"> <!-- END DONE --> <!-- BEGIN ERROR --> </span> </div> <div id="message"> <div class="orderPrint_texto" id="error"> <div align="center">$lang[operation_not_completed]<br /> <a href="?p=$link">« $lang[operation_go_back]</a> </div> </div> </div> <div align="center"><span class="orderPrint_texto"> <!-- END ERROR --> <!-- BEGIN FORM_ERROR --> </span> </div> <div id="message"> <div class="orderPrint_texto" id="error"> <div align="center">$lang[operation_especify_all_required_fields]<br /> <a href="javascript:history.back();">« $lang[operation_go_back]</a> </div> </div> </div> <div align="center"><span class="orderPrint_texto"> <!-- END FORM_ERROR --> <!-- BEGIN NOT_EXISTS --> </span> </div> <div id="message"> <div class="orderPrint_texto" id="error"> <div align="center">$lang[operation_not_found]<br /> <a href="javascript:history.back();">« $lang[operation_go_back]</a> </div> </div> </div> <div align="center"><span class="orderPrint_texto"> <!-- END NOT_EXISTS --> <!-- BEGIN ORDER_SAVED --> </span> </div> <div id="message"> <div class="orderPrint_texto" id="ok"> <div align="center">$lang[Order_finished]<br /> <a href="javascript:windowNew( '?p=ordersWindowPrint&iOrder=$iOrder' );">» $lang[Order_print]</a><br /> <a href="?p=">$lang[Homepage]</a> </div> </div> </div> <div align="center"><span class="orderPrint_texto"> <!-- END ORDER_SAVED --> </span></div>
2007-05-03 23:04
ned...could you look at my code. ANd help with my error. The form dont appear...its only a button......i need a form
2007-05-04 16:35
I want to show an FORM ORDER, the user put your credit card number. In this case only show a button. Its possible to put some like this: https://pay1.plugnpay.com/payment/pay.cgi plus the ORDER OF MY CLIEN? Could you see the code i paste upthere?...... In this case there are not appear a form look at: www.kardsforkids.com/catalogo/ (its my catalog) and see that happened. THN yu for assistance....
2007-05-04 17:48
If I go to www.kardsforkids.com/catalogo, all I get is a Netsolutions page?
2007-05-04 18:15
SORRY http://www.kardsforkidz.com/catalogo/
2007-05-04 18:30
Ah! Well you seem to created a nice design. Shame you didn't pay as much attention to the license requirement. Therefore Im not too inclined to continue :-((
2007-05-04 18:39
yes...promise WE WILL INCLUDE THE LICENCE...!!!!!...its a demo now
2007-05-04 19:49
look at...i put powered by QuickCart
2007-05-07 14:27
I NED...could you look at this solution?....this weekend? help me...my client callme about this all day.
2007-05-07 18:38
SOMEONE PLEAS HELP ME WITH THIS INTEGRATION!!!!!....
2007-05-08 13:50
Hi, ned i put a licence powered by...etc. What happened...? you dissapear......... The code dont work.. look at http://www.kardsforkidz.com/catalogo/ there are no FIELDS in 'messages.tpl' i need a FIELDS to complete the user with data of credit card.. and the button "Click to Pay" dont work too.... here is my code: <!-- BEGIN PLUGNPAY --> <div id="message"> $lang[prepaypal]<br /> <div id="ok"> <form name="checkout" method="post" action="http://easycart.plugnpay.com/easycart.cgi"> <input type="hidden" name="publisher-email" value="trash@plugnpay.com"> <input type="hidden" name="publisher-name" value="pnpdemo2"> <input type="hidden" name="card-amount" value="$aList[fSummary]"> <input type="hidden" name="order-id" value="Order ID $config[order_prefix]$iOrder"> <input type="hidden" name="card-allowed" value="Visa,Mastercard,AMEX,Discover"> <input type="hidden" name="shipinfo" value="$aData[fCourierPrice]"> <input type="hidden" name="easycart" value=1> <input type="hidden" name="ec_version" value="2.0"> <input type="text" name="submit" value="click here to pay"> </form> <!-- END PLUGNPAY -->
2007-05-08 16:23
No I havnn't dissapeared. Ive had a normal weekend with my family plus a Monday bank holiday here in the UK which also has a -6 hours time difference to yours. Your client may be pressuring you but this forum provides help on a goodwill basis and Im not being paid by your client. If you use the icommerce gateway username and password you can download all the information you need to work around this. You have two options. 1) The complicated way where you provide the form on your clients website and pass the parameters to icommerce. This has data protection issues for your client You can create extra fields and collect the values in /templates/orders_delivery.tpl and then use messages.tpl to pass those values on to icommerce. 2) The safer way where you pass the basic parameters above to icommerce and they provide you with a form to fill in the rest of the information. If there is no button try substituting any image and using the paypal example to submit the hidden fields when its clicked on.