The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
$this->type & 2Checkout Paid Subscription
Hi everyone,
I'm pretty much almost finished coding the IPN for 2Checkout's Paid Subscriptions. Although I'm unsure as to where I'm going wrong with this problem: I set the $this->type to 2 when a payment is refunded which as a result disables the subscription. However, the 'state' in the 'paymenttransaction' table does not change to 2, it remains to whatever it's already set to. Although this doesn't pose much of a problem, considering it does correctly disable the subscription, but for logging and management purposes, I'd want to see why it was disabled in the first place and be aware of who reversed payments, which can be done by knowing the state (2) is 'Reversed'. Should setting $this->type = 2 in the appropriate place on the class_2checkout.php file automatically update the 'state' in the 'paymenttransaction' table or is there more to it? If the transaction doesn't exist, it will INSERT the correct state along with the other data. Any help will be highly appreciated. --------------- Added [DATE]1362340607[/DATE] at [TIME]1362340607[/TIME] --------------- I'm currently going around this with: Code:
$this->registry->db->query_first("UPDATE " . TABLE_PREFIX . "paymenttransaction SET state = 2 WHERE transactionid = ".$this->transaction_id.""); I'd like some put if anyone has any idea, on whether this is the best method and/or if it should automatically update it just by setting the this->type |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|