Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yogonza524/207eb699952bf2cb7d443b7157241430 to your computer and use it in GitHub Desktop.
Save yogonza524/207eb699952bf2cb7d443b7157241430 to your computer and use it in GitHub Desktop.
@SpringBootApplication
public class MpSampleApplication implements CommandLineRunner {
public static void main(String[] args) {
SpringApplication.run(MpSampleApplication.class, args);
}
@Override
public void run(String... args) throws Exception {
MercadoPago.SDK.setAccessToken(System.getenv("MP_ACCESS_TOKEN"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment