Last active
April 29, 2016 07:55
-
-
Save matiasgualino/2b5deb4e179e038108a654f414f27527 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.view.View; | |
import com.mercadopago.core.MercadoPago; | |
// Método ejecutado al hacer clic en el botón | |
public void submit(View view) { | |
// Obtener ID de la preferencia (Paso 3) | |
// Iniciar el checkout de MercadoPago | |
new MercadoPago.StartActivityBuilder() | |
.setActivity(this) | |
.setPublicKey("444a9ef5-8a6b-429f-abdf-587639155d88") | |
.setCheckoutPreferenceId("167833503-bd46c6e1-1fff-47f2-9be3-0617d62e7eee") | |
.startCheckoutActivity(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment