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

WIP -- stripe checkout & wechatpay #1

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from

Conversation

bhaibel
Copy link

@bhaibel bhaibel commented Oct 20, 2021

Status:

  • relevant commands have been spiked out but still need to be tested
  • charges_controller has been spiked out to use the stripe checkout flow
  • TODO: wire stripe checkout succeeded/failed commands to a webhook controller (https://stripe.com/docs/payments/checkout/fulfill-orders)
  • TODO: write tests

This patch introduces a new required environment variable.
It also requires production  to have Stripe webhooks configured
against the `checkout.session.completed` and `checkout.session.expired`
events. That configuration should be completed prior to deploy.

For production, webhooks can be configured using:
https://dashboard.stripe.com/webhooks

The webhook will need to point to https://PRODUCTION_HOST/stripe_webhook
Webhook events are opt-in, so make sure to include both
`checkout.session.completed` and `checkout.session.expired`.

After configuring the webhook, you'll want to shove its signing secret
into the STRIPE_WEBHOOK_ENDPOINT_SECRET environment variable.

For local testing, you can test Stripe webhooks using the Stripe CLI
and the `stripe listen` command.
@bhaibel bhaibel force-pushed the bh/stripe-checkout-and-wepay branch from 67abbb4 to fdcacdc Compare October 21, 2021 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant