Ejemplo n.º 1
0
 /**
  * @test
  * 2016-11-17
  */
 public function t01()
 {
     /** @var T $t */
     $t = df_trans(310);
     /** @var OP $op */
     $op = dfp_by_trans($t);
     /** @var bool $isTest */
     $isTest = dfp_is_test($op);
     $this->assertTrue(is_bool($isTest));
 }
Ejemplo n.º 2
0
/**
 * 2016-11-17
 * @param T|int|null $t [optional]
 * @param bool|mixed $rt [optional]
 * @param bool|mixed $rf [optional]
 * @return bool|mixed
 */
function df_trans_is_test($t = null, $rt = true, $rf = false)
{
    return dfp_is_test(dfp_by_trans(df_trans($t))) ? $rt : $rf;
}
Ejemplo n.º 3
0
 /**
  * 2016-07-10
  * @return IOP|OP
  */
 public function payment()
 {
     return dfc($this, function () {
         /** @var IOP|OP $result */
         $result = dfp_by_trans($this->requestTransaction());
         dfp_trans_id($result, $this->responseTransactionId());
         return $result;
     });
 }
Ejemplo n.º 4
0
/**
 * 2016-08-20
 * @see df_trans_by_payment()
 * @param T $t
 * @return IMethod|Method;
 */
function dfp_method_by_trans(T $t)
{
    return dfp_by_trans($t)->getMethodInstance();
}