File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 50
50
51
51
// Purchase page.
52
52
$ string ['purchasepagetitle ' ] = 'Purchase course ' ;
53
- $ string ['purchasepagecourse ' ] = 'You are buying the course: "{$a->name}" for $ {$a->cost}. ' ;
53
+ $ string ['purchasepagecourse ' ] = 'You are buying the course: "{$a->name}" for {$a->cost} {$a->currency }. ' ;
54
54
55
55
// Errors.
56
56
$ string ['errorcoursecost ' ] = 'Please insert a valid number. ' ;
Original file line number Diff line number Diff line change 56
56
$ courseinfo ->name = format_string ($ course ->fullname , true , array ('context ' => $ context ));
57
57
$ record = $ DB ->get_record ('tool_paymentplugin_course ' , ['courseid ' => $ courseid ]);
58
58
$ courseinfo ->cost = $ record ->cost ;
59
+ $ courseinfo ->currency = strtoupper (get_config ('tool_paymentplugin ' , 'currency ' ));
59
60
echo get_string ('purchasepagecourse ' , 'tool_paymentplugin ' , $ courseinfo );
60
61
61
62
// Display Payment Gateway Form.
62
63
if (count (paymentgateway::get_all_enabled_gateway_objects ()) != 0 ) {
63
64
$ paymentform = new tool_paymentplugin \form \purchase (new moodle_url (
64
- '/admin/tool/paymentplugin/test_paypal_sdk .php ' ,
65
+ '/admin/tool/paymentplugin/purchase .php ' ,
65
66
array ('id ' => $ courseid )), array ('id ' => $ courseid ));
66
67
$ paymentform ->display ();
67
68
} else {
You can’t perform that action at this time.
0 commit comments