public interface CardTokensApi
Returned card information contains a member called primary, which says whether the card is a customer’s primary card. Its value is true if the card is a customer’s primary card, false if it is a non-primary card of the customer, and null if it is not associated with a customer.
A card token can only be used once, to create either a charge or a customer. If no charge or customer is created within 1 month, the token is automatically expired.
| Modifier and Type | Method and Description |
|---|---|
CardResponse |
create(Card card)
Creates a card token and returns its details.
|
CardResponse create(Card card) throws java.io.IOException
card - The card specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.