Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate with stripe dev environment #12

Open
kraktus opened this issue Aug 31, 2023 · 2 comments
Open

Integrate with stripe dev environment #12

kraktus opened this issue Aug 31, 2023 · 2 comments
Labels
prospect For long-term consideration

Comments

@kraktus
Copy link
Member

kraktus commented Aug 31, 2023

To allow easy patron-related testing.

@fitztrev
Copy link
Member

fitztrev commented Sep 1, 2023

Hey, I like this idea. And it would be helpful for some of my recent changes to lila.

I tried setting up https://github.com/stripe/stripe-mock and while it kind of works, it's not able to do a full end-to-end checkout flow. I can click "Credit Card" on the checkout form and it makes the request to the mock Stripe server to create the customer, but the Stripe-hosted checkout page gives an error because the customer doesn't really exist. But when you go back, lila thinks it went through so you're given the Patron account details page.

Were you thinking of another approach?

@fitztrev fitztrev transferred this issue from lichess-org/lila-gitpod Oct 23, 2023
@fitztrev fitztrev added the prospect For long-term consideration label Nov 1, 2023
@NateBrady23
Copy link

NateBrady23 commented Nov 22, 2023

I've used the stripe-cli image to complete this successfully on other projects. Here's an example of what it looked like in my docker-compose.yml. This worked really well for my checkout session use cases.

  stripe-cli:
    image: stripe/stripe-cli:v1.8.8
    environment:
      STRIPE_API_KEY: sk_test_51Kmredacted
      STRIPE_DEVICE_NAME: local-dev-cli
    command: listen --forward-to hostname-of-api:3000/stripe/checkout-session-callback
    networks:
      - app-network

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
prospect For long-term consideration
Projects
None yet
Development

No branches or pull requests

3 participants