Braintree.TestUtil.OAuthTestHelper.CreateGrant C# (CSharp) Метод

CreateGrant() публичный статический Метод

public static CreateGrant ( BraintreeGateway gateway, string merchantId, string scope ) : string
gateway Braintree.BraintreeGateway
merchantId string
scope string
Результат string
        public static string CreateGrant(BraintreeGateway gateway, string merchantId, string scope)
        {
            var service = new BraintreeService(gateway.Configuration);
            XmlNode node = service.Post("/oauth_testing/grants", new OAuthGrantRequest
            {
                MerchantId = merchantId,
                Scope = scope
            });

            return node["code"].InnerText;
        }
    }
OAuthTestHelper