Commit Graph
131 Commits
Author SHA1 Message Date
Cédric Krier 8208d5e23f Remove support for Python 3.5
issue9733
2020-10-24 13:45:10 +02:00
Cédric Krier 452fa4de88 Ignore flake8 E741 2020-10-16 19:19:57 +02:00
Cédric Krier 1637ea5f65 Restore drone secrets to tox environment
They were wrongly removed by issue8866
2020-10-08 23:08:25 +02:00
Cédric Krier 0bc088c792 Allow going back to processing state
This allows to avoid to use the failed state when updating a succeeded payment
as specific workflow may be plugged to the fail transition.

issue9525
review302001002
2020-08-29 18:17:51 +02:00
Cédric Krier 114ce02096 Add wizard to delete customer source
issue9501
review323711002
2020-08-11 21:47:51 +02:00
Cédric Krier c181e32b21 Deduce dispute amount only if smaller than amount
The dispute amount is based on the initial amount of the charge. So if there
was already refunds that reduced the payment amount, we must not set a negative
amount.

issue9452
review290491002
2020-07-13 20:54:31 +02:00
David Harper 8189f9e341 Use Activate modules as test scenario section name
issue9395
review291901002
2020-07-09 10:21:06 +01:00
Cédric Krier e0c3022953 Add model, record and records attribute on Wizard
issue9421
review309861012
2020-07-07 23:56:09 +02:00
Cédric Krier ea3a458d2a Add webhook for payment intent canceled
issue9387
review295711002
2020-06-19 00:31:20 +02:00
Cédric Krier f0f35b0a20 Allow to charge on-session
issue9375
review299791002
2020-06-19 00:29:55 +02:00
Cédric Krier d45fffb15b Use proper event names when logging for payment not found 2020-06-03 17:36:17 +02:00
Cédric Krier d566b0aa1c Replace form by link in email
Using form in email raises warnings on most client.

issue9273
review321271002
2020-05-19 18:52:22 +02:00
Cédric Krier 7b9d44b9e3 Increase version number 2020-05-04 12:11:10 +02:00
Cédric Krier 984d0e9fb6 Add tag 5.6.0 [skip ci] 2020-05-04 12:11:00 +02:00
Cédric Krier b68e6cbf27 Prepare release 5.6.0 [skip ci] 2020-05-04 12:11:00 +02:00
Cédric Krier 16408f9ca8 Update translations 2020-05-02 10:29:23 +02:00
Cédric Krier 7495505515 Set non-durable setting for postgresql testing service
issue9100
review286831003
2020-04-25 23:53:50 +02:00
Cédric Krier 2798c66395 Add configuration for max_network_retries
issue9118
review256691003
2020-04-11 00:26:18 +02:00
Cédric Krier abee351300 Add refund of payment
issue9177
review286911002
2020-04-11 00:22:48 +02:00
Cédric Krier e1e2eaa572 Add some extra time to Stripe
Add 1 second to Stripe to process the request before fetching new events.

issue9184
review319071002
2020-04-01 23:53:38 +02:00
Sergi Almacellas Abellana 89bac36ac7 Add support for python3.8
issue8866
review274421004
2020-03-19 19:00:47 +01:00
Cédric Krier 1c12574b55 Always set error code
and set param for all exception with param code.

issue9119
review278691005
2020-03-17 23:19:20 +01:00
Cédric Krier 7f61d4c6c7 Set auth-method to trust for drone build
issue9063
2020-03-01 16:12:38 +01:00
Cédric Krier 64accb375a Fix flake8 errors and warnings
We add the flake8 configuration used so we ensure everyone uses the same.
We remove the usage of __all__ for non public API.
When possible, we rationalize the class name according to its __name__ and module.

