Exemplo n.º 1
0
 /**
  * Remove a payment session record or change the state of a payment session record.
  *
  * @param VirtualCurrencyPaymentSession $paymentSession
  * @param string                        $txnStatus
  */
 protected function removePaymentSession($paymentSession, $txnStatus)
 {
     // If status is NOT completed set the state of the session to pending.
     /** @todo do it in next release */
     if (strcmp("completed", $txnStatus) != 0) {
         // If transaction status is completed, remove the record.
     } elseif (strcmp("completed", $txnStatus) == 0) {
         $paymentSession->delete();
     }
 }