コード例 #1
0
ファイル: Charges.cs プロジェクト: PayDock/paydock_dotnet_sdk
        public ChargeResponse Authorise(ChargeRequestBase request)
        {
            var requestData  = SerializeHelper.Serialize(request);
            var responseJson = _serviceHelper.CallPaydock("charges?capture=false", HttpMethod.POST, requestData, overrideConfigSecretKey: _overrideConfigSecretKey);

            var response = SerializeHelper.Deserialize <ChargeResponse>(responseJson);

            response.JsonResponse = responseJson;
            return(response);
        }
コード例 #2
0
 public async Task <ChargeResponse> Authorise(ChargeRequestBase request)
 {
     return(await _serviceHelper.Post <ChargeResponse, ChargeRequestBase>(request, "charges?capture=false", overrideConfigSecretKey : _overrideConfigSecretKey));
 }
コード例 #3
0
 public async Task <ChargeResponse> Add(ChargeRequestBase request)
 {
     return(await _serviceHelper.Post <ChargeResponse, ChargeRequestBase>(request, "charges", overrideConfigSecretKey : _overrideConfigSecretKey));
 }