#PYDev
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
You can't add products to PaymentIntent.
How are you doing it now?
What are you trying to achieve?
list = [
{
"product_price": "80.0",
"seller": "admin@gmail.com",
"product_id": "39",
"product_name": "Car"
},
{
"product_price": "2.0",
"seller": "test@gmail.com",
"product_id": "49",
"product_name": "Allu"
}
]
paymentIntent = stripe.PaymentIntent.create(
amount=500,
currency='usd',
customer=customer,
line_items=list,
payment_method_types=['card'],
payment_method=payment_method
)
i want add multiple prodcuts ir multipl order in single payment intent
You can't use Products and Prices with PaymentIntent, you can only charge a specific amount.
Products and Prices are only used with Stripe Checkout and Subscriptions/Invoices.
ok