worldcubeassociation.org icon indicating copy to clipboard operation
worldcubeassociation.org copied to clipboard

Refactor `StripePaymentIntent` to generic `PaymentIntent`

Open dunkOnIT opened this issue 1 year ago • 0 comments

Steps

  • [ ] Add a polymorphic association to a :payment_record
  • [ ] Refactor stripe-specific method to be generic (use the same logic and just detect what the association is? Similar to what we do for CompetitionPaymentIntegration?)

Questions

  • [ ] What is the user_id field for on StripePaymentIntent? The user who is paying? (I suggest a rename to make this explicit, unless its a foreign key I guess?)

dunkOnIT avatar Mar 12 '24 10:03 dunkOnIT