47 Commits

Author SHA1 Message Date
Jun Pataleta
9095bb0ef9 MDL-78000 upgrade: add the 4.2.0 separation line to all upgrade scripts 2023-04-22 23:17:50 +08:00
Eloy Lafuente (stronk7)
061c9d7ba0 MDL-77940 versions: bump all versions and requires near release
version = 2023042400 release version
requires= 2023041800 current rc1 version
2023-04-18 18:08:09 +02:00
Marina Glancy
04f8fdd021 MDL-77164 various: fix javascript AMD module name 2023-04-13 09:43:15 +01:00
Andrew Nicols
511401f4f6 MDL-77559 js: Rebuild all JS with Node 16 2023-03-09 09:53:19 +08:00
Andrew Nicols
33b1e41f13 MDL-75012 js: Full build of all grunt things 2023-03-02 11:55:32 +08:00
Andrew Nicols
a3cc26f8bb MDL-76583 core: Update uses of external_* classes 2023-01-19 07:34:09 +08:00
Jun Pataleta
c6ab792ddf MDL-76497 upgrade: add the 4.1.0 separation line to all upgrade scripts 2022-11-28 14:43:04 +08:00
Jun Pataleta
00bae8b8a4 MDL-76403 versions: bump all versions and requires near release 2022-11-23 09:45:23 +08:00
Eloy Lafuente (stronk7)
76f5445451 MDL-74510 upgrade: add the 4.0.0 separation line to all upgrade scripts 2022-04-22 18:45:10 +02:00
Jun Pataleta
70f6b1605b MDL-74471 versions: bump all versions and requires near release 2022-04-13 10:37:36 +08:00
Andrew Nicols
e1b9d5f3cd MDL-73915 js: Drop support for IE and android
Moodle announced that support for IE would be dropped back in August
2020 with Moodle 3.9 but not active steps were taken at that time. That
decision was made in MDLSITE-6109 and this particular step was meant to
be taken in Moodle 3.10.

This is the first step taken to actively drop support for IE.

This commit also bumps the browser support pattern from 0.25% to 0.3%.
The percentage here includes any browser where at least this percentage
of users worldwide may be using a browser. In this case it causes
support for Android 4.3-4.4 to be dropped, which relate to Android
KitKat (released 2013).

This combination of changes means that all of the supported browsers in
our compatibility list support modern features including async,
for...of, classes, native Promises, and more which has a huge impact on
the ease of debugging code, and drastically reduces the minified file
size because a number of native Polyfills included by Babel are no
longer included.
2022-02-23 08:55:20 +08:00
Andrew Nicols
0a4047ab31 MDL-73915 js: Switch amd minification to terser
Unfortunately the babel minify-mangle plugin seems to be abandoned and
in certain circumstances can be very buggy. The only safe options are to
disable it, or to switch to a different minification library.

Not minifying our javascript is not ideal, so this commit updates the
javascript tasks to use a rollup, combined with babel, and terser.

Babel still converts code from ES/UMD/AMD to AMD modules with the
relevant browser support, whilst terser minifies the code.

The rollup bundler handles tracking and creation of sourcemaps, and
supports better parallelisation of the tasks.

