For our site (jbpdaily), we decided to go with one-time payments using a campaign (and an associated Stripe Product id), and the donations go through alright (show up in Stripe), but the amount displayed in the top banner does not update (it does show the users who donated, but the amount still reads $0 of the campaign target). Is there a web hook that needs to be activated in Stripe to allow reading the amount of money that was paid for a product with a given ID?
Alternatively, would it be possible to manually override the āachieved amountā somehow?
Itās likely a bug and Iāll investigate tomorrow and let you know what I come up with. We are also working on proper support for single purchase items.
Yeah, I just tried this, and nothing updated/happened.
One reason might be that I configured the product (with 3 price levels) in Stripeāand not using the ā+ New Productā button in Discourse. I also donāt fully understand how Discourse would sync the products/prices with Stripe.
When I read the original documentation, the āwebhooksā section only mentioned three of those, all under customer.subscription (.created, .deleted, .updated). I assume that for single product purchases, different webhooks would be necessaryā¦?
I mean, when the transaction is successful, Discourse does register this (for a user), since when they try to pay again, it does show a message of
Thanks so much for your prior purchase of this product!
However, when I then click on āGo to Billingā, both the Subscriptions and the Payments sub-section/tab are empty.
I just created a PR that should fix the amount raised not showing up for one-time purchases.
But I need to wait for it to be reviewed and deployed to your site. Iāll keep you updated on when that has been done and you can test again.
Ah okay. This is useful info, but is not the cause of the issue. At some point though I would like to update the plugin so that it completely ignores anything that wasnāt actually created directly in Discourse to avoid this type of confusion.
One reason that some of this functionality is still working is because you have added the product id to the discourse_subscriptions_campaign_product Site Setting. This is allowing for purchases, but because the product wasnāt added through discourse some functionality is missing.
I just manually added the product id you have added to stripe to your discourse instance so that things should show up correctly under billing.
I processed the refund via the Stripe website. So far, the amount hasnāt updated. Will check back tomorrow.
Maybe itād be nice if the refund could be done from within the Discourse software? For that it would be necessary to somewhere see the individual payments, I guessā¦
Thanks for working on this so promptly! If thereās anything I can do for further testing, etc., let me know! In the meantime, Iāve heard from the person whom Iām partnering with at this community that the banner really looks great. So, at least on our end, we really love the design!
I hope itās OK to put this here on the holiday A user tried to purchase a product for the campaign, but the CVC code was denied (I can see a āblockedā payment in Stripe). The user then successfully purchased a different price tier (same product id), but the total of the campaign added both amounts. Just thought Iād point this outā¦
Thanks so much! Can you let me know when this is rolled out to production (for our community forum), Iāll then let you know if it displays correctly!
ā¦and I guess itās not possible to use a similar logic for ārefundedā payments, correct?
If (over the next few weeks/months) it would be possible to also track/integrate refunds (both in the tally, as well as allowing people to make another contribution to an existing campaign), this would be appreciated.