I have Enrollment on Payment (through PayPal) working flawlessly, except for one things: when users click the "Select Payment Type" button and the enrol.html popup opens, it has the following string under the PayPal payment button:
{$a->label}: {$a->value}
screenshot showing oddball code
I have searched high and low for any information and have only been able to verify that my integration follows all the instructions. The payments are processed; users receive no error. But that line of code is worrying everyone. I appreciate any and all help.
Looks like its a core Moodle string
labelvaluein/lang/en/moodle.phpWhich is being displayed in the fee breakdown via a mustache template in
/payment/templates/fee_breakdown.mustacheWhich I think is being called by
updateCostRegionin/payment/amd/src/gateways_modal.jsMaybe one of the PayPal settings in Moodle has a null value somewhere, so its not being displayed correctly
Check the value for the PayPal surcharge - if its already 0 then click save to make sure the database has been updated with 0 rather than a null
Site admin > Plugins > Payment gateways > Paypal
Or direct to
/admin/settings.php?section=paymentgatewaypaypalIf that doesn't fix it, then check the enrol cost for the paypal enrolment plugin
Site admin > Plugins > Enrolments > Paypal
Or direct to
/admin/settings.php?section=enrolsettingspaypalAgain, if Enrol cost is already 0 then save changes to make sure
And check the enrol cost for the course
Course menu > Participants > Enrolment methods > Paypal