Since the upgrade to Node LTS/Gallium requires an upgrade to @babel/core
and eslint, which change the built files anyway, this seems like the
ideal time to make this change.
2022-02-23 08:55:09 +08:00
Andrew Nicols
aa7f7957ea MDL-73915 js: Upgrade babel and eslint 2022-02-23 08:53:54 +08:00
Andrew Nicols
92179b7057 MDL-71113 js: Fix all jsdoc warnings 2021-06-18 09:38:05 +08:00
David Mudrák
22ecf2f9b8 MDL-71169 external: Do not explicitly specify the default methodname 2021-03-22 15:56:46 +01:00
Sara Arjona
8717e87916 Merge branch 'MDL-70394-master' of git://github.com/rezaies/moodle 2021-01-13 15:31:11 +01:00
Helen Foster
8e080c9703 MDL-70550 lang: Import fixed English strings (en_fix) 2021-01-07 19:35:32 +01:00
Shamim Rezaie
0dc19291b9 MDL-70394 paygw_paypal: Fix the incorrect foreign key 2020-12-17 00:20:59 +11:00
Shamim Rezaie
bbf468099b MDL-70237 payment: Allow html tags in gateway description 2020-11-18 23:22:51 +11:00
Eloy Lafuente (stronk7)
f9faf700aa NOBUG: Fixed file access permissions 2020-10-27 23:47:26 +01:00
Eloy Lafuente (stronk7)
96c572c5f3 NOBUG: Fixed SVG browser compatibility 2020-10-27 23:47:24 +01:00
Shamim Rezaie
ce7c648526 MDL-69166 core_payment: Add privacy implementation 2020-10-27 15:34:56 +11:00
Shamim Rezaie
0ecce652b1 MDL-69166 core_payment: Use promises instead of callbacks 2020-10-27 15:34:56 +11:00
Shamim Rezaie
f5d94d6305 MDL-69166 core_payment: Addressing various integration points
- Add help for 'payment account' field in the enrol instance form
- Remove MOODLE_INTERNALs when not necessary
- Add $userid to deliver_order
- Check if provider classes implement the provider interface
- Rename get_cost to get_payable
- get_payable returns payable object
- Improve registerEventListeners and added init
- Rename payment\provider to payment\service_provider
2020-10-27 15:34:56 +11:00
Shamim Rezaie
d5a9d6e520 MDL-69166 core_payment: Rename componentid to itemid 2020-10-27 15:34:56 +11:00
Shamim Rezaie
2d7feb7583 MDL-69166 core_payment: Renamed plugintype name from pg to paygw 2020-10-27 15:34:55 +11:00
Marina Glancy
9ad96a63a4 MDL-69166 core_payment: addressing integration review 2020-10-27 15:34:55 +11:00
Marina Glancy
71ccaf200d MDL-69166 core_payment: rename some functions 2020-10-27 15:34:55 +11:00
Shamim Rezaie
61766b3d11 MDL-69166 core_payment: Add paymentarea to the payment subsystem 2020-10-27 14:40:49 +11:00
Marina Glancy
1d479dc0cf MDL-69166 core_payment: improvements to api, small fixes 2020-10-27 14:40:49 +11:00
Marina Glancy
6ff3087fe6 MDL-69166 core_payment: add payment accounts 2020-10-27 14:40:49 +11:00
Shamim Rezaie
d5958c420e MDL-69166 pg_paypal: only prevent closing during autorisation 2020-10-27 14:40:49 +11:00
Shamim Rezaie
e3e83185ed MDL-69166 core_payment: payment gateways can have a surcharge 2020-10-27 14:40:47 +11:00
Shamim Rezaie
950e69dd4c MDL-69166 pg_paypal: capture payment directly 2020-10-27 14:37:29 +11:00
Shamim Rezaie
9e6630ab99 MDL-69166 pg_paypal: New helper to get order details from PayPal 2020-10-27 14:37:29 +11:00
Shamim Rezaie
2bb44987a6 MDL-69166 pg_paypal: Support multiple currencies on the same page 2020-10-27 14:37:28 +11:00
Shamim Rezaie
b5507b8685 MDL-69166 core_payment: add a callback for when payment is done 2020-10-27 14:37:28 +11:00
Shamim Rezaie
8726d77517 MDL-69166 pg_paypal: Display PayPal buttons in a modal 2020-10-27 14:37:28 +11:00
Shamim Rezaie
c67e35521a MDL-69166 pg_paypal: handle paypal checkout callbacks 2020-10-27 14:37:28 +11:00
Shamim Rezaie
330f492089 MDL-69166 pg_paypal: Ability to connect to sandbox or live environment 2020-10-27 14:37:28 +11:00
Shamim Rezaie
16099e4038 MDL-69166 pg_paypal: Process after payment 2020-10-27 14:37:28 +11:00
Shamim Rezaie
fc37fb1eb2 MDL-69166 pg_paypal: paypal helper class to work with API 2020-10-27 14:37:28 +11:00
Shamim Rezaie
03f20edbd5 MDL-69166 core_payment: send a purchase description to payment gateways
We truncate description to 127 chars as per PayPal requirement
2020-10-27 14:37:28 +11:00
Shamim Rezaie
7f988ff518 MDL-69166 pg_paypal: render PayPal buttons and set up transaction
We truncate brand_name to 127 chars as per PayPal requirement.
2020-10-27 14:37:25 +11:00
Shamim Rezaie
e75112a886 MDL-69166 pg_paypal: WS and AMD to return some settings to be used in js 2020-10-27 08:37:08 +11:00
Shamim Rezaie
59eaf4b662 MDL-69166 core_payment: display an image for each gateway 2020-10-27 08:37:08 +11:00
Shamim Rezaie
a5d219b811 MDL-69166 pg_paypal: A new payment gateway is born 2020-10-27 08:37:08 +11:00