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

Subscription Payment history not updating when user subscribes to a plan #144

Closed
fordchristopher opened this issue Jan 22, 2021 · 3 comments

Comments

@fordchristopher
Copy link

Hello, I am using Craft version 3.5.14, Craft commerce version 3.2.11 and commerce-stripe 2.3.2.1.

I have set up my webhook with stripe so that stripe can attempt to send webhooks to craft for appropriate updates. I have enabled many webhook events trying to get this to work:

invoice.updated
invoice.sent
invoice.finalized
payment_intent.succeeded
order.payment_succeeded
invoice.paid
charge.updated
charge.succeeded
charge.captured
price.created
price.deleted
price.updated
plan.created
customer.subscription.created
customer.updated
invoice.payment_failed
customer.subscription.updated
invoice.created
plan.updated
plan.deleted
customer.subscription.deleted
invoice.payment_succeeded
source.failed
source.chargeable
source.canceled

I know that the webhooks are being received by craft because I can see the status of the webhooks on the stripe dashboard, and when I am working locally I am using ultrahook and can see a status of 200 for each webhook.

When I subscribe to a plan, the subscription is created, but there is no payment in the plan until I click on "Refresh payment history". I cannot see it in the CMS nor can I find it in a module with PHP. Once the buttons is pressed, the payment shows up and everything works as expected.

Is this updated via webhooks? Am I missing the correct webhook event? How can I get this payment to be present without having to click this button?

Screen Shot 2021-01-22 at 4 08 52 PM

Thank you!

@terryupton
Copy link

@Chris7Ford did you manage to resolve this? I am seeing the same issue.

@Bamrich
Copy link

Bamrich commented Nov 9, 2022

I found this in my travels which seems to work for me.

{% do subscription.gateway.refreshPaymentHistory(subscription) %}

@lukeholder
Copy link
Member

This will be fixed in the next release. I will let you know once it is out here.

lukeholder added a commit that referenced this issue Mar 8, 2024
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

No branches or pull requests

4 participants