cybersource-rest-client
Version:
Node.js SDK for the CyberSource REST API
103 lines (66 loc) • 3.51 kB
Markdown
//apitest.cybersource.com*
Method | HTTP request | Description
------------- | ------------- | -------------
[**getPaymentCredentialsForTransientToken**](TransientTokenDataApi.md
[**getTransactionForTransientToken**](TransientTokenDataApi.md
<a name="getPaymentCredentialsForTransientToken"></a>
> 'String' getPaymentCredentialsForTransientToken(paymentCredentialsReference)
Get Payment Credentials
Retrieve the Payment data captured by Unified Checkout. This API is used to retrieve the detailed data represented by the Transient Token. This API will return PCI payment data captured by the Unified Checkout platform.
```javascript
var CyberSource = require('CyberSource');
var apiInstance = new CyberSource.TransientTokenDataApi();
var paymentCredentialsReference = "paymentCredentialsReference_example"; // String | The paymentCredentialsReference field contained within the Transient token returned from a successful Unified Checkout transaction
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getPaymentCredentialsForTransientToken(paymentCredentialsReference, callback);
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**paymentCredentialsReference** | **String**| The paymentCredentialsReference field contained within the Transient token returned from a successful Unified Checkout transaction |
**'String'**
No authorization required
- **Content-Type**: application/json;charset=utf-8
- **Accept**: application/jwt
<a name="getTransactionForTransientToken"></a>
> getTransactionForTransientToken(transientToken)
Get Transient Token Data
Retrieve the data captured by Unified Checkout. This API is used to retrieve the detailed data represented by the Transient Token. This API will not return PCI payment data (PAN). Include the Request ID in the GET request to retrieve the transaction details.
### Example
```javascript
var CyberSource = require('CyberSource');
var apiInstance = new CyberSource.TransientTokenDataApi();
var transientToken = "transientToken_example"; // String | Transient Token returned by the Unified Checkout application.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.getTransactionForTransientToken(transientToken, callback);
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**transientToken** | **String**| Transient Token returned by the Unified Checkout application. |
null (empty response body)
No authorization required
- **Content-Type**: application/json;charset=utf-8
- **Accept**: application/json
All URIs are relative to *https: