Checkout credit card payment
POST
/api/v1/payments/credit_card
Initiate a credit card payment session.
Request Body required
Section titled “Request Body required ” StartPaymentRequest
Request model for initiating a Stripe payment session.
object
credit_plan_id
required
Credit Plan Id
The ID of the credit plan being purchased.
integer
quantity
Quantity
The quantity of the credit plan being purchased.
integer
success_url
required
Success Url
The URL to redirect to after a successful payment (e.g., https://staging.gen.pro/success-payment).
string
cancel_url
required
Cancel Url
The URL to redirect to if the payment is cancelled (e.g., https://staging.gen.pro/cancel-payment).
string
Responses
Section titled “ Responses ”Successful Response
StartPaymentResponse
Response model containing the generated payment link.
object
payment_link
required
Payment Link
The Stripe checkout session URL for the user to complete the payment.
string
Bad Request
Not Found
Invalid redirect URLs, organization not found/not owner, plan already active, or invalid payment option.
Internal Server Error