Payments details in order

  • Davide
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
5 years 2 months ago - 5 years 2 months ago #122124 by Davide
Payments details in order was created by Davide
Hi Giang, is possibile in one of the next release to have a new field in orders DB table to store payment details that show content in the order details? Now we have to save payments result in an additional table for our custom payment plugin, if there was, for example, an addition field named payment_details (LONGTEXT) in eshop_orders we can store inside it in JSON format some infos about payment and when the field is not empty this information can be showed inside a new tab in order details (with a show true/false option for every elements). In this way we can insert in this field for example:

{
"error": {
"label":"Error",
"text":"Insufficient funds",
"code":"A154",
"show":true
},
"error_url": {
"url":"http:\/\/www...",
"show":false
},
"payment_id": {
"label":"Payment ID",
"text":"ABC123",
"show":false
}
}

and show:

Error: Insufficient funds
Payment ID: ABC123

Our customer can see the error details and we can store also some technical information about transaction set show = false. Thanks :)
Last edit: 5 years 2 months ago by Davide.

Please Log in or Create an account to join the conversation.

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
5 years 2 months ago #122227 by Giang Dinh Truong
Replied by Giang Dinh Truong on topic Payments details in order
Hello Davide,

Actually, some of payment plugins have the feature to log the error to a text file. We can use that for this purpose.

Sincerely, Giang

Please Log in or Create an account to join the conversation.

Moderators: Giang Dinh Truong