Jump to content

Search the Community

Showing results for tags 'Paymentmodule'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Community Help and Support
    • PrestaShop Download
    • PrestaShop Marketplace
  • News and Announcements
    • PrestaShop news and releases
    • PrestaShop Beta
    • PrestaShop Blogs
    • PrestaShop Meetups
  • International community (English)
    • General topics
    • PrestaShop Merchants
    • PrestaShop Developers
    • Taxes, Translations & Laws
    • Community Modules and Themes
  • Forum francophone
    • Discussion générale
    • Aide et support communautaire
    • PrestaShop pour les marchands
    • PrestaShop pour les développeurs
    • Adaptation aux lois Québécoises
    • Modules et thèmes gratuits
    • Modules et thèmes payants
  • Foro en Español
    • Discusión general
    • Soporte de la comunidad y ayuda
    • Comerciantes PrestaShop
    • Desarrolladores PrestaShop
    • Módulos y plantillas gratuitas
  • Forum italiano
    • Forum generale
    • Aiuto e supporto della Community
    • Commercianti PrestaShop
    • Sviluppatori PrestaShop
    • Aspetti legali sull'eCommerce
    • Moduli e template gratuiti
  • Deutsches Forum
    • Generelle Fragen
    • Support und Hilfe aus der Community
    • e-Commerce/Versand-Handel mit Prestashop
    • Prestashop-Entwickler
    • Anpassung an deutsches Recht
    • Kostenlose Module und Templates
    • Generelle Fragen Copy
  • Nederlandstalig forum
    • Algemeen
    • Hulp en ondersteuning, van en voor de community
    • PrestaShop-winkeliers
    • PrestaShop-ontwikkelaars
    • Het aanpassen van PrestaShop
    • Gratis modules en templates
  • Fórum em Português
    • Fórum Geral
    • Ajuda e Suporte da Comunidade
    • Lojistas que utilizam o PrestaShop
    • Desenvolvedores PrestaShop
    • Legislação específica
    • Módulos e temas gratuitos
  • Polskie forum
    • Forum ogólne
    • Wsparcie i pomoc użytkowników
    • Oferty twórców PrestaShop
    • Deweloperzy PrestaShop
    • Darmowe Moduły i Szablony
  • Dansk forum
    • Generelt forum
    • Hjælp og support fra fællesskabet
    • PrestaShop for købmænd
    • PrestaShop for udviklere
    • Love og regler
    • Gratis moduler og temaer
  • České fórum
    • Instalasi, Konfigurasi dan upgrade
    • Obecná diskuze
    • Bezplatné moduly a šablony
    • PrestaShop vývojáři
    • PrestaShop obchodníci
  • Bahasa Indonesia
    • Diskusi Umum
    • Podpora a pomoc komunity
    • Laporan Bug
    • Jasa, Promosi & Lowongan Kerja
  • Svenskt forum
    • Allmän diskussion
    • Installation, konfigurering och uppdatering
  • Forumul românesc
    • Discuţii generale
    • Instalare, configurare şi upgrade
  • Pусский язык
    • Обсуждение скрипта
    • Установка, Настройка, Обновление
    • Прием багов
  • Slovenské fórum
    • Všeobecná diskusia
    • Podpora a pomoc komunity
    • PrestaShop obchodníci
    • PrestaShop vývojári
    • Bezplatné moduly a šablóny
  • Türkçe Topluluğu
    • Genel Konular
    • Topluluk desteği ve yardım
    • PrestaShop Tüccarları
    • Prestashop Geliştiricileri
    • Ücretsiz Modül ve Temalar
  • Diễn đàn tiếng Việt
    • Thảo luận chung
    • Hỗ trợ từ cộng đồng
    • Dành cho chủ doanh nghiệp / cửa hàng
    • Dành cho lập trình viên
  • PrestaShop Communities
    • اللغه العربيه [Arabic]
    • Ελληνικά [Greek]
    • עִבְרִית [Hebrew]
    • 中文
    • Magyar [Hungarian]
    • 日本語 [Japanese]
    • Lietuviškai [Lithuanian]
    • انجمن فارسی [Persian]
    • ไทย [Thai]
    • Malaysia [Malaysian]
    • Eesti [Estonian]
    • Slovenščina [Slovenian]
    • Српски [Serbian]
  • IP. Board Forum
    • IP. Board Forum Questions and Issues
  • Archive
    • Zapłać Moduły i Szablony [ARCHIVE]
    • Moduly, upravy a dizajn [ARCHIVE]
    • Phát triển và các mô-đun [ARCHIVE]
    • Yazılım, Modül ve Tema [ARCHIVE]
    • Модули, Шаблоны [ARCHIVE]
    • Module şi teme [ARCHIVE]
    • Pengembangan dan Modul [ARCHIVE]
    • Moduler och teman [ARCHIVE]
    • Ecommerce x PrestaShop [ARCHIVE BOARD]
    • Vývoj a moduly [ARCHIVE]
    • Kostenpflichtige Module, Templates [ARCHIVE]
    • Módulos y temas pagos [ARCHIVE]
    • Módulos e temas pagos [ARCHIVE]
    • Servizi commerciali [ARCHIVE]
    • Forum - Feedback Contributor
    • PrestaShop Cloud

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 22 results

  1. Hello, i am using prestashop 8.1.4. i would like to insert a value in the $data array in PaymentModule.php form my module. This value i need to display on order_conf template to customer, which takes values from this array. But i do not want to override the (validateOrder function) PaymentModule.php and want to do that from my module that is installed. In this my module i am hooked to actionValidateOrder hook, but the params that i get from this hook are: 'cart' => $this->context->cart, 'order' => $order, 'customer' => $this->context->customer, 'currency' => $this->context->currency, 'orderStatus' => $order_status, So i can't access the $data array as far as i see, as $data is not property of order or cart objects. I also see that there is a hook in this PaymentModule.php called "actionValidateOrderAfter" but the params in this hooks are similair and as far as i think i can't access this array there too. I have made other things in my module but have two generated values that want to send to template order_conf by merging them (array_merge) to $data array. Problem is how to access this array from my module? Can anyone help me? In my module i have also registered to hook SendMailAlterTemplateVars - but the parameters there are sent only to (mailalerts module) templates - so i can not use them in the order_conf template. So how can I access this $data array from hookactionValidateOrder function in my module? Is that possible? Or where from? Regards,
  2. Hi, I'm developing an external payment module in localhost. I'm new to prestashop 1.7 and I'm stuck at one place. I have made the module. Please shed some light on this fellow beginner. Actually I made the payment module but still not able to redirect successfully to payment url and order is not being generated. After that I need to show the response status based on transaction. what's the correct way to write response status of the payment made on gateway page? I'm really badly stuck with this for a couple of days now. It would be really helpful if you could look at what I might be doing wrong or missing out? I have attached some screenshots of my module file and controller . Thanks in advance! Please guide me 🙏 Any help will be much appreciated. Thanks in advance.
  3. Kedves fórum tagok! Elérhető az Addons-on az OTP SimplePay integrálásához szükséges modul, amely nem csak a kártyás fizetés, hanem az azonnali utalás lehetőség is támogatja. Az azonnali utalás fizetési mód valamint a kártyás fizetési mód is ki/bekapcsolható a modul konfigurációs oldaláról. https://addons.prestashop.com/en/payment-card-wallet/51123-2in1-card-and-instant-wire-payment-via-otp-simplepay.html PrestaShop 1.7.x kompatibilis.
  4. If you have this problem "PaymentModule::validateOrder - Secure key does not match" and you have installed the mailchimp module, this is what creates the problem. Let's go in order. the mailchimp module sends an abandoned cart, to the customer, the customer clicks and proceeds to order. If the cart is old there is a risk of not finding the correspondence with the order, so once the customer has made the payment, prestashop does not recognize the two keys "Secure key does not match", generates an error and the customer ends up with a payment made without order in account. We have contacted the developer of the mailchimp module many times, we didn't receive any reply. We contacted mailchimp support, but they haven't created the module so they don't give assistance for it. B.
  5. Bonjour Je développe actuellement un site web vendant des produits de santé et de beauté africains 100% artisanaux sous Prestashop 1.7.7.0 et mes clients sont basés uniquement en Afrique. Pour cette raison, je souhaite développer un module de paiement d'argent mobile compatible avec la version Prestashop 1.7.7.0 (API MTN MoMo Pay: https://momodeveloper.mtn.com/widget-api) NB: budget 50 $ - 100 $ Vous savez que MTN MoMo Pay est un service de paiement et son API clairement expliquée explique comment intégrer des scripts dans un site Web. Le seul problème est que je ne comprends pas bien la conception du module dans prestashop. En effet, vous pouvez adapter le module de paiement prestashop par virement bancaire avec les scripts MTN MoMo Pay.
  6. In this boring days and to improve my Prestashop development knowledge I've done the following in a personal project: I have VPS with a preinstalled Prestashop where I introduced all my products and made some sales, so i need to mantain database. It doesn't include _dev folder so is so hard to customize default theme deeply given css and js are compiled. I've downloaded Prestashop repository to my machine, check out to branch 1.7.5.1 given is the same of the repository(later i'll upgrade to the last) and configured with apache to use it locally. I've downloaded a copy of the production database and I edited to work locally (disable SSL and changed server name to localhost) and started development. I've copied all extra installed modules from remote to my local given they are already installed so I have configured as in production. I've customized my theme on my way. I replaced preinstalled Prestashop with my custom git copy and my theme was customized but payment methods are not showing neither locally but database configuration is the same. I just can make show one of them reinstalling it. My question is: I missing any physical file with module positions configuration in hooks given the database is an exactly copy and the theme is exactly the same with same version? Thanks a lot!
  7. I am trying to modify the payment methods. I had successfully modify and change through translate module. (The Green Area) But I want to , 1. change the URL, want to replace "cheque" with something else on URL (the red circle) 2. add an image in the red box area. I tried to modify almost all files in (cheque, bank wire, cash on delivery) without success. FYI, I tried to install the Free Universal Payment Module without success. Nothing in module after I uploaded
  8. How to override PaymentModule.php ? I put copy of file /classes/PaymentModule.php into /override/classes/PaymentModule.php and changed class header into: abstract class PaymentModule extends PaymentModuleCore but it is not executed.
  9. Hi, after last step of checkout prestashop returns "Fatal error"and doesn't save the order. Debugging I found the problem in the line 244 - classes/PaymentModule.php, the customer secure_key and the cart secure_key doesn't match. This is happening in all my payment modules. The prestashop has an ERP connected where the users are created. Can you please help me?
  10. Hi, everyone I am from Malaysia and sorry for my poor english. My question is, could I direct call a validateOrder function from classes/paymentModule? Because I'm using local Payment Gateway, It is facing an issue frequently is some customer puchase items, the payment gateway has data but admin site of Prestashop do not have. The solution provided from local payment gateway is called PSQ (MERCHANT REQUEST APIs), which is let me request data from them and then Insert into Prestashop system. Anybody has idea? One of the data get from payment gateway is ReturnUrl, ReturnURL is let me process the data. So, how do I direct call validateOrder function inside ReturnURL to let me insert to Order table instead of I manually Key In data in admin? Thanks!!!
  11. Hello, I'm a french developer and i actually work on prestoshop for my boss I have a little problem with my validateOrder function ans i hope find some help on the forum So, I override the valideOrder function because i have some warehouses and won't receive splitted orders. No problems for that ... BUT , when i try to change order state , i have an error on the "front" side : ("We found problems with your order , please contact support") In my backoffice, the order is OK and no problems appears (the pink is the good state) So i don't know why and search in many topics but nothing work :/ I tried to change state whith php code in PayementModule class at the end of file : if($changestate == true){ $mystate = '31'; $new_history = new OrderHistory(); $new_history->id_order = (int)$order->id; $new_history->changeIdOrderState((int)$mystate, $order, true); } But always the error. So for simple, i just want to change the state of my order when appear in the BO , after the confirmation . Can someone help me ? Thanks
  12. Hello, Is it possible to create module which will redirect user to specific website when he/she must pay and redirects back to same page with GET parameters , after this you can grub GET parameters and change order status. Thank you.
  13. I´m testing my new store, and I get the followins errors when I try using the payment method cash on delivery. Can someone help me? I´m used to PHP. [PrestaShopException]Property OrderCartRule->name is empty at line 872 in file classes/ObjectModel.php 867. 868. $message = $this->validateField($field, $this->$field);869. if ($message !== true)870. {871. if ($die)872. throw new PrestaShopException($message);873. return $error_return ? $message : false;874. }875. }876. 877. return true; ObjectModelCore->validateFields - [line 278 - classes/ObjectModel.php]273. *274. * @return array All object fields275. */276. public function getFields()277. {278. $this->validateFields();279. $fields = $this->formatFields(self::FORMAT_COMMON);280. 281. // For retro compatibility282. if (Shop::isTableAssociated($this->def['table']))283. $fields = array_merge($fields, $this->getFieldsShop()); ObjectModelCore->getFields - [line 486 - classes/ObjectModel.php]481. }482. 483. // Database insertion484. if (Shop::checkIdShopDefault($this->def['table']))485. $this->id_shop_default = min($id_shop_list);486. if (!$result = ObjectModel::$db->insert($this->def['table'], $this->getFields(), $null_values))487. return false;488. 489. // Get object id in database490. $this->id = ObjectModel::$db->Insert_ID();491. ObjectModelCore->add - [line 1090 - classes/order/Order.php]1085. {1086. $cart_rule = new CartRule($id_cart_rule);1087. $free_shipping = $cart_rule->free_shipping;1088. }1089. $order_cart_rule->free_shipping = (int)$free_shipping;1090. $order_cart_rule->add();1091. }1092. 1093. public function getNumberOfDays()1094. {1095. $nbReturnDays = (int)(Configuration::get('PS_ORDER_RETURN_NB_DAYS', null, null, $this->id_shop)); OrderCore->addCartRule - [line 589 - classes/PaymentModule.php] - [5 Arguments]584. 585. }586. $total_reduction_value_ti += $values['tax_incl'];587. $total_reduction_value_tex += $values['tax_excl'];588. 589. $order->addCartRule($cart_rule['obj']->id, $cart_rule['obj']->name, $values, 0, $cart_rule['obj']->free_shipping);590. 591. if ($id_order_state != Configuration::get('PS_OS_ERROR') && $id_order_state != Configuration::get('PS_OS_CANCELED') && !in_array($cart_rule['obj']->id, $cart_rule_used))592. {593. $cart_rule_used[] = $cart_rule['obj']->id;594. Argument [0]8Argument [1]Argument [2]Array( [tax_incl] => 3 [tax_excl] => 3)Argument [3]0Argument [4]0 PaymentModuleCore->validateOrder - [line 59 - modules/cashondelivery/controllers/front/validation.php] - [9 Arguments]54. 55. if (Tools::getValue('confirm'))56. {57. $customer = new Customer((int)$this->context->cart->id_customer);58. $total = $this->context->cart->getOrderTotal(true, Cart::BOTH);59. $this->module->validateOrder((int)$this->context->cart->id, Configuration::get('PS_OS_PREPARATION'), $total, $this->module->displayName, null, array(), null, false, $customer->secure_key);60. Tools::redirectLink(__PS_BASE_URI__.'order-confirmation.php?key='.$customer->secure_key.'&id_cart='.(int)$this->context->cart->id.'&id_module='.(int)$this->module->id.'&id_order='.(int)$this->module->currentOrder);61. }62. }63. 64. /** Argument [0]129Argument [1]3Argument [2]96Argument [3]Pagamento na entrega (PNE)Argument [4]Argument [5]Array()Argument [6]Argument [7]Argument [8]c8552e8411f7e58eba2d98555340cd5c CashondeliveryValidationModuleFrontController->postProcess - [line 171 - classes/controller/Controller.php]166. // setMedia MUST be called before postProcess167. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))168. $this->setMedia();169. 170. // postProcess handles ajaxProcess171. $this->postProcess();172. 173. if (!empty($this->redirect_after))174. $this->redirect();175. 176. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) ControllerCore->run - [line 373 - classes/Dispatcher.php]368. // Execute hook dispatcher369. if (isset($params_hook_action_dispatcher))370. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);371. 372. // Running controller373. $controller->run();374. }375. catch (PrestaShopException $e)376. {377. $e->displayMessage();378. } DispatcherCore->dispatch - [line 28 - index.php] -------------------------------------------------------------------------------------------------------------------------------------- and the other error ------------------------------------------------------------------------------------------------------------------------------------------ [PrestaShopException]Property CartRule->name is empty at line 913 in file classes/ObjectModel.php 908. 909. $message = $this->validateField($field, $value, $id_lang);910. if ($message !== true)911. {912. if ($die)913. throw new PrestaShopException($message);914. return $error_return ? $message : false;915. }916. }917. }918. ObjectModelCore->validateFieldsLang - [line 319 - classes/ObjectModel.php] ObjectModelCore->getFieldsLang - [line 511 - classes/ObjectModel.php] ObjectModelCore->add - [line 125 - classes/CartRule.php] - [2 Arguments] CartRuleCore->add - [line 105 - modules/referralprogram/ReferralProgramModule.php] ReferralProgramModule->registerDiscount - [line 70 - modules/referralprogram/ReferralProgramModule.php] - [3 Arguments] ReferralProgramModule->registerDiscountForSponsor - [line 515 - modules/referralprogram/referralprogram.php] - [1 Arguments] ReferralProgram->hookUpdateOrderStatus - [line 512 - classes/Hook.php] - [1 Arguments] HookCore::exec - [line 102 - classes/order/OrderHistory.php] - [7 Arguments] OrderHistoryCore->changeIdOrderState - [line 667 - classes/PaymentModule.php] - [3 Arguments] PaymentModuleCore->validateOrder - [line 59 - modules/cashondelivery/controllers/front/validation.php] - [9 Arguments] CashondeliveryValidationModuleFrontController->postProcess - [line 171 - classes/controller/Controller.php] ControllerCore->run - [line 373 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 28 - index.php]
  14. Hello everyone! I am having a error that showed up randomly. Basically the ssl is working perfectly when I visit checkout on my mobile phone I can see the ssl working. I can check out on a computer fine customers have used computers easy. Not sure what happened but I am getting the "No payment module installed" even though ssl is working! If there is anyone having this problem or have a fix please let me know. I can post screen shots as well of it working on pc and not on mobile.
  15. Hi all, i have this problem: - user create a cart - use bankwire module to pay with bank-wire method When bankwire module call native PS validateOrder method (PaymentModule.php), i see this: if product qt > 0 : validateOrder set a corret orders status "pending payment" if product qt <=0 : validateOrder set "waiting to be processed" I want the order status is always "pending payment" (no problem for qt verification) <about PS: 1.5 version> Can you explain me how to configure this ? Thanx for help
  16. Hello, I upgraded a store to 1.6 and the order page wasn't displaying anything. So I set "display_errors" to "on" in define.inc and so far I got this on the order page and in the modules pannel: Strict standards: Declaration of PaymentModule::validateOrder() should be compatible with PaymentModuleCore::validateOrder($id_cart, $id_order_state, $amount_paid, $payment_method = 'Unknown', $message = NULL, $extra_vars = Array, $currency_special = NULL, $dont_touch_amount = false, $secure_key = false, Shop $shop = NULL) in C:\wamp\www\prestashop-prod\override\classes\PaymentModule.php on line 125 Here's where I am confused: there's no code on line 125, or rather, just the "}" that ends it. I thought it was one of those errors where you have to remove spaces at the end of the code (there was) but it didn't change anything. Is the override a deprecated thing I can safely remove? On another 1.6 install I have, there's no such file.
  17. Hi. What would be to your opinion the best way to work around this situation: If customer chose to pay with cash (cashondelivery module) - standard confirmation email needs to be sent immediatelly If order is paid with something, other than cash (e.g. credit card) - standard confirmation email needs to be sent only after order is set to specific status ('paid' for instance)? I'm thinking about few ways, such as overriding PaymentModule class, validateOrder method, but they seem to be too complicated for such primitive task. Any suggestions? Thanks!
  18. Hi everyone, For one of our customers we need to make a little tweak in the prestaShop order_conf.html email template. The issue is we want to (see photo) disable the <tr> (circled in red) with the discount tag if the customer has no discount, en we want to enable it when the customer is given a discount. so what i really need is 2 email templates: - order_conf.html (default) - order_conf2.html (with no discount rule) so i'd really appreciate it if anyone can help me in the right direction with this issue. Thanks in advance Paul
  19. Hola, he actualizado el prestashop a la última versión y no puedo acceder a la pestaña de módulos (posición, pago y módulos). Me sale una página en blanco de navegador. He revisado los logs del servidor y me sale este error: PHP Fatal error: Access level to PaymentModule::_getFormatedAddress() must be protected (as in class PaymentModuleCore) or weaker in Unknown on line 0 He revisado entonces la carpeta override (actualizado todos los ficheros), también la carpeta classes y hasta la de cache. En el fichero PaymentModule.php dentro de la carpeta classes he revisado y la función está como protected. He borrado los módulos de pago (vía FTP) a ver si por ahí se solucionaba y tampoco ha habido suerte. No entiendo que puede ya fallar. ¿Alguien sabe que puede pasar? Muchas gracias por vuestra ayuda. Un saludo, David
  20. Hola! Me estoy familiarizando con el desarrollo de módulos de prestashop y estoy realizando siguiendo algunos ejemplos que encuentro en GItHub de como implementar un módulo de pago. El problema que me encuentro es que quiero cobrar una comisión al cliente por usar este módulo de pago y se como cargarla al importe total del carrito para después cobrarla, pero cuando intento registrar el pedido como pagado, como el importe final difiere del importe del carrito + envio me da error en el pago. Los módulos que he visto que incorporan esta funcionalidad son de pago y no puedo ver su código para ver como han solucionado este problema. ¿como podría solucionarlo? En algunos foros dicen de cargar este importe en los gastos de envio pero no encuentro la manera de como hacerlo. Un saludo y gracias!
  21. Bonjour, Je rencontre le problème suivant J'ai effectué une installation de Prestashop 1.4.7.0. Tout s'est, semble-t-il bien passé. Mais, lorsque je vais sur Admin > Modules, aucun module n'est listé et j'ai le message d'erreur suivant : Fatal error: Class 'PaymentModule' not found in /srv/.../modules/paypal/paypal.php on line 48 Si je supprime le module Paypal (v3.4.1) sur le serveur, l'affichage de la liste des modules est rétabli et aucun message d'erreur ne s'affiche. Le même type de problème se produit avec le module Chèque v2.3 by PrestaShop, et avec le module Virement Bancaire v0.5 by PrestaShop Quelqu'un aurait-il une idée de la cause du problème ? Merci par avance pour toute aide. Cordialement, Patrick Problème résolu : le fichier PaymentModule.php avait été mal placé sur le serveur
  22. Bonjour, Lors du développement d'une surcouche de Prestashop, j'ai eu besoin de surcharger la fonction PaymentModule::validateOrder() afin d'ajouter un traitement lors de la validation d'un paiement. Tout fonctionne bien lors que la commande est validée et que le paiement fonctionne du premier coup. Par contre, lorsque l'internaute fait un mauvais code de carte bancaire puis entre ensuite un code correcte, la fonction validateOrder est appelée une première fois avec un statut 8 correspondant à une erreur de paiement. Au moment ou l'utilisateur corrige et rentre le bon code, la méthode validateOrder() n'est pas appelée. Savez-vous si c'est normal et dans ce cas, quelle méthode faut-il surcharger pour gérer ce cas particulier ? PS : Savez-vous a quelle moment exacte est lancé validateOrder() ? C'est un callback de la banque ?
×
×
  • Create New...