[bugfix/CONN-117] payment result does not appear in activity result
package com.mercadopago.paymentresult;
-import android.app.Activity;
import android.support.annotation.NonNull;
import com.mercadopago.callbacks.FailureRecovery;
@@ -10,6 +9,7 @@ import com.mercadopago.components.LinkAction;
import com.mercadopago.components.NextAction;
import com.mercadopago.components.RecoverPaymentAction;
import com.mercadopago.components.ResultCodeAction;
+import com.mercadopago.core.MercadoPagoCheckout;
import com.mercadopago.exceptions.MercadoPagoError;
import com.mercadopago.model.Instruction;
import com.mercadopago.model.Instructions;
@@ -265,7 +265,7 @@ public class PaymentResultPresenter extends MvpPresenter<PaymentResultPropsView,
@Override
public void onAction(@NonNull final Action action) {
if (action instanceof NextAction) {
- navigator.finishWithResult(Activity.RESULT_OK);
+ navigator.finishWithResult(MercadoPagoCheckout.PAYMENT_RESULT_CODE);
} else if (action instanceof ResultCodeAction) {
navigator.finishWithResult(((ResultCodeAction) action).resultCode);
} else if (action instanceof ChangePaymentMethodAction) {
