Skip to content

Example of using CheckoutSession flow? #85

@milesgranger

Description

@milesgranger

Hello there, and thanks for this lib! 💯

I've been trying for a while now to use the CheckoutSession client-server checkout flow.

I've got a /create-session route, creates the stripe::CheckoutSession and posts this to https://api.stripe.com/v1/checkout/sessions before returning the sessionID to the client.

However this seems wrong, as in their examples it seems I'm not the one suppose to be creating the id (here the stripe::CheckoutSessionId) but stripe will and this is what I send in the stripe.redirectToCheckout(sessionId...) in the client.

Pretty certain I'm simply going down the wrong path, so in short, any example would be highly appreciated. 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions