12 Commits

Author SHA1 Message Date
Shamim Rezaie
fc37fb1eb2 MDL-69166 pg_paypal: paypal helper class to work with API 2020-10-27 14:37:28 +11:00
Shamim Rezaie
22c68a8197 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 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
8ef156b7dc MDL-69166 core_payment: post to process payment 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
96f57f803d MDL-69166 core_payment: some basic styling 2020-10-27 08:37:08 +11:00
Shamim Rezaie
e9de430907 MDL-69166 core_payment: display the gateways modal 2020-10-27 08:37:08 +11:00
Shamim Rezaie
9f2d8a0bdc MDL-69166 core_payment: WS to get list of gateways supporting a currency 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
Shamim Rezaie
e52362fc5c MDL-69166 core_payment: basic gateway skeleton 2020-10-27 08:37:08 +11:00