WordPress.org

Plugin Directory

Changeset 464581


Ignore:
Timestamp:
11/18/11 09:33:52 (2 years ago)
Author:
ldebrouwer
Message:

Added support for entering an alternate SubID

Location:
ldb-wp-e-commerce-ideal/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ldb-wp-e-commerce-ideal/trunk/ldb-wp-e-commerce-ideal-loader.php

    r384974 r464581  
    55Plugin URI: http://www.lucdebrouwer.nl/wordpress-plugin-ldb-wp-e-commerce-ideal/ 
    66Description: 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: 2.0 
     7Version: 2.0.1 
    88Author: Luc De Brouwer 
    99Author URI: http://www.lucdebrouwer.nl 
  • ldb-wp-e-commerce-ideal/trunk/ldb-wp-e-commerce-ideal.php

    r384974 r464581  
    129129            $phpamount = intval(round($amount*100)); 
    130130            $paymenttype = 'ideal'; 
     131            $subid = 0; 
     132            if( !empty( get_option('ldb_ideal_subid') ) ) { 
     133                $subid = get_option('ldb_ideal_subid'); 
     134            } 
    131135            $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); 
    132136?> 
     
    134138                <form method="post" action="<?php echo get_option('ldb_ideal_url');?>" id="ideal_form" name="ideal_form"> 
    135139                    <input type="hidden" name="merchantID" value="<?php echo get_option('ldb_ideal_id');?>" /> 
    136                     <input type="hidden" name="subID" value="0"> 
     140                    <input type="hidden" name="subID" value="<?php echo $subid; ?>"> 
    137141                    <input type="hidden" name="purchaseID" value="<?php echo $purchase_log[0]['id'];?>" /> 
    138142                    <input type="hidden" name="description" value="Order <?php echo $purchase_log[0]['id'];?>" /> 
     
    171175        if(isset($_POST['ldb_ideal_id'])) { 
    172176            update_option('ldb_ideal_id', $_POST['ldb_ideal_id']); 
     177        } 
     178        if(isset($_POST['ldb_ideal_subid'])) { 
     179            update_option('ldb_ideal_subid', $_POST['ldb_ideal_subid']); 
    173180        } 
    174181        if(isset($_POST['ldb_ideal_pspid_id'])) { 
     
    320327                </tr> 
    321328                <tr> 
     329                    <td style="width:150px !important;"> 
     330                        iDeal SubID <a href="#" title="Your iDeal SubID number, in most cases this should be \'0\'." style="text-decoration: none;">*</a> 
     331                    </td> 
     332                    <td> 
     333                        <input type="text" size="20" value="' . get_option('ldb_ideal_subid') . '" name="ldb_ideal_subid" /> 
     334                    </td> 
     335                </tr> 
     336                <tr> 
    322337                    <td> 
    323338                        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> 
  • ldb-wp-e-commerce-ideal/trunk/readme.txt

    r384974 r464581  
    44Tags: wp e-commerce, e-commerce, webshop, ideal, rabobank, abn amro, ing 
    55Requires at least: 3.0 
    6 Tested up to: 3.2 
    7 Stable tag: 2.0 
     6Tested up to: 3.3 
     7Stable tag: 2.0.1 
    88 
    99LDB WP e-Commerce iDeal allows you to easily add the iDeal payment gateway to WP e-Commerce for several Dutch banks and iDeal integrations. 
     
    3030* 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'. 
    3131* iDeal MerchantID : Your iDeal ID number, also named AcceptantID. 
     32* iDeal SubID : Your iDeal SubID number, in most cases this will be '0'. 
    3233* iDeal PSPID : Your iDeal PSPID, also named AcceptantID. 
    3334* 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) 
     
    5556 
    5657== Changelog == 
     58 
     59= 2.0.1 = 
     60* Added support for entering an alternate SubID. 
    5761 
    5862= 2.0 = 
Note: See TracChangeset for help on using the changeset viewer.