public class CardResult
Represents the result of a successful request to process card payment information. Contains the Square nonce of a card and the non-confidential card details.
| Constructor and Description |
|---|
CardResult(java.lang.String nonce,
Card card)
Represents the result of a successful request to process card payment information.
Contains the Square nonce of a card and the non-confidential card details.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
component1()
A one-time-use payment token that can be used with the Square Connect APIs
|
Card |
component2()
Non-confidential details about the entered card,
|
CardResult |
copy(java.lang.String nonce,
Card card)
Represents the result of a successful request to process card payment information.
Contains the Square nonce of a card and the non-confidential card details.
|
boolean |
equals(java.lang.Object p) |
Card |
getCard()
Non-confidential details about the entered card,
|
java.lang.String |
getNonce()
A one-time-use payment token that can be used with the Square Connect APIs
|
int |
hashCode() |
java.lang.String |
toString() |
public CardResult(java.lang.String nonce,
Card card)
Represents the result of a successful request to process card payment information. Contains the Square nonce of a card and the non-confidential card details.
nonce - A one-time-use payment token that can be used with the Square Connect APIsto charge the card or save the card information.card - Non-confidential details about the entered card, such as the brand and last fourdigits of the card number.public java.lang.String getNonce()
A one-time-use payment token that can be used with the Square Connect APIs
to charge the card or save the card information.
public Card getCard()
Non-confidential details about the entered card,
such as the brand and last fourdigits of the card number.
public java.lang.String component1()
A one-time-use payment token that can be used with the Square Connect APIs
to charge the card or save the card information.
public Card component2()
Non-confidential details about the entered card,
such as the brand and last fourdigits of the card number.
public CardResult copy(java.lang.String nonce, Card card)
Represents the result of a successful request to process card payment information. Contains the Square nonce of a card and the non-confidential card details.
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)