#nik213256
1 messages · Page 1 of 1 (latest)
Hi there!
Can you clarify where you see this error?
Can you share the Checkout Session ID?
i see this on the vs code console
Can you share the Checkout Session ID or the code you wrote?
where i can found the checkout session id
If you managed to create the Checkout Session, you should be ablot to see it in your logs: https://dashboard.stripe.com/test/logs
Corpo risposta
{
"id": "pi_3Nn5MVJuJ2MJ8r7K1RgwnY3S",
"object": "payment_intent",
"amount": 2000,
"amount_capturable": 0,
"amount_details": {
"tip": {
}
},
"amount_received": 0,
"application": null,
"application_fee_amount": null,
"automatic_payment_methods": null,
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "automatic",
"client_secret": "pi_3N*************************************************Nahp",
"confirmation_method": "automatic",
"created": 1693943795,
"currency": "usd",
"customer": null,
"description": "(created by Stripe CLI)",
"invoice": null,
"last_payment_error": null,
"latest_charge": null,
"livemode": false,
"metadata": {
},
"next_action": null,
"on_behalf_of": null,
"payment_method": null,
"payment_method_options": {
"card": {
"installments": null,
"mandate_options": null,
"network": null,
"request_three_d_secure": "automatic"
}
},
"payment_method_types": [
"card"
],
"processing": null,
"receipt_email": null,
"review": null,
"setup_future_usage": null,
"shipping": null,
"source": null,
"statement_descriptor": null,
"statement_descriptor_suffix": null,
"status": "requires_payment_method",
"transfer_data": null,
"transfer_group": null
}
Corpo POST richiesta
{
"amount": "2000",
"description": "(created by Stripe CLI)",
"currency": "usd",
"payment_method_types": [
"card"
]
}
Okay so you are not using Checkout Session, but PaymentIntents directly
I see you created the PaymentIntent, now the next step is to collect a payment method
I recommend reading this guide that explains this in details: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements