I'm trying to extend the API response of Magento SalesOrderInfo - more specifically, I'm trying to get back the paymnent additional_information
In my module, in etc/wsdl.xml
I added
<complexType name="salesOrderPaymentEntity">
<all>
<element name="last_trans_id" type="xsd:string" minOccurs="0" />
</all>
</complexType>
And it works like a charm, it returns the value of last_trans_id
from the sales_flat_order_payment
table.
I'm now trying to get the paymnent additional_information
so I added <element name="additional_information" type="xsd:string" minOccurs="0" />
and my code now looks like this
<complexType name="salesOrderPaymentEntity">
<all>
<element name="last_trans_id" type="xsd:string" minOccurs="0" />
<element name="additional_information" type="xsd:string" minOccurs="0" />
</all>
</complexType>
but the additional_information
is not returning anything because it's an array (when I logged it, it returns Array
)
I hate asking such a basic question but I've spent hours looking for how to get an array, I looked at how Magento returns the product_options
that's also an array but they also declare it as a string.
How can I get the additional_information
of payment in my API?