Beispiel #1
0
        private MercadoPago.SDK sdkdata()
        {
            MercadoPago.SDK sdk = new MercadoPago.SDK();
            sdk.ClientId     = "4311750694604144";
            sdk.ClientSecret = "4wI1WNjmrpvA5VbOt3UZSW7bWdXXOjx6";
            sdk.SetAccessToken("APP_USR-4311750694604144-110416-2f54ee29187961161377fb778fd14a89-465370187");

            return(sdk);
        }
Beispiel #2
0
    private MercadoPago.SDK sdkdata()
    {
        MercadoPago.SDK sdk = new MercadoPago.SDK();
        sdk.ClientId     = "4311750694604144";
        sdk.ClientSecret = "4wI1WNjmrpvA5VbOt3UZSW7bWdXXOjx6";
        var url = Url.Action("getall", "country", Request.Scheme, HttpContext.Request.Host.Host);

        if (url.Contains("psapsolutions"))
        {
            sdk.SetAccessToken("APP_USR-4311750694604144-110416-2f54ee29187961161377fb778fd14a89-465370187");
        }
        else
        {
            sdk.SetAccessToken("TEST-4311750694604144-110416-b80c68faa3dbc7a75f0e3a6211ddb4df-465370187");
        }


        return(sdk);
    }