Open rtdev-com opened 6 months ago
You need to subclass BasePayment
: https://django-payments.readthedocs.io/en/latest/payment-model.html
Your Payment
class can have data for the items itself, or can have a ForeignKey to a Purchase
model or whatever you're using.
Can someone help me understand how to pass some sort of item reference to
Payment.get_purchased_items
?get_purchased_items
method does not take any input arguments except forself
BasePayment
class does not have any item references eitherThis part is unclear to me from reading the documentation since the docs just hard code an item.