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); }
public async Task <ChargeResponse> Authorise(ChargeRequestBase request) { return(await _serviceHelper.Post <ChargeResponse, ChargeRequestBase>(request, "charges?capture=false", overrideConfigSecretKey : _overrideConfigSecretKey)); }
public async Task <ChargeResponse> Add(ChargeRequestBase request) { return(await _serviceHelper.Post <ChargeResponse, ChargeRequestBase>(request, "charges", overrideConfigSecretKey : _overrideConfigSecretKey)); }