Ejemplo n.º 1
0
        public VaultResponse CreateToken(VaultRequest request)
        {
            var requestData  = SerializeHelper.Serialize(request);
            var responseJson = _serviceHelper.CallPaydock("vault/payment_sources", HttpMethod.POST, requestData, overrideConfigSecretKey: _overrideConfigSecretKey);

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

            response.JsonResponse = responseJson;
            return(response);
        }
Ejemplo n.º 2
0
 public async Task <VaultResponse> Create(VaultRequest request)
 {
     return(await _serviceHelper.Post <VaultResponse, VaultRequest>(request, "vault/payment_sources", overrideConfigSecretKey : _overrideConfigSecretKey));
 }