Determine order_id by it order_number

10.12.2013 17:42
#1
valentin17
Joomshopping forum user no avatar
Name: user
10.12.2011
Posts: 8
Quote
Determine order_id by it order_number

Hello! I have question about order_id.
My answer from payment system have order_number.

function getUrlParams($pmconfigs){
$params = array();

//receive answer
$payment = JRequest::getString("payment");

//parse string and receive severals variables with values, now I receive variable $order with order number
parse_str($payment);
$order_number = .............;
$params['order_id'] = ................;
$params['hash'] = "";
$params['checkHash'] = 0;
$params['checkReturnParams'] = 1;
return $params;
}

How I can determine order_id by it order_number?

Best regards.

 
10.12.2013 20:44
#2
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16487
Quote
Aw: Determine order_id by it order_number

example

$params['order_id'] = $_GET['id'];

 
11.12.2013 11:54
#3
valentin17
Joomshopping forum user no avatar
Name: user
10.12.2011
Posts: 8
Quote
Aw: Determine order_id by it order_number

In _POST answer I have only $order_number, $order_details, $total_amount and $currency. So I can't get directly order_id.


Joomla: 2.5.16
JoomShopping: 3.16.0
PHP: 5.4
 
11.12.2013 21:15
#4
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16487
Quote
Aw: Determine order_id by it order_number

I do not know how to help you. see the examples

pm_paypal.php

 
11.12.2013 22:34
#5
valentin17
Joomshopping forum user no avatar
Name: user
10.12.2011
Posts: 8
Quote
Aw: Determine order_id by it order_number

My decision is to send to server values of order_id not values of order_number.


Joomla: 2.5.16
JoomShopping: 3.16.0
PHP: 5.4
 
Copyrights MAXXmarketing GmbH. All Rights Reserved