To refund money for Shared rides you will need to add PayPal API credentials to Dashboard > Payment methods > PayPal > Configuration tab.

This feature is better known as Split payments for Shared rides - all riders pay a share of the trip cost.

Take a look at the quick Slide tutorial for easy and fast set up: