Last active
June 3, 2019 09:15
-
-
Save PatilShreyas/94f1080939ba1d801d9d24bab1b14c43 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void onTransactionCompleted(TransactionDetails transactionDetails) { | |
// Transaction Completed | |
Log.d("TransactionDetails", transactionDetails.toString()); | |
} | |
@Override | |
public void onTransactionSuccess() { | |
// Payment Success | |
Toast.makeText(this, "Success", Toast.LENGTH_SHORT).show(); | |
} | |
@Override | |
public void onTransactionSubmitted() { | |
// Payment Pending | |
Toast.makeText(this, "Pending | Submitted", Toast.LENGTH_SHORT).show(); | |
} | |
@Override | |
public void onTransactionFailed() { | |
// Payment Failed | |
Toast.makeText(this, "Failed", Toast.LENGTH_SHORT).show(); | |
} | |
@Override | |
public void onTransactionCancelled() { | |
// Payment Cancelled by User | |
Toast.makeText(this, "Cancelled", Toast.LENGTH_SHORT).show(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment