strangerstudios/pmpro-affiliates

Affiliates credited with checkout as soon as user is sent to PayPal Express

dparker1005 opened this issue · 0 comments

When a user checks out using PayPal Express, PMPro creates an order in pending status and the order is linked to the referring affiliate. After the checkout is complete, PMPro changes that status to success.

The issue here is that our affiliate reports search for all orders linked to an affiliate regardless of status. We should hide orders with pending, review, or refunded status from affiliate reports as those orders were either not complete or were refunded.

This would require adding an extra condition every time that we query the pmpro_membership_orders table.