We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
The doc says we can get payments linked to an Order using the embed parameter. However it doesn't seem supported by this gem.
embed
How can I get payments linked to an order then?
It's possible to get the order linked to a payment but not the inverse. Am I right?
Thank you!
The text was updated successfully, but these errors were encountered:
Hi @Pyo25,
Correct, it's not yet supported by the Ruby client. In the meantime, there's a workaround that you could use:
order = Mollie::Order.get("ord_kEn1PlbGa", embed: "payments") payments = Mollie::List.new( { "_embedded" => order.attributes["_embedded"] }, Mollie::Payment )
Please keep in mind that #attributes should not be used in general and could break in future versions of the client.
#attributes
Sorry, something went wrong.
Hi @justincase ,
A few months later (oops sorry), thank you for the workaround. Not the best solution as it could be broken, but at least it works now.
You no longer need the workaround in v4.10.0 (tagged on GitHub - releases on rubygems.org are running behind due to #140).
order = Mollie::Order.get("ord_kEn1PlbGa", embed: "payments") payments = order.payments
No branches or pull requests
Hi,
The doc says we can get payments linked to an Order using the
embed
parameter.However it doesn't seem supported by this gem.
How can I get payments linked to an order then?
It's possible to get the order linked to a payment but not the inverse. Am I right?
Thank you!
The text was updated successfully, but these errors were encountered: