public static CreateGrant ( |
||
gateway | ||
merchantId | string | |
scope | string | |
return | 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;
}
}