duncanmcclean / simple-commerce

A simple, yet powerful e-commerce addon for Statamic.
https://statamic.com/addons/duncanmcclean/simple-commerce
Other
146 stars 40 forks source link

"Unpaid" status enforced even after successful payment #1159

Open portseif opened 1 week ago

portseif commented 1 week ago

Description

I'm trying to get the unpaid status to be paid on successful charges.

I'm getting the correct feedback from my webhook, but it isn't reciprocating within Simple Commerce CleanShot 2024-09-22 at 15 29 33 CleanShot 2024-09-22 at 15 39 38

Steps to reproduce

  1. Install Simple Commerce Starter-Kit statamic new mysite duncanmcclean/sc-starter-kit
  2. Create a test key and secret from Stripe Developer and add to .env
  3. Uncomment Stripe gateway from simple-commerce.php
  4. Add anything to cart and checkout with 4242424242424242 and future month/year and any CVV

Environment

Environment Application Name: Statamic Laravel Version: 11.23.5 PHP Version: 8.3.11 Composer Version: 2.7.7 Environment: local Debug Mode: ENABLED URL: sc-start-kit.test Maintenance Mode: OFF Timezone: UTC Locale: en

Cache Config: NOT CACHED Events: NOT CACHED Routes: NOT CACHED Views: CACHED

Drivers Broadcasting: log Cache: file Database: sqlite Logs: stack / single Mail: log Queue: sync Session: file

Simple Commerce Currencies: USD Gateways: Stripe Repository: Customer: DuncanMcClean\SimpleCommerce\Customers\EntryCustomerRepository Repository: Order: DuncanMcClean\SimpleCommerce\Orders\EntryOrderRepository Repository: Product: DuncanMcClean\SimpleCommerce\Products\EntryProductRepository Shipping Methods: Free Shipping Tax Engine: DuncanMcClean\SimpleCommerce\Tax\BasicTaxEngine

Statamic Addons: 1 Sites: 1 Stache Watcher: Enabled (auto) Static Caching: Disabled Version: 5.25.0 PRO

Statamic Addons duncanmcclean/simple-commerce: 7.5.1

duncanmcclean commented 1 week ago

I'm getting the correct feedback from my webhook, but it isn't reciprocating within Simple Commerce

portseif commented 1 week ago
duncanmcclean commented 1 week ago

Everything sounds like it should be working. 🤔

Do you see any payment_intent.succeeded events being sent to the webhook in Stripe's logs?

I used Stripe CLI to set up a proxy to local

What's the command you're using to proxy the webhook?