cybersource-rest-client
Version:
Node.js SDK for the CyberSource REST API
116 lines (76 loc) • 4.59 kB
Markdown
All URIs are relative to *https://apitest.cybersource.com*
Method | HTTP request | Description
------------- | ------------- | -------------
[**getCardArtAsset**](TokenApi.md
[**postTokenPaymentCredentials**](TokenApi.md
<a name="getCardArtAsset"></a>
> InlineResponse2001 getCardArtAsset(instrumentIdentifierId, tokenProvider, assetType)
Retrieve Card Art
Retrieves Card Art for a specific Instrument Identifier. The Card Art is a visual representation of the cardholder's payment card. Card Art is only available if a Network Token is successfully provisioned.
### Example
```javascript
var CyberSource = require('CyberSource');
var apiInstance = new CyberSource.TokenApi();
var instrumentIdentifierId = "instrumentIdentifierId_example"; // String | The Id of an Instrument Identifier.
var tokenProvider = "tokenProvider_example"; // String | The token provider.
var assetType = "assetType_example"; // String | The type of asset.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getCardArtAsset(instrumentIdentifierId, tokenProvider, assetType, callback);
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**instrumentIdentifierId** | **String**| The Id of an Instrument Identifier. |
**tokenProvider** | **String**| The token provider. |
**assetType** | **String**| The type of asset. |
[**InlineResponse2001**](InlineResponse2001.md)
No authorization required
- **Content-Type**: application/json;charset=utf-8
- **Accept**: application/json;charset=utf-8
<a name="postTokenPaymentCredentials"></a>
> 'String' postTokenPaymentCredentials(tokenId, postPaymentCredentialsRequest, opts)
Generate Payment Credentials for a TMS Token
| | | | | --- | --- | --- | |**Token**<br>A Token can represent your tokenized Customer, Payment Instrument, Instrument Identifier or Tokenized Card information.| |**Payment Credentials**<br>Contains payment information such as the network token, generated cryptogram for Visa & MasterCard or dynamic CVV for Amex in a JSON Web Encryption (JWE) response.<br>Your system can use this API to retrieve the Payment Credentials for an existing Customer, Payment Instrument, Instrument Identifier or Tokenized Card.<br>Optionally, **authenticated identities** information from Passkey authentication can be provided to potentially achieve liability shift, which may result in the return of an e-commerce indicator of 5 if successful.
### Example
```javascript
var CyberSource = require('CyberSource');
var apiInstance = new CyberSource.TokenApi();
var tokenId = "tokenId_example"; // String | The Id of a token representing a Customer, Payment Instrument or Instrument Identifier.
var postPaymentCredentialsRequest = new CyberSource.PostPaymentCredentialsRequest(); // PostPaymentCredentialsRequest |
var opts = {
'profileId': "profileId_example" // String | The Id of a profile containing user specific TMS configuration.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.postTokenPaymentCredentials(tokenId, postPaymentCredentialsRequest, opts, callback);
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**tokenId** | **String**| The Id of a token representing a Customer, Payment Instrument or Instrument Identifier. |
**postPaymentCredentialsRequest** | [**PostPaymentCredentialsRequest**](PostPaymentCredentialsRequest.md)| |
**profileId** | **String**| The Id of a profile containing user specific TMS configuration. | [optional]
**'String'**
No authorization required
- **Content-Type**: application/json;charset=utf-8
- **Accept**: application/jose;charset=utf-8