Jump to content

p500plus

Members
  • Posts

    6
  • Joined

  • Last visited

Profile Information

  • First Name
    Pavol
  • Last Name
    Prusakovič

p500plus's Achievements

Newbie

Newbie (1/14)

0

Reputation

1

Community Answers

  1. Cely problém bol v tom že v tabuľke "order_invoice_payment" chýbal záznam o vytvorenej faktúre. Riešenie bolo pridať danej objednávke faktúru. Pred vyššie uvedene riadky kódu stačilo pridať toto: $orderObj = new Order($orderId); $orderObj->setInvoice(true);
  2. Zdravim, pracujem na jednom module pre platobnu branu. V pripade neuspesnej platby mam 2 moznosti ako na to reagovat. 1. nevytvarat objednavku a nechat zakaznika aby presiel cely proces objednavky znovat 2. vytvorim objednavku ale dam moznost zakaznikovi zaplatit. Prave pri druhom sposobe mam problem. Ak zakaznik ide znovu platit a na 2x sa mu podari zaplatit spracujem notifikacnu spravu a chcem zmenit stav objednavky. $history = new OrderHistory(); $history->id_order = (int)$orderId; $history->changeIdOrderState(Configuration::get('PAYMENT_OK'), (int)($orderId)); $history->addWithemail(true); Po vykonani vyssie uvedeneho kodu sa mi zmeni stav objednavky na OK avsak pri fakture mi zmizne sposob platby. *V obrazku je faktura a detail v inom jazyku ale robi to aj ked je nastaveny rovnaky jazyk. Ak si pozriem detail objednavky tak tam sposob platby vidim spravne. Vie niekto v com by to mohlo pripadne, ak robim nieco zle z toho co je popisane vyssie dajte mi vediet. Dakujem
  3. Hello, i have issue with changing Order History from backend. Example I have order with FAILed payment so i let he customer to pay again. This is no problem. After payment i get notification with result - OK. So i want to change order status from "Payment FAIL" to "Payment OK" I have used this code $history = new OrderHistory(); $history->id_order = $orderId; $history->changeIdOrderState($newStatusId, $orderId); After this in admin i can see the new status but it has no record in order history and on front end there is always the first status (FAIL) with no change. Can someone help me what have i done wrong? What is the right way to do this?
  4. I have already solved my problem.If someone is interested in solution its something like this: $cart = new Cart($cartId); $customer = new Customer($cart->id_customer); $currency = new Currency($cart->id_currency); $total = (float)$cart->getOrderTotal(true, Cart::BOTH); $this->module->validateOrder($cart->id, $pspStatusId, $total, $this->module->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key);
  5. Hello, im working on a payment module and i have issue with creating order after the payment. Payment service provider redirect user after payment on redirection page but than send a post to notification url (pure backend comunication). Redirect and notification is asynchronous. After processing notification message i know payment result and cart id. Is there any way to create order from backend with only cart id? Or in other words is there a way to access context->cart with specific id from backend? Looking forward to your replies
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More