When I issue a partial refund users are unenrolled from the course. If this behavior normal? How can I prevent this?
This is normal behavior. When users or site owners cancel a payment, the enrollment also stops.
Imagine it was not like this - then everybody could pay for a course, wait some minutes to be enrolled in a course, and then cancel the payment without being unenrolled!
Perhaps you can prevent this by not using refunds but payments to pay back your users.
Imagine it was not like this - then everybody could pay for a course, wait some minutes to be enrolled in a course, and then cancel the payment without being unenrolled!
Perhaps you can prevent this by not using refunds but payments to pay back your users.
Surely there is a more useful way to do this instead of simply unenrolling automatically. In your example a simple notification would be more helpful. The problem with making a payment outside of a refund is that PayPal takes yet another cut.