PaymentMetadata

  • 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.

public final class PaymentMetadata extends Object
implements 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
fromJson ( String paymentMetadataJson)
Constructs PaymentMetadata from a JSON object serialized as a string.
String
toJson ()
Returns PaymentMetadata in JSON format.
void
writeToParcel ( Parcel dest, int flags)

Inherited Method Summary

Fields

Public Methods

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 .

public void writeToParcel ( Parcel dest, int flags)

Design a Mobile Site
View Site in Mobile | Classic
Share by: