-
- 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 String
confirmationUrl
private final String
callbackUrl
private final YooKassaStatus
status
public 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 String
getConfirmationUrl()
Returns confirmation url if it's available. String
getCallbackUrl()
Returns callback url if it's available. YooKassaStatus
getStatus()
Returns the payment status. int
describeContents()
void
writeToParcel(Parcel dest, int flags)
boolean
equals(Object o)
int
hashCode()
-
-
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()
-
-
-
-