Creates a Stripe payment intent for purchasing giveaway tickets. Returns a client secret that can be used with the Stripe SDK to complete the payment.Documentation Index
Fetch the complete documentation index at: https://api.docs.onlydrams.app/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Parameters
The number of tickets to purchase. Must be at least 1.
Error Responses
Notes
- The 418 status code is returned when quantity is less than 1
- The client secret should be used with the Stripe SDK to complete the payment
- Payment intents are created with automatic payment methods enabled
- The user’s Stripe customer ID is automatically associated with the payment intent
- Metadata includes the user ID and quantity for tracking purposes

