Skip to content

BeforeOrderPaymentSaveObserver override payment insructions with wrong store view config #26332

Closed
@bernd-reindl

Description

@bernd-reindl

Preconditions (*)

Magento 2.3.3
2 StoreViews

Steps to reproduce (*)

  1. Create a second Store View
  2. Set a value to bankpayment instructions (e.g. Instructions)
  3. Set a other value to bankpayment instructions for the second storeview (e.g. Anweisungen)
  4. Create an order in second storeview (frontend) with bankpayment als payment method
  5. See field 'additional_information' in table 'sales_order_payment' -> contains value of secons storeview for instructions
  6. Create an invoice for the order
  7. See field 'additional_information' in table 'sales_order_payment' -> contains value of default storeview for instructions

Expected result (*)

  1. Payment instructions should used from order store view

Actual result (*)

  1. Payment instructions are used from default store view
  2. If BeforeOrderPaymentSaveObserver was disabled, the payment instructions get preserved
  3. So BeforeOrderPaymentSaveObserver should respect the order store view for fetching payment instructions

default store view
default store view

second store view
second store view

sales_order_payment
sales_order_payment

Metadata

Metadata

Assignees

Labels

Component: PaymentFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReported on 2.3.3Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions