Hope somebody knows this:
- when I create a payment in the backend, I only set this:
let paymentRequest = {
"items": [{
name: "Deposito " + strCompany,
price: objBooking.deposit
}],
but when I get it back, I receive this:
{\"payment\":{\"id\":\"328e3b4a-0f12-479a-b0f8-b277e896cd58\",\"amount\":15,\"currency\":\"ARS\",\"items\":[{\"id\":\"8eec53be-8456-4aa7-b20b-88f2e9d060c2\",\"name\":\"Deposito Giri (FLP data)\",\"quantity\":1,\"price\":15,\"description\":\"Deposito Giri (FLP data)\",\"weightInKg\":0,\"category\":\"UNDEFINED\"}]},\"userInfo\":{\"firstName\":\"sdfsdfs\",\"lastName\":\"Bsdfsds\",\"email\":\"foo@bar.co\",\"phone\":\"987987987987\",\"country\":\"ARG\"},\"status\":\"Successful\",\"transactionId\":\"01d006c6-cb35-4840-9a1d-0c5b459d80cf\"}
a) where does
items\":[{\"id\":\"8eec53be-8456-4aa7-b20b-88f2e9d060c2\",\
come from? I have no clue. Anyone tried to set it?
- in docs, about Payment, it says:
payment Payment The payment. id string Payment transaction ID.
about transaction, it says:
transactionId string ID of the payment transaction.
Not really clear what is the diff. Could it be that, if a cycle consists of a payment plus, later, an update (because init state was “Pending”), the paymentId stays the same, but both transactions have a unique transactionId?
Thing is, I can´t test it to see what I get back if, for instance, a payment is withdrawn by user. (well, I could, but I would have to file a claim against myself, I don´t want the hassle).