Eloy Lafuente (stronk7)
035f282739
MDL-73278 phpunit: Add missing payment subsystem and fix dataprovider
...
While testing the changed unit tests one by one, the
payment/tests/helper_test.php was failing because of a mismatch
between the dataProvider data and the param type.
That made me think why that error was not popping in complete runs
and the answer is that the new (3.10) subsystem is not in the
phpunit.xml.dist file.
Hence, adding it and fixing the dataProvider mismatch.
Finally, it has been detected that some old ICU versions (< 62)
have an incorrect behaviour, not adding the required non-breaking
white-space between the currency abbreviation and the value. So
we are skipping some payment tests if that's found.
2021-12-09 10:39:37 +01:00
Andrew Nicols
e5454f31ab
MDL-71113 js: Fix all jsdoc warnings
2021-06-18 09:38:05 +08:00
Andrew Nicols
4c826a2d4c
MDL-71113 js: Bare minimum fixes to build jsdoc
2021-06-18 09:38:04 +08:00
Sara Arjona
9ca6f8199e
Merge branch 'MDL-70394-310' of git://github.com/rezaies/moodle into MOODLE_310_STABLE
2021-01-13 15:31:26 +01:00
Helen Foster
992d1b29b4
MDL-70550 lang: Import fixed English strings (en_fix)
2021-01-08 09:11:38 +01:00
Shamim Rezaie
2e1b2cf30e
MDL-70394 paygw_paypal: Fix the incorrect foreign key
2020-12-17 00:26:48 +11:00
Shamim Rezaie
ec6720a836
MDL-70459 core_payment: use array_merge to merge currencies
2020-12-16 22:30:52 +11:00
Shamim Rezaie
a9b83b3c01
MDL-70237 payment: Allow html tags in gateway description
2020-11-18 23:25:06 +11:00
Eloy Lafuente (stronk7)
b0a1b4ce8b
MDL-70089 versions: bump all versions and requires near release
...
version = 2020110900 release version
requires= 2020110300 current beta+ (week6roll1) version
Note that, because we are under parallel development period,
this is being done in the branch that is going to be released
(MOODLE_310_STABLE already existing) for Moodle 3.10.0 and
not in master, that is the one getting the bump under normal
(non-parallel) periods.
2020-11-03 19:34:52 +01:00
Eloy Lafuente (stronk7)
8aacc3fa2b
NOBUG: Fixed file access permissions
2020-10-27 23:48:45 +01:00
Eloy Lafuente (stronk7)
0715960dd8
NOBUG: Fixed SVG browser compatibility
2020-10-27 23:48:43 +01:00
Shamim Rezaie
25cf4fa5ca
MDL-69166 core_payment: Add privacy implementation
2020-10-27 15:45:25 +11:00
Shamim Rezaie
0fb7847e09
MDL-69166 core_payment: Use promises instead of callbacks
2020-10-27 15:45:25 +11:00
Shamim Rezaie
b63f17b5f1
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:45:25 +11:00
Shamim Rezaie
52305c9a2e
MDL-69166 core_payment: Rename componentid to itemid
2020-10-27 15:45:25 +11:00
Shamim Rezaie
6b3d163a56
MDL-69166 core_payment: Renamed plugintype name from pg to paygw
2020-10-27 15:45:23 +11:00
Marina Glancy
efc576fc5c
MDL-69166 core_payment: addressing integration review
2020-10-27 15:45:00 +11:00
Marina Glancy
90fbc58de6
MDL-69166 core_payment: rename some functions
2020-10-27 15:45:00 +11:00
Shamim Rezaie
7d10f35278
MDL-69166 core_payment: Add paymentarea to the payment subsystem
2020-10-27 15:45:00 +11:00
Marina Glancy
9476b48942
MDL-69166 core_payment: archiving accounts, triggering events, tests
2020-10-27 15:45:00 +11:00
Shamim Rezaie
7e11261633
MDL-69166 core_payment: Show cost on the modal when no gateway is chosen
2020-10-27 15:45:00 +11:00
Marina Glancy
15a4e4c87c
MDL-69166 core_payment: improvements to api, small fixes
2020-10-27 15:45:00 +11:00
Marina Glancy
895f38cc76
MDL-69166 core_payment: add payment accounts
2020-10-27 15:45:00 +11:00
Shamim Rezaie
0cf4bb2afc
MDL-69166 pg_paypal: only prevent closing during autorisation
2020-10-27 15:44:59 +11:00
Shamim Rezaie
58a89a46e4
MDL-69166 core-payment: Autoselect gateway when there is only one
2020-10-27 15:44:59 +11:00
Shamim Rezaie
1882bb4792
MDL-69166 core_payment: payment gateways can have a surcharge
2020-10-27 15:44:59 +11:00
Shamim Rezaie
bb7d679395
MDL-69166 core_payment: show cost on the modal
2020-10-27 15:44:59 +11:00
Shamim Rezaie
048a652106
MDL-69166 pg_paypal: capture payment directly
2020-10-27 15:44:59 +11:00
Shamim Rezaie
23e24a504e
MDL-69166 pg_paypal: New helper to get order details from PayPal
2020-10-27 15:44:59 +11:00
Shamim Rezaie
dc976fba1e
MDL-69166 core_payment: ES6-ifying modal_gateways
2020-10-27 15:44:59 +11:00
Shamim Rezaie
e2faf67247
MDL-69166 core_payment: Use a custom modal type for gateway selector
2020-10-27 15:44:59 +11:00
Shamim Rezaie
b97899634c
MDL-69166 pg_paypal: Support multiple currencies on the same page
2020-10-27 15:44:59 +11:00
Shamim Rezaie
2427b92114
MDL-69166 enrol_fee: use template for payment btn & properly format cost
2020-10-27 15:44:59 +11:00
Shamim Rezaie
34770016ee
MDL-69166 core_payment: es6-ify
2020-10-27 15:44:59 +11:00
Shamim Rezaie
d00c00dd4f
MDL-69166 core_payment: add a callback for when payment is done
2020-10-27 15:44:59 +11:00
Shamim Rezaie
ed1cc02522
MDL-69166 pg_paypal: Display PayPal buttons in a modal
2020-10-27 15:44:59 +11:00
Shamim Rezaie
e1151bf6f5
MDL-69166 pg_paypal: handle paypal checkout callbacks
2020-10-27 15:44:59 +11:00
Shamim Rezaie
bbb887f6ae
MDL-69166 pg_paypal: Ability to connect to sandbox or live environment
2020-10-27 15:44:59 +11:00
Shamim Rezaie
4403b8f60d
MDL-69166 pg_paypal: Process after payment
2020-10-27 15:44:59 +11:00
Shamim Rezaie
3c3b43a58c
MDL-69166 core_payment: Save general payment information
2020-10-27 15:44:59 +11:00
Shamim Rezaie
04e2dc7c3b
MDL-69166 pg_paypal: paypal helper class to work with API
2020-10-27 15:44:59 +11:00
Shamim Rezaie
5337ca485c
MDL-69166 core_payment: helper methods to get cost and to deliver order
...
Also create the infrastructure to let components know when they have to
deliver what they sold. We are going to use namespace functions instead
of traditional callbacks.
2020-10-27 15:44:59 +11:00
Shamim Rezaie
ab6ca27571
MDL-69166 core_payment: send a purchase description to payment gateways
...
We truncate description to 127 chars as per PayPal requirement
2020-10-27 15:44:59 +11:00
Shamim Rezaie
149e530cc1
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 15:44:59 +11:00
Shamim Rezaie
9a7aed4a25
MDL-69166 pg_paypal: WS and AMD to return some settings to be used in js
2020-10-27 15:44:59 +11:00
Shamim Rezaie
ed04c3824c
MDL-69166 core_payment: post to process payment
2020-10-27 15:44:59 +11:00
Shamim Rezaie
97e8cb0de4
MDL-69166 core_payment: display an image for each gateway
2020-10-27 15:44:59 +11:00
Shamim Rezaie
a435c63e16
MDL-69166 core_payment: some basic styling
2020-10-27 15:44:59 +11:00
Shamim Rezaie
c2321a263b
MDL-69166 core_payment: display the gateways modal
2020-10-27 15:44:58 +11:00
Shamim Rezaie
f3d7526419
MDL-69166 core_payment: WS to get list of gateways supporting a currency
2020-10-27 15:44:58 +11:00