Skip to content

Change items parameter to a string #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 14, 2015
Merged

Change items parameter to a string #2

merged 2 commits into from
Jan 14, 2015

Conversation

jasonvarga
Copy link
Contributor

When submitting a purchase request with line items – which is an array – you get SimpleXMLElement::addChild() expects parameter 2 to be string, array given.

The MultiSafepay docs request a string, and their code examples suggest to construct a ul.

$msp->transaction['items'] = '<br/><ul><li>1 x Item1</li><li>2 x Item2</li></ul>';

The ul displays nicely in their checkout process and in their emails.

@greydnls
Copy link
Contributor

@jasonvarga this PR is breaking tests. Can you update the tests to work with the new structure?

@jasonvarga
Copy link
Contributor Author

Sorry about that. There we go!

@greydnls
Copy link
Contributor

+1!

greydnls added a commit that referenced this pull request Jan 14, 2015
Change items parameter to a string
@greydnls greydnls merged commit a0f09ab into thephpleague:master Jan 14, 2015
@greydnls
Copy link
Contributor

Just tagged 2.2.0 with these changes.

@jasonvarga
Copy link
Contributor Author

Awesome, thank you!

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