testdrivenio/django-stripe-checkout

line item error

Opened this issue · 0 comments

line_items=[
{
'name': 'T-shirt',
'quantity': 1,
'currency': 'usd',
'amount': '2000',
}
]
change the line items to only price and quantity like the sample code below. price id could be copied from the stripe products page.

line_items=[
{
'price': 'price_1O2pGtLrE8utBlHsvyGshbgD',
'quantity': 1,
}
]

ref: https://www.youtube.com/watch?v=CDQb07n1tSA