WARNING: this code is not tested. Please test before running.
I added a query for Stripe payments following the pattern used for Pin payments
I used "black" to format this section so that my indentation didn't break anything (I'm not yet super familiar with what whitespace does and doesn't matter in Python)
WARNING: this code is not tested. Please test before running.