Commit Graph
578 Commits
Author SHA1 Message Date
Raphael Michel e18375ca6d Avoid conflict in saving objects 2018-08-31 14:05:25 +02:00
Raphael Michel e537e4538a Fix limits for manual payment 2018-08-31 13:06:13 +02:00
Raphael Michel d789beddd0 Fix ValueError on change of payment method
Fixes Sentry issue PRETIXEU-KX
2018-08-31 11:15:59 +02:00
Felix Rindt 8183648902 Rename module async to tasks (#994)
Fixes #993
2018-08-21 10:53:40 +02:00
Raphael Michel dfc7f7c827 Widget: Pass cart IDs around in some more places 2018-08-16 18:40:21 +02:00
Martin Gross a4ced609cd Stripe: ApplePay/Payment Request Button (#988)
As discussed, this is a WIP for integrating Stripe's Payment Request Buttons (with also includes the ApplePay-Button on iOS-devices).

Todos:
- [x] Payment Request Button is still displayed, even when a card has already been tokenized (when going back in the order-flow)
- [x] The domains used need to be verified using the Stripe API to enable ApplePay: https://stripe.com/docs/stripe-js/elements/payment-request-button#verifying-your-domain-with-apple-pay
- [x] Migration: Get the account-country for existing Stripe Connect users
- [x] Migration: Verify the domains using the above mentioned API for existing users
- [x] Converting the chargeable amount is not right for non-decimal currencies like JPY

Other considerations:
- On iOS-devices using Safari (probably also on MacBooks, etc. - not tested), the [regular payment request button](https://user-images.githubusercontent.com/157270/38515749-f53f8392-3be9-11e8-8917-61ef78dd354a.png) is automatically replaced with a [buy with Apple Pay button](https://docs-assets.developer.apple.com/published/094d0eb90e/988c36a8-a43c-4ff9-85ef-beda16c4b7c9.png).
- On all other platforms, the generic payment request button is displayed. Even if the device supports a specific payment provider like Google Pay, Microsoft Wallet, Samsung Pay, etc., the generic button will first offer the cards saved within the webbrowser in addition to the other payment methods. Only upon selecting the specific payment provider like GPay, the corresponding payment flow is started.
- Right now, the rendering of the payment button is completely in the hands of Stripe. Once pretix takes on the task of doing this, we should try to detect if the browser supports well known payment methods like GPay in addition to the browser-saved cards. If that's the case, we should add the corresponding marks onto the "Pay Now"-Button (like [this](https://developers.google.com/pay/api/images/brand-guidelines/google-pay-mark.png), [this](https://assets.pcmag.com/media/images/490984-samsung-pay.png?width=1600&height=900), or [this](https://www.firstffcu.com/images/MS-Wallet_stacked_rgb_grey.png)), so the customer can identify the purpose of the button easier.

- [x] Also, all of this is still based against the pretix 1.x codebase ;-)
2018-08-15 09:22:31 +02:00
Raphael Michel f60a99c357 Tests 2018-08-14 11:31:41 +02:00
Raphael Michel 248b94c296 Approvals 2018-08-14 10:46:55 +02:00
Tobias Kunze a8266c22f6 Make fields disabled if presale is over 2018-08-07 14:48:29 +02:00
Tobias Kunze 532c7fbc8f Add helpful title text to numeric inputs 2018-08-07 14:48:29 +02:00
Raphael Michel afd766999c Upgrade to Django 2.1 (#710)
* Upgrade to Django 2.0

* more models

* i18n foo

* Update setup.py

* Fix Sentry exception PRETIXEU-JC

* Enforce slug uniqueness

* Import sorting

* Upgrade to Django 2.1

* Travis config

* Try to fix PostgreSQL failure

* Smaller test matrix

* staticfiles→static

* Include request in all authenticate() calls
2018-08-06 12:48:46 +02:00
Raphael Michel 18a378976b Fix #571 -- Partial payments and refunds 2018-08-06 12:24:36 +02:00
Johan von Forstner 435c4acba6 Widget: set default number to 1 if there is only one product 2018-08-03 10:19:20 +02:00
Raphael Michel a43ee054ad Fix logging of file upload questions 2018-06-25 12:53:45 +02:00
Raphael Michel 332af5d21b Fix #815 -- Add configurable minimum/maximum amount for payment methods 2018-06-19 18:00:33 +02:00
Raphael Michel ca35d714dc Translate errors for addon selection 2018-06-06 15:51:22 +02:00
Felix Rindt 6fe02f156a Fix #898 -- Add setting to configure subevent ordering on frontpage (#906)
Fixes #898.
2018-05-31 12:28:44 +02:00
Raphael Michel 550ff4ff18 Ref #66 -- Fix more crashes related to disabled payment providers 2018-05-28 16:49:28 +02:00
Raphael Michel 6ecddfc6c0 Automatically re-render PDF for files lost due to bug 2018-05-28 11:44:15 +02:00
Raphael Michel fa326eba6f Introduce original price (#905)
* Introduce original price

* Rebase and styling

* Widget
2018-05-18 22:48:38 +02:00
Mikkel Ricky 359a5d01e6 Fix #908 -- Fix display of ticket download message (#910) 2018-05-14 14:34:50 +02:00
Raphael Michel 195ed57025 Voucher redemption: Markup improvements 2018-05-11 13:59:06 +02:00
Raphael Michel 008b4a134b Allow to require invoice name only 2018-05-11 12:58:14 +02:00
Raphael Michel e678b52a7e Open addon panels by default 2018-05-10 23:30:46 +02:00
Raphael Michel 05daeb561c Use <details> und <summary> instead of panel-collapse 2018-05-10 12:04:29 +02:00
Raphael Michel bfff001752 Use <details> and <summary> for variations 2018-05-10 11:14:13 +02:00
Raphael Michel c3a45a1584 Do not show end time if not set 2018-05-10 10:24:12 +02:00
Raphael Michel b09a92a264 More accessibility improvements 2018-05-10 10:24:12 +02:00
Raphael Michel 71c8267dea Improve screenreader accessibility 2018-05-10 10:24:12 +02:00
Raphael Michel 85d8658037 Merge pull request #897 from felixrindt/emailhelptext
Presale: change email field help text
2018-05-09 10:59:38 +02:00
Felix Rindt 57416103c3 change email help text 2018-05-07 11:35:08 +02:00
Raphael Michel 9fab20ca6c Log confirm message consent 2018-05-04 15:31:56 +02:00
Raphael Michel 7bccd62a4f Fix #678 -- Data shredders for personally identifiable information (#817)
* Add data shredders for PII

* First working shredder

* Add more shredders

* Add new shredders and download confirmation

* tmp

* PayPal, Stripe, banktransfer

* Add icon to logs

* Untested payment log shredders

* Add waiting list shredder

* First tests

* Add tests for shredders

* Improve templats, link to shredder

* Test payment info shredders

* More tests

* Documentation

* Fix enabled flag in payment provider overview

* Fix minor issues
2018-05-02 15:59:59 +02:00
Raphael Michel f561ece9d1 Fix #887 -- Absolute URL for images in widget 2018-04-30 10:27:24 +02:00
Raphael Michel a330e8afb2 Fix incorrect button CSS usage 2018-04-26 09:11:56 +02:00
Raphael Michel 4f83d69205 Remove migration code for legacy session data 2018-04-25 13:23:11 +02:00
Raphael Michel fd47e2de29 Add more entropy to cart IDs and bind them to session IDs 2018-04-25 08:50:15 +02:00
Raphael Michel 8f2adf0a50 Preselect product if only one is selectable 2018-04-19 18:06:57 +02:00
Raphael Michel 62dfd7cef0 Change link text of footer backlinks 2018-04-19 12:50:33 +02:00
Felix Rindt 0119552336 move footer to container (#872) 2018-04-19 10:06:03 +02:00
Tobias Kunze badad70984 Remove duplicate robots.txt line (#870) 2018-04-17 10:20:26 +02:00
Raphael Michel 1708a4c831 Fix error for reseller module 2018-04-12 15:04:29 +02:00
Raphael Michel a237078b68 Optional link back to organizer page 2018-04-12 13:58:10 +02:00
Raphael Michel 14c0c65e17 Fix double shown email address in confirm view 2018-04-12 12:25:04 +02:00
Raphael Michel dca530f2f2 Fix #860 -- Workaround for SQLite 3.23.0 2018-04-12 10:30:04 +02:00
Raphael Michel e977045d5f Clear cart session if all products are removed manually 2018-04-06 10:06:11 +02:00
Raphael Michel a284e0c2f7 Add auditable superuser mode (#824)
* Remove is_superuser everywhere

* Session handling

* List of sessions, relative timeout

* Absolute timeout

* Optionally pseudo-force audit comments

* Fix failing tests

* Add tests

* Add docs

* Rebsae migration

* Typos

* Fix tests
2018-03-28 14:16:58 +02:00
Felix Rindt 073860cd5b Refs #828 -- Presale: change order thankyou text (#832) 2018-03-22 18:34:59 +01:00
Raphael Michel 18be4db320 Widget: More resilient file handling 2018-03-21 09:55:59 +01:00
Raphael Michel 1ef3f83e46 Improve thumbnail quality 2018-03-20 17:14:29 +01:00