Reviewed & tested by the community
Project:
Commerce CyberSource
Version:
8.x-1.8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jun 2026 at 08:56 UTC
Updated:
8 Jul 2026 at 06:38 UTC
Jump to comment: Most recent
Comments
Comment #4
garvitasakhrani commentedInitialized $billing_to_arr before the billing profile checks to prevent undefined variable warnings.
Please review. Thanks!
Comment #5
brian@graith commentedReviewed MR !27.
The change initializes $billing_to_arr to an empty array before the billing profile conditional, which is the fix proposed in the issue summary. It resolves both failure paths in Flex::createPayment(): with no billing profile, the later $billing_to_arr['email'] assignment and the Ptsv2paymentsOrderInformationBillTo constructor no longer reference an undefined variable. The MR is a minimal one-line change, targets 8.x-1.x and the diff applies cleanly to the current branch head.
Thanks @garvitasakhrani. Marking Reviewed and tested by the community.
I use Assisted AI but I review what it generates