issue9082
review297061002
2020-03-01 12:33:51 +01:00
Cédric Krier e5113f5ae5 Set proper event name for webhook_charge_refunded 2020-02-19 22:58:26 +01:00
Cédric Krier a588b9a8da Add dependency to werkzeug
issue9055
review250671002
2020-02-19 22:55:53 +01:00
Sergi Almacellas Abellana fc826667c6 Use process method instead of stripe journal
issue8990
review260831007
2020-02-17 11:20:07 +01:00
Cédric Krier 44e0bd5e47 Retry later on some StripeError depending of the code
The code lock_timeout and token_in_use must be retried as it is an unexpected
behavior from Stripe service.
Also some calls did not catch APIConnectionError for retry.

issue8871
review270611002
2019-12-05 21:32:58 +01:00
Cédric Krier 522b6e6650 Correctly activate share extension in drone pipeline
issue8830
2019-12-04 11:09:35 +01:00
Cédric Krier ea319e8936 Replace echo with interpretation of backslash escapes by multiple commands
drone escape the echo option.

issue8830
2019-12-04 09:53:35 +01:00
Cédric Krier cd1fa7108f Use pooled storage for clone in done
issue8830
review284451002
2019-12-03 22:59:31 +01:00
Cédric Krier e2a2a9ebde Support replacing party on customer
issue8851
review252661002
2019-11-30 22:46:42 +01:00
Cédric Krier 5b8f1e4149 Add __href__ and is_secure, host and http_host to url module
This ease the composition of URL pointing to Tryton route.

issue8767
review264461005
2019-11-26 22:16:00 +01:00
Cédric Krier 88df004676 Append CI build number to package version
This makes them unique and avoid collision with the shared cache.

issue8831
review254651002
2019-11-25 21:55:20 +01:00
Cédric Krier 3d6b1170d4 Increase version number 2019-11-04 12:53:52 +01:00
Cédric Krier a7f68986d0 Added tag 5.4.0 for changeset fcc32914cc37 2019-11-04 12:53:42 +01:00
Cédric Krier d34db18647 Prepare release 5.4.0 2019-11-04 12:53:42 +01:00
Cédric Krier 332d2531bb Update translations 2019-11-02 18:07:41 +01:00
Cédric Krier d5ffa1022a Add Indonesian
issue8184
review285461002
2019-11-01 23:34:58 +01:00
Cédric Krier 444338dcd9 Update payment from charge event of payment intent
Once the payment intent is succeeded or failed, only charge events are sent.
This successful charge represents the full payment as a payment intent can have
only one successful charge.

issue8782
review264521002
2019-11-01 23:02:56 +01:00
Cédric Krier 01cc8c4b41 Ensure payment instance has the right company context
The call to save restore the context when the record was instantiated.

issue8780
review256151003
2019-11-01 23:01:43 +01:00
Cédric Krier 3715b5cee8 Create charge with token only if chargeable
issue8777
review288331002
2019-11-01 23:00:05 +01:00
Cédric Krier 4f0ffbdc2e Do not create payment intent if it already exists
issue8778
review268281002
2019-11-01 22:54:50 +01:00
Cédric Krier 2f837bb4ec Do not fail to render checkout html if there is no payment_method 2019-10-26 18:26:21 +02:00
Cédric Krier 0c55c3e698 Manage Setup Intent and Payment Intent
issue8456
review254141002
2019-10-10 18:45:36 +02:00
Cédric Krier 4dfa033bfa Add expand on tree view
and unify layout of form view.

issue8644
review262131002
2019-09-28 23:59:08 +02:00
Cédric Krier 73df5ce0b8 Remove _event argument when calling webhook_source_failed
This argument does not exist on webhook_source_failed.

issue8647
review252111337
2019-09-12 22:58:57 +02:00
Sergi Almacellas Abellana bc29ae4380 Use grouped attribute on message.xml
issue8556
review272001002
2019-08-09 16:33:57 +02:00
Cédric Krier fd756161aa Correct signing secret link in README rst 2019-08-01 23:28:27 +02:00
Cédric Krier dfb1f74958 Support charge.expired webhook event
issue8455
review257651004
2019-07-22 23:58:15 +02:00