You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can someone help me understand how to pass some sort of item reference to Payment.get_purchased_items?
The get_purchased_items method does not take any input arguments except for self
The BasePayment class does not have any item references either
defget_purchased_items(self) ->Iterable[PurchasedItem]:
# do we have item info here?item=get_item_from_somewhere()
# Return items that will be included in this payment.yieldPurchasedItem(
name=item.name,
sku=item.sku,
quantity=1,
price=item.price,
currency='USD',
)
This part is unclear to me from reading the documentation since the docs just hard code an item.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: