fixed payment_id
package com.mercadopago.android.px.tracking.internal.views;
import android.support.annotation.NonNull;
+import android.util.Log;
import com.mercadopago.android.px.internal.util.PaymentDataHelper;
import com.mercadopago.android.px.model.PaymentResult;
import com.mercadopago.android.px.preferences.CheckoutPreference;
@@ -56,7 +57,10 @@ public class ResultViewTrack extends ViewTracker {
@NonNull
@Override
public Map<String, Object> getData() {
- return resultViewTrackModel.toMap();
+ final Map<String, Object> data = resultViewTrackModel.toMap();
+ data.put("payment_id", resultViewTrackModel.getPaymentId());
+
+ return data;
}
@NonNull
@@ -93,5 +97,9 @@ public class ResultViewTrack extends ViewTracker {
new FromPaymentMethodToAvailableMethods().map(payment.getPaymentData().getPaymentMethod());
}
}
+
+ public Long getPaymentId() {
+ return paymentId;
+ }
}
}
