Page Summary
-
PaymentMetadata is a Parcelable response containing metadata about the user's preferred payment method, returned by
PaymentsClient.getPaymentMetadata(PaymentMetadataRequest). -
It includes methods to convert to and from a JSON string representation.
-
The class also includes a static CREATOR field for Parcelable implementation and inherited methods from Object and Parcelable.
A Parcelable
response
that is returned by PaymentsClient.getPaymentMetadata(PaymentMetadataRequest)
which contains metadata
describing the user's preferred payment method.
Inherited Constant Summary
Field Summary
| public static final Creator < PaymentMetadata > | CREATOR |
Public Method Summary
| static PaymentMetadata | |
| String | |
| void |
Inherited Method Summary
Fields
public static final Creator < PaymentMetadata > CREATOR
Public Methods
public static PaymentMetadata fromJson ( String paymentMetadataJson)
Constructs PaymentMetadata
from a JSON object serialized as a string.
To convert back to a JSON object serialized as string use toJson()
.
For the expected format of this JSON, please see PaymentMetadata object reference documentation .
public String toJson ()
Returns PaymentMetadata
in JSON format.
For the expected format of this JSON, please see PaymentMetadata object reference documentation .

