Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

can't post order_id to my payment processor system ?


Nathali

Recommended Posts

Hi,

 

I can't post the order_id (order number) to my payment processor system when I use credit card payment !

 

So I am not be able to get the order number that the customer paid on !

 

Is there a way to solve it ? or any fix to oscommerce ?

 

Please help..

 

Thank you,

 

Nathali

Best Regards,

Nathali

Link to comment
Share on other sites

Hi,

 

I can't post the order_id (order number) to my payment processor system when I use credit card payment !

 

So I am not be able to get the order number that the customer paid on !

 

Is there a way to solve it ? or any fix to oscommerce ?

 

Please help..

 

Thank you,

 

Nathali

The default CC payment module is not a real payment method. You should explain what you want to use. For most CC modules you need a payment gateway, modules like paypal provide the payment gateway.

Link to comment
Share on other sites

The default CC payment module is not a real payment method. You should explain what you want to use. For most CC modules you need a payment gateway, modules like paypal provide the payment gateway.

 

Thanks Coopco for your reply !!

 

I understood that there is a problem to post the order_id to the payment processor system because the order_id is not being generated yet...

It is only created after the checkout_process success.

 

But I heard that there is a way to solve it by:

 

1. refresh the post (something like that..)

2. In the checkout_process.php to force first to create the order, then to process the payment

 

But, I do not know how to do it ... ? :huh:

 

Any advise please how to do it Coopco ??

 

Best Regards,

 

Nathali

Best Regards,

Nathali

Link to comment
Share on other sites

Thanks Coopco for your reply !!

 

I understood that there is a problem to post the order_id to the payment processor system because the order_id is not being generated yet...

It is only created after the checkout_process success.

 

But I heard that there is a way to solve it by:

 

1. refresh the post (something like that..)

2. In the checkout_process.php to force first to create the order, then to process the payment

 

But, I do not know how to do it ... ? :huh:

 

Any advise please how to do it Coopco ??

 

Best Regards,

 

Nathali

 

You can get the next order number using something like this:

 

// A.NET INVOICE NUMBER FIX

// find the next order_id to pass as x_Invoice_Num

$next_inv = '';

$inv_id = tep_db_query("select orders_id from " . TABLE_ORDERS . " order by orders_id DESC limit 1");

$last_inv = tep_db_fetch_array($inv_id);

$next_inv = $last_inv['orders_id']+1;

// END A.NET INVOICE NUMBER FIX

 

 

You'll then need to pass the value in $next_inv to your payment processor.

 

Ed

Link to comment
Share on other sites

You can get the next order number using something like this:

 

// A.NET INVOICE NUMBER FIX

// find the next order_id to pass as x_Invoice_Num

$next_inv = '';

$inv_id = tep_db_query("select orders_id from " . TABLE_ORDERS . " order by orders_id DESC limit 1");

$last_inv = tep_db_fetch_array($inv_id);

$next_inv = $last_inv['orders_id']+1;

// END A.NET INVOICE NUMBER FIX

You'll then need to pass the value in $next_inv to your payment processor.

 

Ed

 

Thanks Ed very much for your reply !

 

Do you think it could not be a problem when 2 customers will buy at the same time ??

 

Thanks again Ed,

 

Nathali

Best Regards,

Nathali

Link to comment
Share on other sites

Thanks Ed very much for your reply !

 

Do you think it could not be a problem when 2 customers will buy at the same time ??

 

Thanks again Ed,

 

Nathali

 

Ed I tried it.. works great !!!

 

Thanks a lot !

 

Nathali

Best Regards,

Nathali

Link to comment
Share on other sites

Ed I tried it.. works great !!!

 

Thanks a lot !

 

Nathali

 

Hi,

Glad it's working. It's conceivable that if 2 people purchased at exactly the same time it could get mixed up, but I'm calling for the value in the moment right before passing the info to the processor, so there's only a very short time where that number is not assigned to an order.

 

Ed

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...