[ Index ] |
|
Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1 |
1 <?php 2 /** 3 * ipn_test.php Simulates a visit to paypal for testing purposes 4 * 5 * @package paymentMethod 6 * @copyright Copyright 2003-2005 Zen Cart Development Team 7 * @copyright Portions Copyright 2003 osCommerce 8 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 9 * @version $Id: ipn_test.php 3953 2006-07-13 02:39:37Z drbyte $ 10 */ 11 if (!$_POST) { 12 die('Illegal Access'); 13 } 14 /** 15 * require application_top.php 16 */ 17 require ('includes/application_top.php'); 18 ?> 19 <strong>Paypal Testing System</strong> 20 <br /> 21 Variables passed from ZC checkout<br /><br /> 22 <?php 23 foreach ($_POST as $key=>$value) { 24 if (strpos($key, 'return') !== false || strpos($key, 'notify_url') !== false) { 25 echo '<font size="-1">' . $key . ' = ' . $value . '</font><br />' . "\n"; 26 } 27 } 28 ?> 29 <table width="100%" cellpadding="2" cellspacing="2"> 30 <? 31 $count = 0; 32 echo '<tr>' . "\n"; 33 foreach ($_POST as $key=>$value) { 34 if (strpos($key, 'return') === false && strpos($key, 'notify_url') === false) { 35 echo '<td width="33%"><font size="-1">' . $key . ' = ' . $value . '</font></td>' . "\n"; 36 } 37 $count ++; 38 if ($count == 3) { 39 $count = 0; 40 echo '</tr><tr>' . "\n"; 41 } 42 } 43 echo '</tr>' . "\n"; 44 ?> 45 </table> 46 47 <br /><br /> 48 <form name = "ipn_test_return" method = "post" action = "ipn_test_return.php"> 49 <?php 50 $process_button_string = zen_draw_hidden_field('business', $_POST['business']) . 51 zen_draw_hidden_field('cmd', $_POST['cmd']) . 52 zen_draw_hidden_field('return', $_POST['return']) . 53 zen_draw_hidden_field('cancel_return', $_POST['cancel_return']) . 54 zen_draw_hidden_field('notify_url', $_POST['notify_url']) . 55 zen_draw_hidden_field('rm', $_POST['rm']) . 56 zen_draw_hidden_field('currency_code', $_POST['currency_code']) . 57 zen_draw_hidden_field('bn', $_POST['bn']) . 58 zen_draw_hidden_field('mrb', $_POST['mrb']) . 59 zen_draw_hidden_field('pal', $_POST['pal']) . 60 zen_draw_hidden_field('cbt', $_POST['cbt']) . 61 zen_draw_hidden_field('image_url', $_POST['image_url']) . 62 zen_draw_hidden_field('page_style', $_POST['page_style']) . 63 zen_draw_hidden_field('item_name', $_POST['item_name']) . 64 zen_draw_hidden_field('item_number', $_POST['item_number']) . 65 zen_draw_hidden_field('lc', $_POST['lc']) . 66 zen_draw_hidden_field('amount', $_POST['amount']) . 67 zen_draw_hidden_field('shipping', $_POST['shipping']) . 68 zen_draw_hidden_field('custom', $_POST['custom']) . 69 zen_draw_hidden_field('upload', $_POST['upload']) . 70 zen_draw_hidden_field('redirect_cmd', $_POST['redirect_cmd']) . 71 zen_draw_hidden_field('first_name', $_POST['first_name']) . 72 zen_draw_hidden_field('last_name', $_POST['last_name']) . 73 zen_draw_hidden_field('address1', $_POST['address1']) . 74 zen_draw_hidden_field('city', $_POST['city']) . 75 zen_draw_hidden_field('state',$_POST['state']) . 76 zen_draw_hidden_field('zip', $_POST['zip']) . 77 zen_draw_hidden_field('country', $_POST['country']) . 78 zen_draw_hidden_field('email', $_POST['email']) . 79 zen_draw_hidden_field('night_phone_a',$_POST['night_phone_a']) . 80 zen_draw_hidden_field('night_phone_b',$_POST['night_phone_b']) . 81 zen_draw_hidden_field('night_phone_c',$_POST['night_phone_c']) . 82 zen_draw_hidden_field('day_phone_a',$_POST['day_phone_a']) . 83 zen_draw_hidden_field('day_phone_b',$_POST['day_phone_b']) . 84 zen_draw_hidden_field('day_phone_c',$_POST['day_phone_c']) . 85 zen_draw_hidden_field('paypal_order_id', $_POST['paypal_order_id']) 86 ; 87 echo $process_button_string; 88 ?> 89 <table width="100%"> 90 <tr> 91 <td>Standard Paypal payment<input type = "radio" name = "paypal_type" value="standard" ></td> 92 <td>Payment - with following refund<input type = "radio" name = "paypal_type" value="refund" ></td> 93 <!--<td>eCheck Payment<input type = "radio" name = "paypal_type" value="echeck" ></td> 94 <td>eCheck plus Cleared<input type = "radio" name = "paypal_type" value="echeckcleared" ></td>--> 95 </tr> 96 </table> 97 <br /> 98 <input type="submit" name="submit" value="submit"><input type="submit" name="cancel" value="cancel"> 99 <form>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 16:45:43 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |