Affiliate Commission rates based on Membership Levels

Hi, Lovely Community!

How can affiliates plugin be integrated with membership levels? i.e. affiliates also join membership.

eg. Bronze member/affiliate earns 25% commission for Product X.

Gold member/affiliate earns 50% commission for Product X (same product)

Any coding?

Best regards,

Vi