public class ResultDelegate
extends java.lang.Object
implements com.paypal.android.MEP.PayPalResultDelegate, java.io.Serializable
Constructor and Description |
---|
ResultDelegate() |
Modifier and Type | Method and Description |
---|---|
void |
onPaymentCanceled(java.lang.String paymentStatus)
Notification that the payment was canceled.
|
void |
onPaymentFailed(java.lang.String paymentStatus,
java.lang.String correlationID,
java.lang.String payKey,
java.lang.String errorID,
java.lang.String errorMessage)
Notification that the payment has failed.
|
void |
onPaymentSucceeded(java.lang.String payKey,
java.lang.String paymentStatus)
Notification that the payment has been completed successfully.
|
public void onPaymentSucceeded(java.lang.String payKey, java.lang.String paymentStatus)
onPaymentSucceeded
in interface com.paypal.android.MEP.PayPalResultDelegate
payKey
- the pay key for the paymentpaymentStatus
- the status of the transactionpublic void onPaymentFailed(java.lang.String paymentStatus, java.lang.String correlationID, java.lang.String payKey, java.lang.String errorID, java.lang.String errorMessage)
onPaymentFailed
in interface com.paypal.android.MEP.PayPalResultDelegate
paymentStatus
- the status of the transactioncorrelationID
- the correlationID for the transaction failurepayKey
- the pay key for the paymenterrorID
- the ID of the error that occurrederrorMessage
- the error message for the error that occurredpublic void onPaymentCanceled(java.lang.String paymentStatus)
onPaymentCanceled
in interface com.paypal.android.MEP.PayPalResultDelegate
paymentStatus
- the status of the transaction