Changeset 384974
- Timestamp:
- 05/15/2011 12:02:17 PM (15 years ago)
- Location:
- ldb-wp-e-commerce-ideal/trunk
- Files:
-
- 1 added
- 1 deleted
- 4 edited
-
ldb-wp-e-commerce-ideal-loader.php (modified) (1 diff)
-
ldb-wp-e-commerce-ideal.php (modified) (8 diffs)
-
ldb-wp-e-commerce-ideal.pre3.8.php (deleted)
-
readme.txt (modified) (4 diffs)
-
screenshot-1.png (modified) (previous)
-
screenshot-2.png (added)
Legend:
- Unmodified
- Added
- Removed
-
ldb-wp-e-commerce-ideal/trunk/ldb-wp-e-commerce-ideal-loader.php
r330209 r384974 5 5 Plugin URI: http://www.lucdebrouwer.nl/wordpress-plugin-ldb-wp-e-commerce-ideal/ 6 6 Description: LDB WP e-Commerce iDEAL allows you to easily add the iDEAL payment gateway to WP e-Commerce for several Dutch banks and iDEAL integrations. 7 Version: 1.37 Version: 2.0 8 8 Author: Luc De Brouwer 9 9 Author URI: http://www.lucdebrouwer.nl -
ldb-wp-e-commerce-ideal/trunk/ldb-wp-e-commerce-ideal.php
r330203 r384974 2 2 3 3 $nzshpcrt_gateways[$num] = array( 4 'name' => ' iDEAL',4 'name' => 'LDW WP e-Commerce iDeal', 5 5 'api_version' => 2.0, 6 6 'class_name' => 'wpsc_merchant_LDB_iDEAL', 7 7 'has_recurring_billing' => true, 8 'display_name' => 'iD EAL',8 'display_name' => 'iDeal', 9 9 'wp_admin_cannot_cancel' => false, 10 10 'requirements' => array(), … … 27 27 function submit() 28 28 { 29 if (get_option('ldb_ideal_type') == 'normal' || get_option('ldb_ideal_type') == ''){ 30 $this->submitnormal(); 31 } else { 32 $this->submitpspid(); 33 } 34 } 35 36 function submitpspid() { 37 global $wpdb; 38 $this->set_purchase_processed_by_purchid(2); 39 $purchase_log_sql = 'SELECT * FROM ' . WPSC_TABLE_PURCHASE_LOGS . ' WHERE sessionid= "' . $this->cart_data['session_id'] . '" LIMIT 1'; 40 $purchase_log = $wpdb->get_results($purchase_log_sql,ARRAY_A); 41 $amount = nzshpcrt_overall_total_price($_SESSION['delivery_country']); 42 $phpamount = intval(round($amount*100)); 43 44 $idealname = ''; 45 $idealemail = ''; 46 $idealzip = ''; 47 $idealaddress = ''; 48 $idealcountry = ''; 49 $idealcity = ''; 50 $idealphone = ''; 51 52 if($_POST['collected_data'][get_option('ldb_ideal_pspid_first_name')] != ''){ 53 $idealname = $_POST['collected_data'][get_option('ldb_ideal_pspid_first_name')] . ' ' . $_POST['collected_data'][get_option('ldb_ideal_pspid_last_name')]; 54 } 55 56 if($_POST['collected_data'][get_option('ldb_ideal_pspid_email')] != ''){ 57 $idealemail = $_POST['collected_data'][get_option('ldb_ideal_pspid_email')]; 58 } 59 60 if($_POST['collected_data'][get_option('ldb_ideal_pspid_zip')] != ''){ 61 $idealzip = $_POST['collected_data'][get_option('ldb_ideal_pspid_zip')]; 62 } 63 64 if($_POST['collected_data'][get_option('ldb_ideal_pspid_address')] != ''){ 65 $idealaddress = $_POST['collected_data'][get_option('ldb_ideal_pspid_address')]; 66 } 67 68 if($_POST['collected_data'][get_option('ldb_ideal_pspid_country')] != ''){ 69 $idealcountry = $_POST['collected_data'][get_option('ldb_ideal_pspid_country')][0]; 70 } 71 72 if($_POST['collected_data'][get_option('ldb_ideal_pspid_city')] != ''){ 73 $idealcity = $_POST['collected_data'][get_option('ldb_ideal_pspid_city')]; 74 } 75 76 if($_POST['collected_data'][get_option('ldb_ideal_pspid_country')] != ''){ 77 $idealphone = $_POST['collected_data'][get_option('ldb_ideal_pspid_phone')]; 78 } 79 $accepturl = $this->cart_data['transaction_results_url']; 80 if( strpos( $accepturl, '?' ) === false ) { 81 $accepturl.= '?sessionid=' . $this->cart_data['session_id']; 82 } else { 83 $accepturl.= '&sessionid=' . $this->cart_data['session_id']; 84 } 85 86 ?> 87 <body> 88 <form method="post" action="<?php echo get_option('ldb_ideal_pspid_url'); ?>" id="ideal_form" name="ideal_form"> 89 <input type="hidden" NAME="PSPID" value="<?php echo get_option('ldb_ideal_pspid_id'); ?>" /> 90 <input type="hidden" NAME="AMOUNT" value="<?php echo $phpamount; ?>" /> 91 <input type="hidden" NAME="ORDERID" value="<?php echo $purchase_log[0]['id'];?>" /> 92 <input type="hidden" name="CURRENCY" value="<?php echo get_option('ldb_ideal_currency'); ?>" /> 93 <input type="hidden" name="LANGUAGE" value="<?php echo get_option('ldb_ideal_language'); ?>" /> 94 <input type="hidden" name="ACCEPTURL" value="<?php echo $accepturl; ?>"> 95 <input type="hidden" name="CANCELURL" value="<?php echo get_option('shopping_cart_url'); ?>"> 96 <input type="hidden" name="DECLINEURL" value="<?php echo get_option('shopping_cart_url'); ?>"> 97 <input type="hidden" name="EXCEPTIONURL" value="<?php echo get_option('shopping_cart_url'); ?>"> 98 <!--customer information starts--> 99 <input type="hidden" name="CN" value="<?php echo $idealname; ?>"> 100 <input type="hidden" name="EMAIL" value="<?php echo $idealemail; ?>"> 101 <input type="hidden" name="OWNERZIP" value="<?php echo $idealzip; ?>"> 102 <input type="hidden" name="OWNERADDRESS" value="<?php echo $idealaddress; ?>"> 103 <input type="hidden" name="OWNERCTY" value="<?php echo $idealcountry; ?>"> 104 <input type="hidden" name="OWNERTOWN" value="<?php echo $idealcity; ?>"> 105 <input type="hidden" name="OWNERTELNO" value="<?php echo $idealphone; ?>"> 106 <input type="hidden" name="COM" value="Order <?php echo $purchase_log[0]['id']; ?>"> 107 <!--customer information ends--> 108 <input type="hidden" name="PM" value="iDEAL" /> 109 </form> 110 <script type="text/javascript"> 111 document.ideal_form.submit(); 112 </script> 113 </body> 114 <?php 115 die(); 116 exit(); 117 } 118 119 function submitnormal() { 29 120 /* 30 121 Set up the form which transfers the data to iDEAL. 31 122 */ 32 123 global $wpdb; 124 $this->set_purchase_processed_by_purchid(2); 33 125 $purchase_log_sql = 'SELECT * FROM ' . WPSC_TABLE_PURCHASE_LOGS . ' WHERE sessionid=' . $this->cart_data['session_id'] . ' LIMIT 1'; 34 $purchase_log = $wpdb->get_results($purchase_log_sql, ARRAY_A) ;126 $purchase_log = $wpdb->get_results($purchase_log_sql, ARRAY_A); 35 127 $amount = nzshpcrt_overall_total_price($_SESSION['delivery_country']); 36 128 $validUntil = date('Y-m-d\TH:i:s.000\Z', strtotime ('+1 week')); … … 38 130 $paymenttype = 'ideal'; 39 131 $hash = $this->LDB_appendHash(get_option('ldb_ideal_key') . ' - ' . get_option('ldb_ideal_id') . ' - ' . '0' . ' - ' . $phpamount . ' - ' . $purchase_log[0]['id'] . ' - ' . $paymenttype . ' - ' . $validUntil . ' - ' . '1' . ' - ' . 'Total' . ' - ' . '1'. ' - ' . $phpamount); 40 ?>41 <body>42 <form method="post" action="<?php echo get_option('ldb_ideal_url');?>" id="ideal_form" name="ideal_form">43 <input type="hidden" name="merchantID" value="<?php echo get_option('ldb_ideal_id');?>" />44 <input type="hidden" name="subID" value="0">45 <input type="hidden" name="purchaseID" value="<?php echo $purchase_log[0]['id'];?>" />46 <input type="hidden" name="description" value="Order <?php echo $purchase_log[0]['id'];?>" />47 <input type="hidden" name="amount" value="<?php echo $phpamount; ?>" />48 <input type="hidden" name="validUntil" value="<?php echo $validUntil; ?>" />49 <input type="hidden" name="currency" value="<?php echo get_option('ldb_ideal_currency');?>" />50 <input type="hidden" name="language" value="<?php echo get_option('ldb_ideal_language');?>" />51 <input type="hidden" name="urlSuccess" value="<?php echo get_option('ldb_ideal_urlSuccess');?>" />52 <input type="hidden" name="urlCancel" value="<?php echo get_option('ldb_ideal_urlCancel');?>" />53 <input type="hidden" name="urlError" value="<?php echo get_option('ldb_ideal_urlError');?>" />54 <input type="hidden" name="paymentType" value="<?php echo $paymenttype; ?>" />55 <input type="hidden" name="itemNumber1" value="1" />56 <input type="hidden" name="itemDescription1" value="Total" />57 <input type="hidden" name="itemQuantity1" value="1" />58 <input type="hidden" name="itemPrice1" value="<?php echo $phpamount; ?>" />59 <input type="hidden" name="hash" value="<?php echo $hash; ?>" />60 </form>61 <script type="text/javascript">62 document.ideal_form.submit();63 </script>64 </body>65 <?php132 ?> 133 <body> 134 <form method="post" action="<?php echo get_option('ldb_ideal_url');?>" id="ideal_form" name="ideal_form"> 135 <input type="hidden" name="merchantID" value="<?php echo get_option('ldb_ideal_id');?>" /> 136 <input type="hidden" name="subID" value="0"> 137 <input type="hidden" name="purchaseID" value="<?php echo $purchase_log[0]['id'];?>" /> 138 <input type="hidden" name="description" value="Order <?php echo $purchase_log[0]['id'];?>" /> 139 <input type="hidden" name="amount" value="<?php echo $phpamount; ?>" /> 140 <input type="hidden" name="validUntil" value="<?php echo $validUntil; ?>" /> 141 <input type="hidden" name="currency" value="<?php echo get_option('ldb_ideal_currency');?>" /> 142 <input type="hidden" name="language" value="<?php echo get_option('ldb_ideal_language');?>" /> 143 <input type="hidden" name="urlSuccess" value="<?php echo get_option('ldb_ideal_urlSuccess');?>" /> 144 <input type="hidden" name="urlCancel" value="<?php echo get_option('ldb_ideal_urlCancel');?>" /> 145 <input type="hidden" name="urlError" value="<?php echo get_option('ldb_ideal_urlError');?>" /> 146 <input type="hidden" name="paymentType" value="<?php echo $paymenttype; ?>" /> 147 <input type="hidden" name="itemNumber1" value="1" /> 148 <input type="hidden" name="itemDescription1" value="Total" /> 149 <input type="hidden" name="itemQuantity1" value="1" /> 150 <input type="hidden" name="itemPrice1" value="<?php echo $phpamount; ?>" /> 151 <input type="hidden" name="hash" value="<?php echo $hash; ?>" /> 152 </form> 153 <script type="text/javascript"> 154 document.ideal_form.submit(); 155 </script> 156 </body> 157 <?php 66 158 die(); 67 159 exit(); … … 74 166 Save the posted variables 75 167 */ 168 if(isset($_POST['ldb_ideal_type'])) { 169 update_option('ldb_ideal_type', $_POST['ldb_ideal_type']); 170 } 76 171 if(isset($_POST['ldb_ideal_id'])) { 77 172 update_option('ldb_ideal_id', $_POST['ldb_ideal_id']); 78 173 } 174 if(isset($_POST['ldb_ideal_pspid_id'])) { 175 update_option('ldb_ideal_pspid_id', $_POST['ldb_ideal_pspid_id']); 176 } 79 177 if(isset($_POST['ldb_ideal_urlSuccess'])) { 80 178 update_option('ldb_ideal_urlSuccess', $_POST['ldb_ideal_urlSuccess']); … … 89 187 update_option('ldb_ideal_url', $_POST['ldb_ideal_url']); 90 188 } 189 if(isset($_POST['ldb_ideal_pspid_url'])) { 190 update_option('ldb_ideal_pspid_url', $_POST['ldb_ideal_pspid_url']); 191 } 91 192 if(isset($_POST['ldb_ideal_key'])) { 92 193 update_option('ldb_ideal_key', $_POST['ldb_ideal_key']); 194 } 195 if(isset($_POST['ldb_ideal_pspid_first_name'])) { 196 update_option('ldb_ideal_pspid_first_name', $_POST['ldb_ideal_pspid_first_name']); 197 } 198 if(isset($_POST['ldb_ideal_pspid_last_name'])) { 199 update_option('ldb_ideal_pspid_last_name', $_POST['ldb_ideal_pspid_last_name']); 200 } 201 if(isset($_POST['ldb_ideal_pspid_email'])) { 202 update_option('ldb_ideal_pspid_email', $_POST['ldb_ideal_pspid_email']); 203 } 204 if(isset($_POST['ldb_ideal_pspid_address'])) { 205 update_option('ldb_ideal_pspid_address', $_POST['ldb_ideal_pspid_address']); 206 } 207 if(isset($_POST['ldb_ideal_pspid_city'])) { 208 update_option('ldb_ideal_pspid_city', $_POST['ldb_ideal_pspid_city']); 209 } 210 if(isset($_POST['ldb_ideal_pspid_phone'])) { 211 update_option('ldb_ideal_pspid_phone', $_POST['ldb_ideal_pspid_phone']); 212 } 213 if(isset($_POST['ldb_ideal_pspid_zip'])) { 214 update_option('ldb_ideal_pspid_zip', $_POST['ldb_ideal_pspid_zip']); 215 } 216 if(isset($_POST['ldb_ideal_pspid_country'])) { 217 update_option('ldb_ideal_pspid_country', $_POST['ldb_ideal_pspid_country']); 93 218 } 94 219 if(isset($_POST['ldb_ideal_currency'])) { … … 109 234 $language2 = ''; 110 235 $language3 = ''; 236 $type1 = ''; 237 $type2 = ''; 111 238 $currency1 = ''; 112 239 $currency2 = ''; 113 240 $currency3 = ''; 241 $typetablenormal = 'display: none;'; 242 $typetablepspid = 'display: none;'; 114 243 115 244 /* … … 123 252 $language3 = 'selected="selected" '; 124 253 } 254 255 if (get_option('ldb_ideal_type') == 'normal'){ 256 $type1 = 'selected="selected" '; 257 } else if (get_option('ldb_ideal_type') == 'pspid') { 258 $type2 = 'selected="selected" '; 259 } 260 261 if (get_option('ldb_ideal_type') == 'normal' || get_option('ldb_ideal_type') == ''){ 262 $typetablenormal = 'display: block;'; 263 } else { 264 $typetablepspid = 'display: block;'; 265 } 125 266 126 267 if (get_option('ldb_ideal_currency') == 'EUR'){ … … 132 273 } 133 274 275 $pspid_first_name = nzshpcrt_form_field_list( get_option( 'ldb_ideal_pspid_first_name' ) ); 276 $pspid_last_name = nzshpcrt_form_field_list( get_option( 'ldb_ideal_pspid_last_name' ) ); 277 $pspid_email = nzshpcrt_form_field_list( get_option( 'ldb_ideal_pspid_email' ) ); 278 $pspid_address = nzshpcrt_form_field_list( get_option( 'ldb_ideal_pspid_address' ) ); 279 $pspid_zip = nzshpcrt_form_field_list( get_option( 'ldb_ideal_pspid_zip' ) ); 280 $pspid_city = nzshpcrt_form_field_list( get_option( 'ldb_ideal_pspid_city' ) ); 281 $pspid_country = nzshpcrt_form_field_list( get_option( 'ldb_ideal_pspid_country' ) ); 282 $pspid_phone = nzshpcrt_form_field_list( get_option( 'ldb_ideal_pspid_phone' ) ); 283 134 284 /* 135 285 Create the form 136 286 */ 137 287 $output = ' 138 <tr> 139 <td style="width:150px;"> 140 iDEAL MerchantID <a href="#" title="Your iDEAL ID number, also named AcceptantID." style="text-decoration: none;">*</a> 141 </td> 142 <td> 143 <input type="text" size="20" value="' . get_option('ldb_ideal_id') . '" name="ldb_ideal_id" /> 144 </td> 145 </tr> 146 <tr> 147 <td> 148 iDEAL MerchantKey <a href="#" title="Also named Hash Key or \'Geheime sleutel\', generated and defined in \'Configuratie\' in your online iDEAL Dashboard. (Hash Key for testing has to differ from the key used for production)" style="text-decoration: none;">*</a> 149 </td> 150 <td> 151 <input type="text" size="20" value="' . get_option('ldb_ideal_key') . '" name="ldb_ideal_key" /> 152 </td> 153 </tr> 154 <tr> 155 <td> 156 iDEAL URL <a href="#" title="The address of your account\'s iDEAL site. Most banks require a test sequence before going live which can be done through the test URLs." style="text-decoration: none;">*</a> 157 </td> 158 <td> 159 <input type="text" size="20" value="' . get_option('ldb_ideal_url') . '" name="ldb_ideal_url" /> 160 </td> 161 </tr> 162 <tr> 163 <td> 164 iDEAL urlSuccess <a href="#" title="The URL iDEAL should return your customer to after a successful payment, it would be wise to include `?wpsc_ajax_action=empty_cart` at the end of the URL to automatically empty the shopping cart." style="text-decoration: none;">*</a> 165 </td> 166 <td> 167 <input type="text" size="20" value="' . get_option('ldb_ideal_urlSuccess') . '" name="ldb_ideal_urlSuccess" /> 168 </td> 169 </tr> 170 <tr> 171 <td> 172 iDEAL urlCancel <a href="#" title="The URL iDEAL should return your customer to after a cancelled payment." style="text-decoration: none;">*</a> 173 </td> 174 <td> 175 <input type="text" size="20" value="' . get_option('ldb_ideal_urlCancel') . '" name="ldb_ideal_urlCancel" /> 176 </td> 177 </tr> 178 <tr> 179 <td> 180 iDEAL urlError <a href="#" title="The URL iDEAL should return your customer to after a failed payment." style="text-decoration: none;">*</a> 181 </td> 182 <td> 183 <input type="text" size="20" value="' . get_option('ldb_ideal_urlError') . '" name="ldb_ideal_urlError" /> 184 </td> 185 </tr> 186 <tr> 187 <td> 188 iDEAL Currency <a href="#" title="The currency used for your iDEAL transactions." style="text-decoration: none;">*</a> 189 </td> 190 <td> 191 <select value="' . get_option('ldb_ideal_currency') . '" name="ldb_ideal_currency"> 192 <option ' . $currency1 . 'value="EUR">EUR</option> 193 <option ' . $currency2 . 'value="USD">USD</option> 194 <option ' . $currency3 . 'value="GBP">GBP</option> 195 </select> 196 </td> 197 </tr> 198 <tr> 199 <td> 200 iDEAL Language <a href="#" title="The language version of iDEAL your customers should be directed to." style="text-decoration: none;">*</a> 201 </td> 202 <td> 203 <select value="' . get_option('ldb_ideal_language') . '" name="ldb_ideal_language"> 204 <option ' . $language1 . 'value="en_US">English</option> 205 <option ' . $language2 . 'value="nl_NL">Dutch</option> 206 <option ' . $language3 . 'value="fr_FR">Français</option> 207 </select> 208 </td> 209 </tr> 210 <tr> 211 <td colspan="2"> 212 <h2>Message from the developer</h2> 213 <p>I\'ve spend quite some time developing the LDB WP e-Commerce iDEAL plugin and plan to continue doing so. If you use this plugin please <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MYF3W8N6QWXCJ">donate</a> a token of your appreciation!</p><p style="text-align: center;"><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MYF3W8N6QWXCJ"><img src="' . get_bloginfo('url') . '/wp-content/plugins/ldb-wp-e-commerce-ideal/donate.gif" alt="Donate" style="border: 0;" /></a></p> 214 </td> 215 </tr>'; 288 <tr> 289 <td style="width:150px;"> 290 iDeal type <a href="#" title="The type of iDeal connection you are using." style="text-decoration: none;">*</a> 291 </td> 292 <td> 293 <select name="ldb_ideal_type" onchange="javascript:switchType(this.value);"> 294 <option ' . $type1 . 'value="normal">Normal</option> 295 <option ' . $type2 . 'value="pspid">PSPID</option> 296 </select> 297 </td> 298 </tr> 299 </table> 300 <script type="text/javascript"> 301 function switchType(type) { 302 jQuery(".ldb_wp_ideal_table").hide(); 303 jQuery("#" + type).show(); 304 } 305 </script> 306 <style> 307 .ldb_select { 308 width: 198px; 309 } 310 </style> 311 <table id="normal" cellspacing="0" cellpadding="0" class="form-table ldb_wp_ideal_table" style="' . $typetablenormal . '"> 312 <tbody> 313 <tr> 314 <td style="width:150px !important;"> 315 iDeal MerchantID <a href="#" title="Your iDeal ID number, also named AcceptantID." style="text-decoration: none;">*</a> 316 </td> 317 <td> 318 <input type="text" size="20" value="' . get_option('ldb_ideal_id') . '" name="ldb_ideal_id" /> 319 </td> 320 </tr> 321 <tr> 322 <td> 323 iDeal MerchantKey <a href="#" title="Also named Hash Key or \'Geheime sleutel\', generated and defined in \'Configuratie\' in your online iDeal Dashboard. (Hash Key for testing has to differ from the key used for production)" style="text-decoration: none;">*</a> 324 </td> 325 <td> 326 <input type="text" size="20" value="' . get_option('ldb_ideal_key') . '" name="ldb_ideal_key" /> 327 </td> 328 </tr> 329 <tr> 330 <td> 331 iDeal URL <a href="#" title="The address of your account\'s iDEAL site. Most banks require a test sequence before going live which can be done through the test URLs." style="text-decoration: none;">*</a> 332 </td> 333 <td> 334 <input type="text" size="20" value="' . get_option('ldb_ideal_url') . '" name="ldb_ideal_url" /> 335 </td> 336 </tr> 337 <tr> 338 <td> 339 iDeal urlSuccess <a href="#" title="The URL iDeal should return your customer to after a successful payment, it would be wise to include `?wpsc_ajax_action=empty_cart` at the end of the URL to automatically empty the shopping cart." style="text-decoration: none;">*</a> 340 </td> 341 <td> 342 <input type="text" size="20" value="' . get_option('ldb_ideal_urlSuccess') . '" name="ldb_ideal_urlSuccess" /> 343 </td> 344 </tr> 345 <tr> 346 <td> 347 iDeal urlCancel <a href="#" title="The URL iDeal should return your customer to after a cancelled payment." style="text-decoration: none;">*</a> 348 </td> 349 <td> 350 <input type="text" size="20" value="' . get_option('ldb_ideal_urlCancel') . '" name="ldb_ideal_urlCancel" /> 351 </td> 352 </tr> 353 <tr> 354 <td> 355 iDeal urlError <a href="#" title="The URL iDeal should return your customer to after a failed payment." style="text-decoration: none;">*</a> 356 </td> 357 <td> 358 <input type="text" size="20" value="' . get_option('ldb_ideal_urlError') . '" name="ldb_ideal_urlError" /> 359 </td> 360 </tr> 361 </tbody> 362 </table> 363 <table id="pspid" cellspacing="0" cellpadding="0" class="form-table ldb_wp_ideal_table" style="' . $typetablepspid . '"> 364 <tbody> 365 <tr> 366 <td style="width:150px;"> 367 iDeal PSPID <a href="#" title="Your iDeal PSPID." style="text-decoration: none;">*</a> 368 </td> 369 <td> 370 <input type="text" size="20" value="' . get_option('ldb_ideal_pspid_id') . '" name="ldb_ideal_pspid_id" /> 371 </td> 372 </tr> 373 <tr> 374 <td style="width:150px;"> 375 iDeal PSPID URL <a href="#" title="Your iDeal PSPID URL." style="text-decoration: none;">*</a> 376 </td> 377 <td> 378 <input type="text" size="20" value="' . get_option('ldb_ideal_pspid_url') . '" name="ldb_ideal_pspid_url" /> 379 </td> 380 </tr> 381 <tr> 382 <td style="width:150px;"> 383 First name field 384 </td> 385 <td> 386 <select name="ldb_ideal_pspid_first_name" class="ldb_select">' . $pspid_first_name . '</select> 387 </td> 388 </tr> 389 <tr> 390 <td style="width:150px;"> 391 Last name field 392 </td> 393 <td> 394 <select name="ldb_ideal_pspid_last_name" class="ldb_select">' . $pspid_last_name . '</select> 395 </td> 396 </tr> 397 <tr> 398 <td style="width:150px;"> 399 Email address field 400 </td> 401 <td> 402 <select name="ldb_ideal_pspid_email" class="ldb_select">' . $pspid_email . '</select> 403 </td> 404 </tr> 405 <tr> 406 <td style="width:150px;"> 407 Address field 408 </td> 409 <td> 410 <select name="ldb_ideal_pspid_address" class="ldb_select">' . $pspid_address . '</select> 411 </td> 412 </tr> 413 <tr> 414 <td style="width:150px;"> 415 Zip/Postal code field 416 </td> 417 <td> 418 <select name="ldb_ideal_pspid_zip" class="ldb_select">' . $pspid_zip . '</select> 419 </td> 420 </tr> 421 <tr> 422 <td style="width:150px;"> 423 City field 424 </td> 425 <td> 426 <select name="ldb_ideal_pspid_city" class="ldb_select">' . $pspid_city . '</select> 427 </td> 428 </tr> 429 <tr> 430 <td style="width:150px;"> 431 Country field 432 </td> 433 <td> 434 <select name="ldb_ideal_pspid_country" class="ldb_select">' . $pspid_country . '</select> 435 </td> 436 </tr> 437 <tr> 438 <td style="width:150px;"> 439 Phone number field 440 </td> 441 <td> 442 <select name="ldb_ideal_pspid_phone" class="ldb_select">' . $pspid_phone . '</select> 443 </td> 444 </tr> 445 </tbody> 446 </table> 447 <table id="general" cellspacing="0" cellpadding="0" class="form-table"> 448 <tbody> 449 <tr> 450 <td style="width:150px;"> 451 iDeal Currency <a href="#" title="The currency used for your iDeal transactions." style="text-decoration: none;">*</a> 452 </td> 453 <td> 454 <select name="ldb_ideal_currency"> 455 <option ' . $currency1 . 'value="EUR">EUR</option> 456 <option ' . $currency2 . 'value="USD">USD</option> 457 <option ' . $currency3 . 'value="GBP">GBP</option> 458 </select> 459 </td> 460 </tr> 461 <tr> 462 <td> 463 iDeal Language <a href="#" title="The language version of iDeal your customers should be directed to." style="text-decoration: none;">*</a> 464 </td> 465 <td> 466 <select name="ldb_ideal_language"> 467 <option ' . $language1 . 'value="en_US">English</option> 468 <option ' . $language2 . 'value="nl_NL">Dutch</option> 469 <option ' . $language3 . 'value="fr_FR">Français</option> 470 </select> 471 </td> 472 </tr> 473 </tbody> 474 </table> 475 <table cellspacing="0" cellpadding="0"> 476 <tbody> 477 <tr> 478 <td colspan="2"> 479 <h2>Message from the developer</h2> 480 <p>I\'ve spend quite some time developing the LDB WP e-Commerce iDeal plugin and plan to continue doing so. If you use this plugin please <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MYF3W8N6QWXCJ">donate</a> a token of your appreciation!</p><p style="text-align: center;"><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MYF3W8N6QWXCJ"><img src="' . get_bloginfo('url') . '/wp-content/plugins/ldb-wp-e-commerce-ideal/donate.gif" alt="Donate" style="border: 0;" /></a></p> 481 </td> 482 </tr> 483 </tbody>'; 216 484 217 485 return $output; -
ldb-wp-e-commerce-ideal/trunk/readme.txt
r330203 r384974 1 === Plugin Name===1 === LDB WP e-Commerce iDeal === 2 2 Contributors: ldebrouwer 3 3 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MYF3W8N6QWXCJ 4 4 Tags: wp e-commerce, e-commerce, webshop, ideal, rabobank, abn amro, ing 5 Requires at least: 2.86 Tested up to: 3. 0.47 Stable tag: 1.35 Requires at least: 3.0 6 Tested up to: 3.2 7 Stable tag: 2.0 8 8 9 LDB WP e-Commerce iD EAL allows you to easily add the iDEAL payment gateway to WP e-Commerce for several Dutch banks and iDEALintegrations.9 LDB WP e-Commerce iDeal allows you to easily add the iDeal payment gateway to WP e-Commerce for several Dutch banks and iDeal integrations. 10 10 11 11 == Description == 12 12 13 LDB WP e-Commerce iD EAL allows you to easily add the iDEAL payment gateway to WP e-Commerce for several Dutch banks and iDEALintegrations.13 LDB WP e-Commerce iDeal allows you to easily add the iDeal payment gateway to WP e-Commerce for several Dutch banks and iDeal integrations. 14 14 15 15 == Installation == … … 28 28 29 29 * Display Name : Name of the payment method as mentioned on your site. 30 * iDEAL MerchantID : Your iDEAL ID number, also named AcceptantID. 31 * iDEAL MerchantKey : Also named Hash Key or 'Geheime sleutel', generated and defined in 'Configuratie' in your online iDEAL Dashboard. (Hash Key for testing has to differ from the key used for production) 32 * iDEAL URL : The address of your account's iDEAL site. Most banks require a test sequence before going live which can be done through the test URLs. 33 * iDEAL urlSuccess : The URL iDEAL should return your customer to after a successful payment, it would be wise to include `?wpsc_ajax_action=empty_cart` at the end of the URL to automatically empty the shopping cart. 34 * iDEAL urlCancel : The URL iDEAL should return your customer to after a cancelled payment. 35 * iDEAL urlError : The URL iDEAL should return your customer to after a failed payment. 36 * iDEAL Currency : The currency used for your iDEAL transactions. 37 * iDEAL Language : The language version of iDEAL your customers should be directed to. 30 * iDeal type : The type of iDeal integration you're using. Most likely to be 'normal' but if your gateway supplier mentions anything named PSPID just pick 'PSPID'. 31 * iDeal MerchantID : Your iDeal ID number, also named AcceptantID. 32 * iDeal PSPID : Your iDeal PSPID, also named AcceptantID. 33 * iDeal MerchantKey : Also named Hash Key or 'Geheime sleutel', generated and defined in 'Configuratie' in your online iDeal Dashboard. (Hash Key for testing has to differ from the key used for production) 34 * iDeal URL : The address of your account's iDeal site. Most banks require a test sequence before going live which can be done through the test URLs. 35 * iDeal PSPID URL : The address of your account's iDeal site. 36 * iDeal urlSuccess : The URL iDeal should return your customer to after a successful payment, it would be wise to include `?wpsc_ajax_action=empty_cart` at the end of the URL to automatically empty the shopping cart. 37 * iDeal urlCancel : The URL iDeal should return your customer to after a cancelled payment. 38 * iDeal urlError : The URL iDeal should return your customer to after a failed payment. 39 * iDeal Currency : The currency used for your iDeal transactions. 40 * iDeal Language : The language version of iDeal your customers should be directed to. 38 41 39 = List of iD EALURLs =40 Below you will find a list of iD EALURLs for several banks. This list is not complete and any additions to it are greatly appreciated!42 = List of iDeal URLs = 43 Below you will find a list of iDeal URLs for several banks. This list is not complete and any additions to it are greatly appreciated! 41 44 42 45 * Rabobank Test: https://idealtest.rabobank.nl/ideal/mpiPayInitRabo.do … … 44 47 * ING Bank Test: https://idealtest.secure-ing.com/ideal/mpiPayInitIng.do 45 48 * ING Bank Live: https://ideal.secure-ing.com/ideal/mpiPayInitIng.do 49 * ABN Amro Internetkassa : https://internetkassa.abnamro.nl/ncol/prod/orderstandard.asp 46 50 47 51 == Screenshots == 48 52 49 1. The configuration panel in Store > Settings > Payment Options. 53 1. The configuration panel for the 'normal' integration. 54 2. The configuration panel for the 'PSPID' integration. 50 55 51 56 == Changelog == 57 58 = 2.0 = 59 * Added support for the PSPID iDeal integrations ( ABN Amro Internetkassa, ABN Amro iDeal Easy etc. ) 60 * Some code optimizations. 61 * Orders are now set to received when the customer is being forwarded to iDeal. The next major version of this plugin will bring payment verification if the iDeal version of choice supports this. 52 62 53 63 = 1.3 = 54 64 * Added WP e-Commerce 3.8 compatibility 55 65 * Some code optimizations. 56 * Removed the listing for ABN Amro iD EALEasy support since they switched to the PSPID system.66 * Removed the listing for ABN Amro iDeal Easy support since they switched to the PSPID system. 57 67 58 68 = 1.2 = … … 69 79 == Upgrade Notice == 70 80 81 = 2.0 = 82 Please backup your website before updating this plugin. A lot of changes were made. 83 71 84 = 1.3 = 72 85 An additional de-activation and activition may be required if you update to version 1.3 of this plugin before you upgrade to WP e-Commerce 3.8.
Note: See TracChangeset
for help on using the changeset viewer.