summaryrefslogtreecommitdiff
path: root/postgresqleu/stripepayment
AgeCommit message (Collapse)Author
2024-05-12Fix incorrect field access when reloading a stripe payment pageMagnus Hagander
Typical case is if an invoice is open for payment in two different tabs, it's then paid in one tab and then reloaded in the other, the Strip integration would crash because it accessed the wrong field. This has been wrong since day one of the Strip integration, so the comment stating it won't "normally happen" was entirely correct...
2024-03-14Re-ipmlement stripe notifications for refundsMagnus Hagander
Stripe made a change (quite some time ago) in how they send refunds, and no longer include the actual refund id in the webhook notification. The only way to get the full details is to make another outbound API call. Given how our refunds work, it looks like we can *probably* get away with just looking up the refund based on charge id and amount, since it's highly likely we'll trigger another refund before the webhook has completed with exactly the same amount to the same invoice. So re-implement the refunds hook to do this, and we can see after some real-world testing if this was enough or if we also need to do the outbound API calls to check in more detail. Patially diagnosed and researched by Steve Singer. Fixes #156
2024-02-09Include information about amount in stripe payout notificationsMagnus Hagander
2024-01-05Payment method config is a method, not an arrayMagnus Hagander
2024-01-04Make it possible to disable stripe balance validationMagnus Hagander
2023-09-18Update regexp for stripe automatchersMagnus Hagander
In particular, allow just the text STRIPE (or rather, anythign that ends in it) with nothign following it, as that appears to be what comes out of Stripe UK.
2023-07-25BREAKING CHANGE: Allow the currency format to be configurable.Dave Page
This change allows the currency format to be configured in the instance. This allows us to use alternate symbols (e.g. £), and to format amounts using the format required in different jurisdictions. The currency format is set to Euro by default. Note that this change requires an update to any Jinja templates that use the currency_format tag. This must be changed to format_currency.
2023-06-15Lock stripe API versionMagnus Hagander
Newer versions have changed a number of things. We need to update to work with those at some point, but to start with let's make sure we get the current deployment working.
2023-06-14Exempt wise and stripe webhooks from global authMagnus Hagander
2022-07-15Rename instances of variables "l"Magnus Hagander
This is complained about more loudly in newer versions of pycodestyle, and it's a bad idea in general. So rename them all to something more readable.
2020-07-13Remove unused importsMagnus Hagander
2020-04-01Specify on_delete for all ForeignKey and OneToOneFieldsMagnus Hagander
This was already done once in 8289e05cd but had not been properly maintained.
2020-03-29Remove date parameter to create_accounting_entryMagnus Hagander
This should always be set to todays date, so set it in the function instaed. This changes the behaviour of the paypal plugin to actually use todays date rather than a date parsed out from the notification. In theory this could change the accounting entry date in case the notification is so delayed it ends up on a different day, but either one could be argued to be equally correct in this case, and using the date of creation of the transaction makes tracking things a lot easier. While at it, clean up some imports that have been missed earlier.
2020-03-12Replace datetime.now() with timezone.now()Magnus Hagander
As a step on the way to better timezone support, use the django function timezone.now() instead of datetime.now(). As long as we haven't enabled timezones globally this becomes a no-op and does exactly what it did before, but once timezones are enabled it will generate datetimes that are aware of this. No functionality change but gets a lot of boiler-plate out of the way making the verification of the rest of the timezone work easier.
2020-02-22Update regexp for payout matching for StripeMagnus Hagander
Now that we've seen a few in real life, we can make a better attempt. Unfortunately the payout "magic number" cannot be matched to any data in the API that I can find, so we will just have to by very basic matching along with the amount.
2020-02-09Fix reversed condition checking for stalled stripe refundsMagnus Hagander
Seems nobody has been doing Stripe refunds before :) The check looked for refunds that had actually completed, and flagged them as stalled...
2020-01-02Fix field spelling errorMagnus Hagander
2020-01-02Fix spelling error in method nameMagnus Hagander
2020-01-02Add even more missing importsMagnus Hagander
2019-12-30Add another missing importMagnus Hagander
2019-12-29Add missing importsMagnus Hagander
2019-12-27Attempt to fix Stripe nightly job invalid column nameMagnus Hagander
The column is called paymentmethod, not method. This has been breaking since de857e0cac908f3f121812d4161c21dc4f33ad84, which fixed the name of the implementation (before that, the job never got far enough to break here).
2019-11-20Pass id and not object for invoicerefund objectsMagnus Hagander
2019-11-20Fix reversed amount of stripe refundsMagnus Hagander
2019-11-20Fix incorrect name of stripe payment implementation classMagnus Hagander
2019-08-14Remove two instances of left over debugging codeMagnus Hagander
2019-07-12Add basic support for Stripe payoutsMagnus Hagander
This is not complete as we don't know exactly what a transfer will look like on the bank side of things, but should work for everything except managed bank accounts.
2019-07-09Add missing importMagnus Hagander
2019-07-08Initial support for Stripe paymentsMagnus Hagander
No support for payout tracking yet, since Stripe makes it impossible to test that until 7 days after you sign up for the test account...