|
1 | 1 | # CyberSource.CaptureApi |
2 | 2 |
|
3 | | -All URIs are relative to *https://api.cybersource.com* |
| 3 | +All URIs are relative to *https://apitest.cybersource.com* |
4 | 4 |
|
5 | 5 | Method | HTTP request | Description |
6 | 6 | ------------- | ------------- | ------------- |
7 | | -[**capturePayment**](CaptureApi.md#capturePayment) | **POST** /v2/payments/{id}/captures | Capture a Payment |
8 | | -[**getCapture**](CaptureApi.md#getCapture) | **GET** /v2/captures/{id} | Retrieve a Capture |
| 7 | +[**capturePayment**](CaptureApi.md#capturePayment) | **POST** /pts/v2/payments/{id}/captures | Capture a Payment |
9 | 8 |
|
10 | 9 |
|
11 | 10 | <a name="capturePayment"></a> |
12 | 11 | # **capturePayment** |
13 | | -> InlineResponse2012 capturePayment(capturePaymentRequest, id) |
| 12 | +> PtsV2PaymentsCapturesPost201Response capturePayment(capturePaymentRequest, id) |
14 | 13 |
|
15 | 14 | Capture a Payment |
16 | 15 |
|
@@ -46,60 +45,14 @@ Name | Type | Description | Notes |
46 | 45 |
|
47 | 46 | ### Return type |
48 | 47 |
|
49 | | -[**InlineResponse2012**](InlineResponse2012.md) |
| 48 | +[**PtsV2PaymentsCapturesPost201Response**](PtsV2PaymentsCapturesPost201Response.md) |
50 | 49 |
|
51 | 50 | ### Authorization |
52 | 51 |
|
53 | 52 | No authorization required |
54 | 53 |
|
55 | 54 | ### HTTP request headers |
56 | 55 |
|
57 | | - - **Content-Type**: Not defined |
58 | | - - **Accept**: application/json |
59 | | - |
60 | | -<a name="getCapture"></a> |
61 | | -# **getCapture** |
62 | | -> InlineResponse2004 getCapture(id) |
63 | | -
|
64 | | -Retrieve a Capture |
65 | | - |
66 | | -Include the capture ID in the GET request to retrieve the capture details. |
67 | | - |
68 | | -### Example |
69 | | -```javascript |
70 | | -var CyberSource = require('CyberSource'); |
71 | | - |
72 | | -var apiInstance = new CyberSource.CaptureApi(); |
73 | | - |
74 | | -var id = "id_example"; // String | The capture ID returned from a previous capture request. |
75 | | - |
76 | | - |
77 | | -var callback = function(error, data, response) { |
78 | | - if (error) { |
79 | | - console.error(error); |
80 | | - } else { |
81 | | - console.log('API called successfully. Returned data: ' + data); |
82 | | - } |
83 | | -}; |
84 | | -apiInstance.getCapture(id, callback); |
85 | | -``` |
86 | | - |
87 | | -### Parameters |
88 | | - |
89 | | -Name | Type | Description | Notes |
90 | | -------------- | ------------- | ------------- | ------------- |
91 | | - **id** | **String**| The capture ID returned from a previous capture request. | |
92 | | - |
93 | | -### Return type |
94 | | - |
95 | | -[**InlineResponse2004**](InlineResponse2004.md) |
96 | | - |
97 | | -### Authorization |
98 | | - |
99 | | -No authorization required |
100 | | - |
101 | | -### HTTP request headers |
102 | | - |
103 | | - - **Content-Type**: Not defined |
104 | | - - **Accept**: application/json |
| 56 | + - **Content-Type**: application/json;charset=utf-8 |
| 57 | + - **Accept**: application/json;charset=utf-8 |
105 | 58 |
|
0 commit comments