Search the Community
Showing results for tags 'recurring'.
-
Hello there! I have some trouble these three last days with an addon development. My shop will be able to manage recurring payment (subscription) with SDD and debit card. For this reason I bought 2 addons : Atos Worldline SIPS A subscription addon called pm_subscription. This last module doesn't manage Worldline payment so I need to implement my own payment method in this addon. For this, I have to create a <form> which send to an external Worldline link (a wallet configuration page) the customer, and the seller bank information. The main goal here is to let the customer be redirected on the Worldline link which requests POST information (said before). So I tried to create a <form> on the right .tpl: <form id="enablePayment" action="{url entity='module' name='pm_subscription' controller='redirectPayment'}" method="post"> <input type="hidden" name="subid" value="{$subscriber->id|intval}" /> <input type="submit" value="Configurer le paiement" name="enablePayment" rel="nofollow" class="btn btn-primary" title="Configurer paiement" data-id- subscriber="{$subscriber->id|intval}"/> </form> As you can see, I redirect the action to a front module controller that I created: class pm_subscriptionRedirectPaymentModuleFrontController extends ModuleFrontController { public function postProcess() { // Include payments modules include(_PS_MODULE_DIR_.'pm_subscription'.DIRECTORY_SEPARATOR.'models' .DIRECTORY_SEPARATOR.'payment_modules'.DIRECTORY_SEPARATOR.'SubPaymentModuleWorldline.php'); include(_PS_MODULE_DIR_.'pm_subscription'.DIRECTORY_SEPARATOR.'models' .DIRECTORY_SEPARATOR.'payment_modules'.DIRECTORY_SEPARATOR.'SubPaymentModuleSEPA.php'); if (isset($_POST['subid'])) { // @TODO vérifier subid $subid = pSQL($_POST['subid']); // Récupérer méthode de paiement choisie $row = self::getMethod($subid); if ($row['payment_identifier'] == "worldline") { // CB SubPaymentModuleWorldline::addCardWallet(); } elseif ($row['payment_identifier'] == "sdd") { // SEPA echo 'SEPA Direct Debit!'; } else { echo "oopsi! " .var_dump($row); // @TODO gérer } //... Here is the addCardWallet() function: public function addCardWallet($isTest = true) { $worldline = new Worldline(); // Define the page to redirect after payment $protocol = Configuration::get('PS_SSL_ENABLED') ? 'https://' : 'http://'; $return_page = $protocol.htmlspecialchars($_SERVER['HTTP_HOST'], ENT_COMPAT, 'UTF-8').__PS_BASE_URI__; $return_page .= 'subscriptions/main?return=worldline'; // @TODO optimize URL $atos_mode = true;//stub $version_key = $worldline->getVersionKey($atos_mode); $merchant_id = ''; // If we are in production mode $atos_mode ? $merchant_id = Configuration::get('ATOS_MERCHANT_ID') : $merchant_id = '002001000000001'; // Data we need to send // @TODO dynamic merchant wallet Id $param = 'merchantId='.$merchant_id.'|normalReturnUrl='.$return_page; $param .= '|keyVersion='.$version_key.'|merchantWalletId=14702'; $param .= '|paymentMeanBrandList=CB,VISA,MASTERCARD'; $param .= '|requestDateTime='.date("Y-m-d H:i:s"); // Request secure $secret_key = worldline::getSecretKey($atos_mode); $data = utf8_encode($param); $seal = hash('sha256', $data.$secret_key); $connector_url = 'https://payment-webinit-sogenactif.test.sips-atos.com/walletManagementInit'; /* POST Request without form */ // data part $content = http_build_query(array( 'Data' => $param, 'InterfaceVersion' => 'HP_2.9', 'Seal' => $seal )); // protocol part $context = stream_context_create(array( 'http' => array( 'method' => 'POST', 'header' => 'Content-Type: application/x-www-form-urlencoded', 'content' => $content ) )); return file_get_contents($connector_url, null, $context); } This function create a POST request and send it to the Worldline wallet page. The problem is that this method doesn't work. Because my front module controller needs to return a template page! I think I didn't understand how to resolve cleanly my need. I considere myself good at PHP but need to learn more how to use correctly the Prestashop CMS. Could you please help me for that? Thank you. Tend0
-
- form
- postprocess
-
(and 5 more)
Tagged with:
-
Hi, Ich suche zur Zeit ein Modul mit dem ich kostenpflichtige Club Abonnements mit automatisch wiederkehrende Zahlungen anbieten kann. Zentrale Funktion ist das der Kunde einmal im Prestashop ein Club Abo bestellt und dann monatlich eine Gebühr via PayPal abgebucht wird. (andere Zahlungsmethoden wären spannend sind aber nicht entscheidend) Das ganze sollte natürlich möglichst rechtssicher, funktionsfähig und relativ leicht zu integrieren sein. Hat jemand Erfahrung mit dem Anbieten von kostenpflichtigen Abos im Prestashop und kann mir dabei weiterhelfen? Ich benutze das offizielle PayPal Plus Modul Incl PayPal Kauf auf Rechnung / Klara bzw. Sofort / Zahlung per Überweisung Module in diesem Bereich habe ich bisher folgende gefunden: https://addons.prestashop.com/de/abonnementzahlung/22911-soo-paypal-subscriptions-recurring-payment.html Modulpreis liegt bei 299 Euro https://addons.prestashop.com/de/zahlung-per-kreditkarte-oder-wallet-paypal/9[spam-filter]paypal-rec.html Modul Preis 99 Euro https://addons.prestashop.com/de/zahlung-per-kreditkarte-oder-wallet-paypal/24276-paypal-recurring-sell-subscription-products-services.html Modul für 120 Euro und zu dem Modul SOO PayPal Subscriptions für 299 Euro habe ich folgenden Thread gefunden - ich denke dass ich aber gar nicht so viele Funktionen brauche wie dieses - https://www.prestashop.com/forums/topic/528992-soo-subscriptions-automated-recurring-payment-with-paypal-visa-p16-17/?tab=comments#comment-2663309 Vielen Dank im Voraus für euro Bemühungen und viele Grüße
-
- wiederkehrend
- abos
- (and 5 more)
-
Hi there I want to create a virtual product (a mobile phone price plan) that I can charge a customer for every month for 12 months (and, ideally, allow them to cancel early for a fee - but this is a nice-to-have). Is Authorize.net the best official/free module for this? They have a rather high £19/month charge (plus a transaction fee), so I'd prefer to find one that offers the same recurring billing features but without a monthly fee (just a reasonable transaction fee). This one looked ideal, but I think it's only supporting US and Ireland: https://www.prestashop.com/blog/en/set-auto-recurring-billing-online-store/ From what I can see, Skrill doesn't support recurring charges and neither does Ingenico, but I'm not 100% sure about that. Any experience of any other paid modules to achieve this would also be much appreciated. (eg. Stripe Pro II?) Many thanks in advance Steve
- 2 replies
-
- 1
-
- UK payments
- subscription
-
(and 3 more)
Tagged with:
-
Подскажите пожалуйста, существует ли OPEN SOURCE модуль для автоматических повторяющихся покупок в prestashop (например ежемесячных услуг)? Например наподобие этого: http://www.prestashop.com/forums/topic/170060-module-recurring-services/ P.S. Или, возможно есть что-то подобное для других фреймворков?