Created
December 15, 2016 10:52
-
-
Save Kendysond/95ed6314b43a429c1f0aa571cd25d173 to your computer and use it in GitHub Desktop.
RestSharp Integration for Paystack.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var client = new RestClient("https://api.paystack.co/transaction/initialize"); | |
var request = new RestRequest(Method.POST); | |
request.AddHeader("content-type", "application/x-www-form-urlencoded"); | |
request.AddHeader("authorization", "Bearer SECRET_KEY"); | |
request.AddParameter("application/x-www-form-urlencoded", "[email protected]&amount=10000", ParameterType.RequestBody); | |
IRestResponse response = client.Execute(request); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment