payment_intent.yaml 1013 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. operationId: userPaymentIntent
  2. summary: Payment Intent
  3. description: Create the Stripe payment intent for the user
  4. security:
  5. - UserAuth: []
  6. tags: [User]
  7. requestBody:
  8. content:
  9. application/json:
  10. schema:
  11. type: object
  12. required:
  13. - token_packs
  14. properties:
  15. token_packs:
  16. type: number
  17. description: Number of token packs for the user to purchase
  18. minimum: 5
  19. example: 8
  20. responses:
  21. "200":
  22. description: Payment Intent created
  23. content:
  24. application/json:
  25. schema:
  26. type: object
  27. properties:
  28. client-secret:
  29. type: string
  30. description: Client secret string for Stripe
  31. example: pi_3MtwBwLkdIwHu7ix28a3tqPa_secret_YrKJUKribcBjcG8HVhfZluoGH
  32. "400":
  33. $ref: "#/components/responses/400"
  34. "401":
  35. $ref: "#/components/responses/401"
  36. "403":
  37. $ref: "#/components/responses/403"
  38. "500":
  39. $ref: "#/components/responses/500"