What is the payment gateway you are using? There’s a lot of old ones out there that do not us the “new” purchase log mechanism that has been part of wpec for the last year or two. That might be part of it.
Thank you, whitelamp, for your response.
I’m using not standart payment gateway.
It’s called “FreeKassa”, mostly works with Russian customers/e-money.
I can change (in the FreeKass’s code) what status order gets after successful purchasing through this FreeKasss getaway – but it is not helping.
What is wrong with this “new purchase log mechanism”? Anyone knows where I can turn off order confirmation ?
Hi,
I assume you are using the gateway code available here:
http://www.free-kassa.ru/news.php?id=61
I have had a look at it and yes, it needs updating. The code updates the purchase log table directly instead of using the WPSC_Purchase_Log class, which is what gateways need to do these days. If you look in purchase-log.class.php you will see that inside save() there is a call to update_downloadable_status() which is probably something you want; also the sending of emails to the user and the admin is triggered here.
In my gateways I do something a bit like this:
$purchase_log = new WPSC_Purchase_Log( $refnum, ‘sessionid’ );
$status = WPSC_Purchase_Log::ACCEPTED_PAYMENT;
$purchase_log->set( array(
‘processed’ => $status,
‘transactid’ => $refnum,
) );
$purchase_log->save();
Yes i’m using this gateaway!
ooo big thanx, I think this is the problem’s root!
I will take a look at this class ang try to use that function – and definatelly right here about results
I’m very thankful for your help! I have successfully updated my gateaway code and it’s works fine!!!