LMS Development Company – Expert Moodle Developers Forums Moodle Stripe Payment Pro Sign-Up Fee and Recurring Fee added in 1st period?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #23888
    Raymond Frangie
    Participant

    Hi Team,

    A couple of issues here…

    It appears that if I have a sign-up fee and a recurring fee, in the first year they are added together. Logically it would make more sense if the recurring fee is not considered in the initial purchase fee.

    Secondly, it appears that the sign-up fee is the “cost” in the Moodle Enrol Table, but the “recurringcost” does not exist in the table. These issues are breaking our theme.

    Our theme looks at the “cost” value of the course, but if the sign-up fee is 0.00 which, if we’re doing recurring subscriptions we don’t use per the above, there’s no price shown on the course. If I then put a value on the sign-up fee, I cannot do recurring subscriptions because of the issue of adding the two values in the first payment.

    Can we somehow resolve this and fix the logic behind all this?

    Cheers,
    Ray

    #23897
    dualcube
    Keymaster

    Hello Ray, Thank you for detailing the issue so clearly.

    You’re right, the current logic combines the sign-up fee and the first recurring payment into a single initial charge. This behavior is consistent with how Stripe handles subscriptions, and the plugin follows that model.

    As for the display issue, since Moodle’s enrolment table only includes a cost field (typically used for one-time or sign-up fees), and not recurring cost, this creates challenges for themes relying on that field to show the course price.

    In your case, it seems the theme doesn’t currently support the concept of subscription-based pricing, which is why it’s unable to properly display recurring fees when the sign-up fee is set to 0. We recommend reaching out to your theme developer to adjust the logic accordingly.

    If your developer needs any help with the required code snippets or logic, our team would be happy to assist.

    #23909
    Raymond Frangie
    Participant

    Hi,

    Yes, we’ve spoken with the super responsive theme developer. That’s where I got the information about the lack of the recurringcost field in the enrol table 😉

    For now, we’ll be creating a Course Custom Field for the theme where we can put the price of the course. Given that recurring costs and discounted costs will always change that price, it would be better to show the fixed original price on the enrolment page and in the catalogue/all courses list. So this new custom field will be the display workaround per se.

    Out of curiosity, is the recurringcost value stored somewhere? How would a theme detect the value to display it?

    Cheers,
    Ray

    #23914
    dualcube
    Keymaster

    @Ray, we save all these data in the Moodle enrollment table.

    #23919
    Raymond Frangie
    Participant

    Interesting… what’s the field name in the Moodle Enrol table? The developer of the theme could not find it.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.