Option 2: Pass in your existing token
Learn how to pass in an existing token to create a Credit Card payment method, using required fields and token information for processing transactions.
In your request, pass in the following required fields. A Credit Card payment method is created by using the provided token, and the token is used in processing subsequent payment transactions.
|
Required Field |
Type |
Description |
|---|---|---|
|
accountKey |
string |
Zuora internal ID of the customer account that will own the payment method. |
|
cardMaskNumber |
string |
The masked card number. |
|
cardType |
string |
The type of the credit card. |
|
tokens |
object |
The container of the token information. Pass in your existing token information through the following nested fields in this container:
|
|
type |
string |
The type of the payment method. Specify
|
Here is an example of the API request for creating a tokenized Credit Card payment method:
{
"accountKey": "8a90d6128d45df2b018d4b90681c05x0",
"cardType": "Visa",
"cardMaskNumber": "************1111",
"tokens": {
"gatewayType": "Windcave",
"tokenId": "0000030002415853"
},
"type": "CreditCard"
}
For other optional fields, see Create a payment method .