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;
}
}