Jump to content



Gyakutsuki

Member Since 30 Dec 2002
OFFLINE Last Active Today, 02:00
-----

Topics I've Started

Payment Apps and return url for 2.4

06 April 2017 - 15:41

hello,

 

I will know if someone has been this thing or have an idea

 

I am trying to develop a new apps payment module and the bank ask me a call back url.

 

In my json I included this :

"modules": {

   "Payment": {
      "HO":	"Module\\Payment\\HO"
    }
  },
  "routes": {
    "Shop": {
      "order&desjardins&success&ho":	"Sites\\Shop\\Pages\\HO"
    }
  }

The normal call back url must be 

index.php?order&desjardins&success&ho

but in return I have this

index.php?A&Payment%5CDesjardins&index.php

The information of the receipt of desjardins is : index.php?order&desjardins&success&ho and is correct.

 

The pb come from desjardins when it redirect the link (index.php?order&desjardins&success&ho) ?

The pb come from a pb with the routes ?

 

When i look who's online I have this element : /boutique/index.php?order&desjardins&success&ho.

I am supposing the redirect url is correct but something wrong is make in the routes.

 

I don't understand why i have a wrong url.

 

Any idea to look or test ?


App and session for 2.4 osc

31 March 2017 - 22:29

Hello,

 

@Harald Ponce de Leon : could you help me ?

 

I trying to learn how to create a bank module APP with a call back url.

 

When I connect on the  server, I have a session X

When I go back on the server I have a new session Y created

 

I need  all informations about the old session X to finish the order.

 

For exemple in the cmic / desjardins in 2.3 we have this


// set the session name and save path
session_name('osCsid');
session_save_path(SESSION_WRITE_DIRECTORY);

// ********************************************************************************
// recuperation de l'id de session contenu dans texte-libre

session_id($_REQUEST['texte-libre']);

// session_id(substr($_REQUEST['texte-libre'],0,26));
// ********************************************************************************
// start the session
$session_started = false;
osc_session_start();
$session_started = true;

if ( ($session_started == true) && (PHP_VERSION >= 4.3) && function_exists('ini_get') && (ini_get('register_globals') == false) ) {
  extract($_SESSION, EXTR_OVERWRITE+EXTR_REFS);
}

// initialize a session token
if (!isset($_SESSION['sessiontoken'])) {
  $_SESSION['sessiontoken'] = session_id($_REQUEST['texte-libre']);;
}

How to translate this element in 2.4 or to have an orientation

 

TK

 

 

 


2.4 Series which modules backported in APP

25 March 2017 - 16:13

@Harald Ponce de Leon

 

Hello Harald,

 

In your plan which modules will be backported in the 2.4 app ?

 

payment/cod

 

shipping/flat

shipping/item

shipping/table

shipping/zones

 

order_total

ot_lowerfee.php

ot_shipping.php

ot_subtotal.php

ot_taxt.php

ot_total.php

 

other modules ?

 


Paypal Standard osc 2.4

16 March 2017 - 19:27

Need information about $_POST['receiver_email']

 

I have a pb in this moment with this element and $_POST['receiver_email'] is always empty.

 

I am looking to find information on the paypal return, but this information does not appear. But I saw : business.

 

In this case,  I am always redirect in shopping_cart.

in your test, do you have this problem ?

 

To resolve I inserted a comment on this line but it's not the best way solution) but in this case I have no problem with my order.

 

Tk

      if ( $result != 'VERIFIED' ) {        
        $messageStack->add_session('header', $this->app->getDef('module_ps_error_invalid_transaction'));
        OSCOM::redirect('shopping_cart.php');
      }
 
and 
 
      if (($Qorder->fetch() === false) || ($order_id != $pptx_params['invoice']) || ($_SESSION['customer_id'] != $pptx_params['custom'])) {
        OSCOM::redirect('shopping_cart.php');
      }

 


Introducing the Conversational Form : Futur of the web form ?

29 November 2016 - 14:04

What do you think, is it the futur to fill the form ? Curious to test and to have your return, opinion

 

How to integrate : an example

 

For 2.4 in includes/modules/login/template/login_form.php replace the line by tby this. Just add cf-form-element .

<?php echo HTML::form('login', OSCOM::link('login.php', 'action=process'), 'post', 'cf-form-element', ['tokenize' => true]); ?>

and add this script

<script type="text/javascript" src="https://rawgit.com/space10-community/conversational-form/master/dist/conversational-form.min.js" crossorigin></script>

It's possible also to customize to increase the relation with the customer.

 

That's all. very simple

 

For more information you can visit  : https://space10-comm...rsational-form/