Purchase Transaction

Prerequisites

  • Installing SDK
  • Setup Parse Serve

Steps to Follow:

  • you can add new Purchase Transactions object by using the following snippet :

       PurchaseTransactions.logPurchase(
           "product name",
           200.3,/*amount*/
           "AED"/*curruncy*/
           new PurchaseTransactions.PurchaseTransactionsCallback(){
           @Override
           public void onSuccess() {
            Log.d("PurchaseTransactions", "success response") ;
           }
           @Override 
           public void onFail(@Nullable BaseResponse failure) {
               Log.e("PurchaseTransactions", "error response" + failure.toString()) ;
           }
          }
       );