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

[Payment] fix cancel payment #273

Merged
merged 1 commit into from
Jan 18, 2024
Merged

Conversation

oallain
Copy link
Member

@oallain oallain commented Jan 27, 2023

Q A
Branch? 1.5
Bug fix? yes
New feature? no
Related tickets replace #249

If the order already has a payment in the "new" status, then the Sylius orderPaymentProcessor must not be processed, otherwise a new payment in the "cart" status will be created, which will cause errors (2 payments in order ...).

Before :
image

After :
image

@oallain
Copy link
Member Author

oallain commented Jan 28, 2023

Hello @Zales0123 @SirDomin and others ;)

I fixed the bug that made two new payments (one in new and one in cart) when cancelling a payment.
Because of this, the order was broken.

Regards

@oallain oallain force-pushed the fix/cancel-payment branch 3 times, most recently from 26ba07b to a753f4b Compare May 27, 2023 09:22
@oallain
Copy link
Member Author

oallain commented May 27, 2023

Hello,

This bug is still present, so I've rebased my branch to make it compatible with the new version.

Can you take a look? Ping @GSadee

@GSadee GSadee merged commit 65c1dca into Sylius:1.5 Jan 18, 2024
9 checks passed
@GSadee
Copy link
Member

GSadee commented Jan 18, 2024

Thank you, Olivier! 🥇

@oallain oallain deleted the fix/cancel-payment branch February 8, 2024 13:20
GSadee added a commit that referenced this pull request Apr 8, 2024
…seMate, oallain, GSadee, mpysiak)

This PR was merged into the 1.5-dev branch.

Discussion
----------

- **Fix 1.13**
- **Update composer.json, add ecs check**
- **Limit builds**
- **Add support for node 20**
- **Add state machine config, add migrations for postgresql**

| Q               | A
| --------------- | -----
| Branch?         | 1.5
| Bug fix?        | no
| New feature?    | no
| Related tickets | 


Commits
-------

6076771 [Composer] Remove Psalm
12ecb57 [Psalm] Remove configuration file
2e5bff9 [Psalm] Remove outdated annotations
8f63d74 minor #283 Bye Psalm 👋 (Rafikooo)
e068f7c fix cancel payment
65c1dca bug #273 [Payment] fix cancel payment (oallain)
7347d95 [Conflict] Add conflict with behat/mink-selenium2-driver:>=1.7.0
bea2505 [CI] Bump version of symfony/flex to ^2.4
9ab11fd bug #285 Conflict `behat/mink-selenium2-driver:>=1.7.0` && Bump version of `symfony/flex` to `^2.4` (Rafikooo)
a8265ab Fix 1.13
b80121a Update composer.json, add ecs check
b538220 Limit builds
7e3a348 Add support for node 20
63566c1 Add state machine config, add migrations for postgresql
9eadb53 Remove conflict
5296209 Change build
1627d0b Fixes after code review
e905c9f Fix Spec
793091f Merge branch 'master' into fix/1.13
0065fc5 Fixes after testing 'Enable' method
eebcada Fix BC changes
d03ea1d Merge remote-tracking branch 'leszczuu/fix/1.13' into fix/1.13
47f7eaa Fix BC changes
fed5c61 Remove old services
563fdd2 Fixes after CR
773bc07 Fixes
b183882 More fixes after CR
816a068 Fixes after code review
553b05a Add specs
68f8f73 Fix phpstan
fb93f1d Fix ecs
d1ba389 Fix readme Sylius logo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants