Example #1
0
 /**
  * @param PaymentOperation $operation
  * @param Order $order
  */
 public function fillPaymentOperationWithOrderData(PaymentOperation $operation, Order $order)
 {
     $operation->setOrder($order->uid);
     $operation->setAmount($order->amount);
     $operation->setCustomerEmail($order->customer_email);
     $operation->setDescription($order->getItemsDescription());
 }