Skip to content

[DX-1208] Add validation for Tpay channel selection during checkout#293

Merged
lchrusciel merged 1 commit intomainfrom
bugfix/no-pbl-selected
Aug 11, 2025
Merged

[DX-1208] Add validation for Tpay channel selection during checkout#293
lchrusciel merged 1 commit intomainfrom
bugfix/no-pbl-selected

Conversation

@jakubtobiasz
Copy link
Member

No more 500 on skipping a bank selection.
CleanShot 2025-08-08 at 13 51 02

@jakubtobiasz jakubtobiasz force-pushed the bugfix/no-pbl-selected branch from 770cc05 to 1c326dd Compare August 8, 2025 11:59
return;
}

$payment = $order->getLastPayment();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should either iterate over all payments or define a constraint on a particular on (which won't b possible I assume). That would be more future proof

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've replaced it with getLastCartPayment which makes sense. I'd prefer to not add partial support for multiple payments. We can make a feature request for that if you want.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add support for multiple payments 👍

@jakubtobiasz jakubtobiasz force-pushed the bugfix/no-pbl-selected branch from 1c326dd to 083d87b Compare August 8, 2025 21:20
@jakubtobiasz jakubtobiasz marked this pull request as ready for review August 8, 2025 21:24
@lchrusciel lchrusciel merged commit de4f8c5 into main Aug 11, 2025
6 of 7 checks passed
@lchrusciel lchrusciel deleted the bugfix/no-pbl-selected branch August 11, 2025 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants