Ejemplo n.º 1
0
 /**
  * @param PaymentOperation $operation
  */
 public function fillPaymentOperationWithStandardValues(PaymentOperation $operation)
 {
     $operation->setBackReference($this->returnUrl);
     $operation->setBrands($this->brands);
     $operation->setCountry($this->country);
     $operation->setCurrency($this->currency);
     $operation->setMerchant($this->merchantId);
     $operation->setMerchantGMTTimezoneOffset($this->merchantGMT);
     $operation->setMerchantName($this->merchantName);
     $operation->setMerchantUrl($this->merchantUrl);
     $operation->setTerminal($this->terminal);
     $operation->setTimestamp(gmdate('YmdHis'));
     srand();
     $operation->setNonce(strtoupper(rand(100, 999) . uniqid()));
     $operation->setStatus(PaymentOperation::STATUS_NEW);
 }
Ejemplo n.º 2
0
 /**
  * @param PaymentOperation $operation
  */
 public function fillPaymentOperationWithStandardValues(PaymentOperation $operation)
 {
     $operation->setBackReference($this->returnUrl);
     $operation->setCountry($this->country);
     $operation->setCurrency($this->currency);
     $operation->setMerchant($this->merchantId);
     $operation->setMerchantGMTTimezoneOffset($this->merchantGMT);
     $operation->setMerchantName($this->merchantName);
     $operation->setMerchantUrl($this->merchantUrl);
     $operation->setTimestamp(gmdate('YmdHis'));
     $operation->setStatus(PaymentOperation::STATUS_NEW);
 }