I've been implementing a neos and a tripledeal payment provider for the past few weeks and i'm nearing completion of them (most propably i'll donate them to the community when they are finished and tested)
but i have one small problem now. i cant find out how to change the state from "pending" to "post_checkout" when the order is sent to the payment provider and from "post_checkout" to "post_payment" after the payment provider replies back.
I use this code:
function uc_neos_ok() {
unset($_SESSION['cart_order'], $_SESSION['do_complete']);
uc_cart_empty(uc_cart_get_id());
$id = $_GET["orderID"];
if ($id < 1) {
drupal_access_denied();
return;
}
uc_order_comment_save($id, $user->uid, t('Bestel proces afgerond door klant'), 'admin');
uc_order_update_status($id, uc_order_state_default('post_checkout'));
return variable_get('neos_success_msg', '');
}but the order always stays "pending".
complete module is in the attachment
| Attachment | Size |
|---|---|
| uc_neos_payment.zip | 4.14 KB |







Joined: 12/18/2007