-
Notifications
You must be signed in to change notification settings - Fork 63
Payment method as array #210
Payment method as array #210
Conversation
A lot of people will be using the current default config for this, so we'll need to provide something that's backwards compatible. When processing the method from the config, how about: If null: convert to empty array [] Then process the array. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there :), see my review comments.
Also, don't forget to add a unit test for the trait.
Please test these cases:
$method = ' , ideal , bancontact '; // results in ['ideal', 'bancontact']
$method = null; // results in []
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sandervanhooft FYI: Currently I didn't run the unit tests because I need to set up a test env. with the mandatory IDs (Payment IDs, Customer IDs) for the test. I will let you know after I run the tests. |
Not sure I get your point. Can you elaborate on this? |
All cleared up now in #203. |
|
Let's treat this as a breaking change (BC) and adopt it in This also means we can simplify it further by changing everything into |
How to bypass this for now to allow multiple methods? |
Merged into |
I replace the comma string with an array.
The comma string don't work and the Class only allowed stings.
With this changes it is possible to set up multiple method correctly.