File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -86,12 +86,24 @@ function random_str(
86
86
$ request ->setIpAddress ($ USER ->lastip );
87
87
$ request ->setPrice ($ cost );
88
88
$ request ->setCurrency (\weepay \Model \Currency::TL );
89
- $ request ->setLocale (\weepay \Model \Locale::TR );
90
89
$ request ->setDescription ('Moodle WeePay Payment Solution ' );
91
90
//$request->setCallBackUrl($CFG->wwwroot . "/enrol/weepaypayment/callback.php");
92
91
$ request ->setCallBackUrl ($ CFG ->wwwroot . "/enrol/weepaypayment/callback.php?oid= " .$ OrderID . "- " . $ USER ->id . "- " . $ course ->id . "- " . $ instance ->id );
93
92
$ request ->setPaymentGroup (\weepay \Model \PaymentGroup::PRODUCT );
94
93
$ request ->setPaymentChannel (\weepay \Model \PaymentChannel::WEB );
94
+ // Payment Language Selector
95
+ if ($ USER ->lang =='en ' )
96
+ {
97
+ $ request ->setLocale (\weepay \Model \Locale::EN );
98
+ }
99
+ else if ($ USER ->lang =='tr ' )
100
+ {
101
+ $ request ->setLocale (\weepay \Model \Locale::TR );
102
+ }
103
+ else // Otherwise Turkish
104
+ {
105
+ $ request ->setLocale (\weepay \Model \Locale::TR );
106
+ }
95
107
96
108
//Customer
97
109
$ customer = new \weepay \Model \Customer ();
@@ -138,7 +150,7 @@ function random_str(
138
150
139
151
$ checkoutFormInitialize = \weepay \Model \CheckoutFormInitialize::create ($ request , $ options );
140
152
141
- echo "<div id='weePay-checkout-form' class='responsive'> " ;
153
+ echo "<div id='weePay-checkout-form' class='responsive col-lg-6 col-md-12 col-sm-12' style='float:none; margin:auto; '> " ;
142
154
143
155
if ($ checkoutFormInitialize ->getStatus () == 'success ' ) {
144
156
You can’t perform that action at this time.
0 commit comments