You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to get credit card information on querying order detail, but it always returns empty for payments object and I can't get credit card information from it, not sure why? Do I missing anything?
Hey @ttvan20
Did you mean Saleor in 3.15 version - You provided 5.15.
From the sample that you provided, it looks like you have an order without payments objects. It means that you created the order from a draft or with the help of App. In the case of using App to process a payments, payments list will be empty as this field is related to PaymentAPI. App to process the payments uses TransactionAPI.
For PaymentAPI (used by payment plugins), credit card details are set by PaymentPlugin (but from the above example, this field is empty, so you probably don't use payment plugins).
For TransactionAPI, we don't have fields to explicitly store the payment details (as described here). As a workaround, your payment app can store it in the metadata of TransactionItem.
To clarify, if the order from the example was created from a draft, it will not have any credit card details as we don't have any payment related to the order.
What are you trying to achieve?
I tried to get credit card information on querying order detail, but it always returns empty for payments object and I can't get credit card information from it, not sure why? Do I missing anything?
Steps to reproduce the problem
Query:
Response:
What did you expect to happen?
I can get credit card information on order details mutation
Logs
No response
Environment
Saleor version: 5.15
The text was updated successfully, but these errors were encountered: