All URIs are relative to https://checkout-test.adyen.com/v71
Method | HTTP request | Description |
---|---|---|
deleteStoredPaymentMethodsStoredPaymentMethodId | DELETE /storedPaymentMethods/{storedPaymentMethodId} | Delete a token for stored payment details |
getStoredPaymentMethods | GET /storedPaymentMethods | Get tokens for stored payment details |
deleteStoredPaymentMethodsStoredPaymentMethodId(storedPaymentMethodId, shopperReference, merchantAccount)
Delete a token for stored payment details
Deletes the token identified in the path. The token can no longer be used with payment requests.
// Import classes:
//import com.adyen.client.infrastructure.*
//import com.adyen.model.checkout.*
val apiInstance = RecurringApi()
val storedPaymentMethodId : kotlin.String = storedPaymentMethodId_example // kotlin.String | The unique identifier of the token.
val shopperReference : kotlin.String = shopperReference_example // kotlin.String | Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
val merchantAccount : kotlin.String = merchantAccount_example // kotlin.String | Your merchant account.
try {
apiInstance.deleteStoredPaymentMethodsStoredPaymentMethodId(storedPaymentMethodId, shopperReference, merchantAccount)
} catch (e: ClientException) {
println("4xx response calling RecurringApi#deleteStoredPaymentMethodsStoredPaymentMethodId")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling RecurringApi#deleteStoredPaymentMethodsStoredPaymentMethodId")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
storedPaymentMethodId | kotlin.String | The unique identifier of the token. | |
shopperReference | kotlin.String | Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. | |
merchantAccount | kotlin.String | Your merchant account. |
null (empty response body)
Configure ApiKeyAuth: ApiClient.apiKey["X-API-Key"] = "" ApiClient.apiKeyPrefix["X-API-Key"] = "" Configure BasicAuth: ApiClient.username = "" ApiClient.password = ""
- Content-Type: Not defined
- Accept: Not defined
ListStoredPaymentMethodsResponse getStoredPaymentMethods(shopperReference, merchantAccount)
Get tokens for stored payment details
Lists the tokens for stored payment details for the shopper identified in the path, if there are any available. The token ID can be used with payment requests for the shopper's payment. A summary of the stored details is included.
// Import classes:
//import com.adyen.client.infrastructure.*
//import com.adyen.model.checkout.*
val apiInstance = RecurringApi()
val shopperReference : kotlin.String = shopperReference_example // kotlin.String | Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
val merchantAccount : kotlin.String = merchantAccount_example // kotlin.String | Your merchant account.
try {
val result : ListStoredPaymentMethodsResponse = apiInstance.getStoredPaymentMethods(shopperReference, merchantAccount)
println(result)
} catch (e: ClientException) {
println("4xx response calling RecurringApi#getStoredPaymentMethods")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling RecurringApi#getStoredPaymentMethods")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
shopperReference | kotlin.String | Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. | [optional] |
merchantAccount | kotlin.String | Your merchant account. | [optional] |
ListStoredPaymentMethodsResponse
Configure ApiKeyAuth: ApiClient.apiKey["X-API-Key"] = "" ApiClient.apiKeyPrefix["X-API-Key"] = "" Configure BasicAuth: ApiClient.username = "" ApiClient.password = ""
- Content-Type: Not defined
- Accept: application/json