Skip to content

Commit

Permalink
Comment and TODO additions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bèr Kessels committed Jan 11, 2010
1 parent cb12618 commit f3a6cac
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ideal_payment_api.module
Expand Up @@ -10,7 +10,7 @@
*
* Development by Qrios | http://www.qrios.nl | c.kodde {at} qrios {dot} nl
*
*
* @TODO: harmonise the error messages to WATCHDOG and to SET_MESSAGE.
*/

//First load include based on available lib
Expand Down Expand Up @@ -40,6 +40,8 @@ function ideal_payment_api_help($section = '') {
* Implementation of hook_cron().
*/
function ideal_payment_api_cron() {
// @TODO: insert time-based action firing here.
//@TODO: refres-issuers should be called far less often then recheck.
ideal_payment_api_refresh_issuerlist();
ideal_payment_api_auto_recheck();
}
Expand Down Expand Up @@ -189,6 +191,7 @@ function ideal_payment_api_admin_settings() {
* $path_back_error, string, drupal path to redirect to on unsuccesfull payment. Probably the originating product/order form.
* $path_back_succes, string, drupal path to redirect to on succesfull payment. Probably the home page or a "thank you" page.
* All arguments are required
* @TODO: insert a user_id in the order, to allow orders for other $users then global $user (= you)
*/
function ideal_payment_api_payment_page($order_id, $order_desc, $order_total, $path_back_error, $path_back_succes) {
//Check permissions
Expand All @@ -197,7 +200,7 @@ function ideal_payment_api_payment_page($order_id, $order_desc, $order_total, $p
$order = array(
'order_id' => $order_id,
'description' => $order_desc,
'amount' => $order_total * 100, //amount *100
'amount' => $order_total * 100, //amount *100, in cents.
'path_back_error' => $path_back_error,
'path_back_succes' => $path_back_succes,
);
Expand Down

0 comments on commit f3a6cac

Please sign in to comment.