Jump to content

Nayana Chandran

Members
  • Posts

    15
  • Joined

  • Last visited

About Nayana Chandran

  • Birthday 04/04/1994

Profile Information

  • First Name
    Test
  • Last Name
    test

Recent Profile Visitors

207 profile views

Nayana Chandran's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi sir, Good morning I am storing the essential information in the database about the payment only after fraud verification, I need to check the transaction details with transaction id, date, success status & etc. And the process is calling inside a custom controller, there I need the above mentioned details .... I hope that you got my process
  2. Thank you sir, First of all I didn't store any payment details in $cookie. The response variable hold only Transaction id, date, and success/failure status. The customer sensitive data like customer card details, cvc, iban in case of Credit card and other payments like Paypal, SEPA will be masked and extract from response before save to cookie. I am verifying fraud check by "callback sms", so my need is to get Transaction id and status after redirecting to controller. I thought like store these limited array data in cookie instead of store each variable like : $cookie->__set($payment.'_tid', $response['tid']); $cookie->__set($payment.'_date', $response['date']); $cookie->__set($payment.'_status', $response['status']); Because it will optime in a single line via using array. I realised that the array data can't set into a cookie variable, so only proceed with serialize the array. That also get failed. Now I use another way to store array of data like , first I encode the data then serialize.. Now my coding looking like : $this->context->cookie->{$payment.'_response'} = serialize(json_encode($response)); and am getting the above serialized data from cookie like : json_decode(unserialize($this->context->cookie->{$payment.'_response'})) It's now working correctly. Is it a better idea ??? I hope Again thanks for your sharing sir.
  3. Hi, I am doing in my module.php file. Also tried $this->context->cookie->__set($payment.'_response', serialize($response)); In both case, I can use the above cookie value with in the function, or within the class, After I redirect to any controller the the serialized cookie value is not getting (not even empty). If am set a single value to cookie, it will getting in controller. I need to pass the entire array, I can I make it possible ? Suggest any idea ..
  4. Guys, If anyone knows, how to store an array of values in prestashop cookie ? .. I used : $this->context->cookie->{$payment.'_response'} = serialize($response); here $response is an array. But it not getting success.
  5. Hii guys, If the transaction get failed means, how it will maintain ?? Cart will clear once after the payment is completed, either it is success or failed is right ??
  6. Dear Guys, I am facing an issue which is detailed below, Am using prestashop 1.7 and developing payment module. Am redirecting to index page even failed with payment. I need to stay in checkout once I failed in transaction. How can I make it possible ?? My cart getting clear after one transaction, whether it is success or failed. . If any one can please suggest solution ... Warm welcome for suggestions.. Thanks in advance
  7. Dear jboku8, Please go through the link: http://doc.prestashop.com/display/PS16
  8. Guys, I tried to add a credit card form in my payment module, And my code is below. public function getEmbeddedPaymentOption($data, $embeddedOption) { $embeddedOption->setCallToActionText($this->l($data['payment_name'], array(),'Modules.Mymodule.admin')) ->setAdditionalInformation($this->context->smarty->fetch($data['info_tpl'])) ->setForm($this->generatePaymentForm($data['payment_name'])) ->setLogo(Media::getMediaPath(_PS_MODULE_DIR_.$this->name.$data['logo_path'])); return $embeddedOption; } public function generatePaymentForm($payment) { $this->context->smarty->assign([ 'payment' => $payment, ]); return $this->context->smarty->fetch('module:mymodule/views/templates/front/payment_form.tpl'); } How the setForm will execute, I didn't show any form in payment page. If any one can please share. I enabled debug mode, and there is no more errors Thanks in advance
  9. Thank you so much.. Also I found that a new payment hook "paymentoptions" is introduced in Prestashop 1.7. and tried it my custom module, It's working fine. And my hookpaymentoption function now looking like this: public function hookPaymentOptions($params) { if (!$this->active) { return; } if (!$this->checkCurrency($params['cart'])) { return; } $payment_options = [ $this->getOfflinePaymentOption(), $this->getExternalPaymentOption(), $this->getEmbeddedPaymentOption(), $this->getIframePaymentOption(), ]; return $payment_options; } Readmore: http://developers.prestashop.com/module/50-PaymentModules/index.html
  10. I analyzed and found some of the payment module versions are not compatible with Prestashop version 1.7.0.0. A lot of things have changed since the release of 1.6.x. Few of the technical aspects related with Payment modules are mentioned below. 1. PrestaShop 1.7 includes a new architecture based on the Symfony framework, along with its Twig templating engine. 2. The front office hooks have seen a bit of evolution. Some have been moved, some have been removed, and some have been created. 3. Some of the smarty variables used in Prestashop 1.6.x and it's lower series are deprecated in Prestashop version 1.7. 4. The method to call the templates have changed in Prestashop 1.7. I tried to find some of the payment related hooks for implementation, still I didn't found hookpayment operation in new version... If anyone can please share
  11. I have an account in prestashop addons forum, but am not able to upload my module. If anyone can help me please -- Thanks in advance Nayana
×
×
  • Create New...