-
- All Implemented Interfaces:
-
android.os.Parcelable
public class YooKassaInfo implements Parcelable
Provides access to confiramtion url, callback url and status. This information is required to check the transaction status and do confirmation if needed.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringconfirmationUrlprivate final StringcallbackUrlprivate final YooKassaStatusstatuspublic final static Parcelable.Creator<YooKassaInfo>CREATOR
-
Constructor Summary
Constructors Constructor Description YooKassaInfo(String confirmationUrl, String callbackUrl, YooKassaStatus status)Creates YooKassaInfo.
-
Method Summary
Modifier and Type Method Description StringgetConfirmationUrl()Returns confirmation url if it's available. StringgetCallbackUrl()Returns callback url if it's available. YooKassaStatusgetStatus()Returns the payment status. intdescribeContents()voidwriteToParcel(Parcel dest, int flags)booleanequals(Object o)inthashCode()-
-
Constructor Detail
-
YooKassaInfo
YooKassaInfo(String confirmationUrl, String callbackUrl, YooKassaStatus status)
Creates YooKassaInfo.- Parameters:
confirmationUrl- the confirmation url in case the user will need to take additional action, for example, complete 3-D Secure identification when paying via bank card, confirm the payment at a partner’s payment service, or pay an invoice in Internet bankingcallbackUrl- the callback url to finalize the payment, must be called once confirmation is donestatus- the YooKassaStatus of the payment, by default it's UNDEFINED
-
-
Method Detail
-
getConfirmationUrl
@Nullable() String getConfirmationUrl()
Returns confirmation url if it's available.
-
getCallbackUrl
@Nullable() String getCallbackUrl()
Returns callback url if it's available.
-
getStatus
@NonNull() YooKassaStatus getStatus()
Returns the payment status.
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
hashCode
int hashCode()
-
-
-
-