Skip to content

[payment] allow set traversable as payment's details.#1608

Merged
pjedrzejewski merged 2 commits intoSylius:masterfrom
formapro-forks:payment-details-allow-traversable
Jun 21, 2014
Merged

[payment] allow set traversable as payment's details.#1608
pjedrzejewski merged 2 commits intoSylius:masterfrom
formapro-forks:payment-details-allow-traversable

Conversation

@makasim
Copy link
Copy Markdown
Contributor

@makasim makasim commented Jun 12, 2014

This PR contains BC break in PaymentInterface::setDetails method. Removing this gives us some advantages:

  • Simplify CaptureXXXAction logic a bit. we do not need to force array everytime we set details: $payment->setDetails((array) $details);
  • Compatibility with DetailsAwareInterface. I have plans to reuse PaymentInterface in PayumBundle as unified layer for doing payments. I need these interfaces to be compatible to simplify things.

Merge only after #1607 is merged

@makasim
Copy link
Copy Markdown
Contributor Author

makasim commented Jun 12, 2014

for the referance Payum/PayumBundle#137

@makasim
Copy link
Copy Markdown
Contributor Author

makasim commented Jun 12, 2014

@pjedrzejewski can we do a BC break? wdyt about this?

@QuingKhaos
Copy link
Copy Markdown
Contributor

Notes in UPGRADE.md?

@pjedrzejewski
Copy link
Copy Markdown
Contributor

Yes, just please add some notes in the upgrade and I am fine with such BC break. Thanks!

pjedrzejewski pushed a commit that referenced this pull request Jun 21, 2014
…aversable

[payment] allow set traversable as payment's details.
@pjedrzejewski pjedrzejewski merged commit 09c708d into Sylius:master Jun 21, 2014
@pjedrzejewski
Copy link
Copy Markdown
Contributor

Thanks Maksim!

pamil pushed a commit to pamil/Sylius that referenced this pull request May 7, 2019
…low-traversable

[payment] allow set traversable as payment's details.
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.

3 participants