Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added amount & currency fields for new transaction.

  • Loading branch information...
commit a108dc4af5de03a01620bc0c6cecdd42dda0d612 1 parent d6ed7da
ethem authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  enrol/authorize/enrol.php
View
2  enrol/authorize/enrol.php
@@ -176,6 +176,8 @@ function cc_submit($form, $course)
$order->status = AN_STATUS_NONE; // it will be changed...
$order->timeupdated = 0; // cron changes this.
$order->timecreated = $timenow;
+ $order->amount = $curcost['cost'];
+ $order->currency = $curcost['currency'];
$order->id = insert_record("enrol_authorize", $order);
if (!$order->id) {
$this->email_to_admin("Error while trying to insert new data", $order);
Please sign in to comment.
Something went wrong with that request. Please try again.