Deductions & credits

Hello,

 

What if the donor gave a donation through CC and receives miles for the payment.  Is that considered they got something in exchange or is it only if the non-profit gave them something in exchange?