Skip to content

[Shop] Fix paypal checkout when another payment method was selected during checkout#340

Merged
GSadee merged 6 commits intoSylius:1.6from
Wojdylak:syl-4505
Mar 17, 2025
Merged

[Shop] Fix paypal checkout when another payment method was selected during checkout#340
GSadee merged 6 commits intoSylius:1.6from
Wojdylak:syl-4505

Conversation

@Wojdylak
Copy link
Member

@Wojdylak Wojdylak commented Mar 13, 2025

Q A
Branch? 1.6
Bug fix? yes
New feature? no
Related tickets fixes #303

Comment on lines 128 to 129
$this->orderPaymentsRemover->removePayments($order);
$this->orderProcessor->process($order);
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a comment as to why this is necessary/wat it do

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 think the test I added provides a good comment explaining the code I added.

@GSadee GSadee added the Bug label Mar 14, 2025
}

/** @test */
public function it_creates_pay_pal_order_from_cart_and_returns_its_data_if_payment_method_is_different_then_pay_pal(): void
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
public function it_creates_pay_pal_order_from_cart_and_returns_its_data_if_payment_method_is_different_then_pay_pal(): void
public function it_creates_paypal_order_from_cart_and_returns_its_data_if_payment_method_is_different_than_paypal(): void

@GSadee GSadee merged commit 9e97a9b into Sylius:1.6 Mar 17, 2025
14 checks passed
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.

4 participants