WPPizza – A Restaurant Plugin for WordPress › Support › Add-Ons › Gateways › Authorize.net (SIM) › authorize.net CIM Addon Suggestion
- AuthorPosts
- 10 January, 2015 at 7:50 pm #6990
thats because i’m talking gibberish
change
add_action(‘wppiza_gateway_anet_verified’,$gatewayReply,$orderId);
to
do_action(‘wppiza_gateway_anet_verified’,$gatewayReply,$orderId);
(i edited the code above to reflect this )
10 January, 2015 at 7:58 pm #6991This reply has been marked as private.11 January, 2015 at 1:01 pm #6996This reply has been marked as private.12 January, 2015 at 8:19 am #6999>Thanks for being so kind
you’re welcome
12 January, 2015 at 10:52 am #7019I need to have authorize.net loginid and transaction key in theme function function.
Is there any way to do this?.
In your plugin code you have
gatewayOptions[‘GwLoginId’]
gatewayOptions[‘GwTransactionKey’]
but i guess i can’t access these directly in my theme function.php12 January, 2015 at 11:00 am #7020change
do_action('wppiza_gateway_anet_verified',$gatewayReply, $orderId);
to
do_action('wppiza_gateway_anet_verified',$gatewayReply, $orderId , $this->gatewayOptions);
and then do
add_action('wppiza_gateway_anet_verified','my_function',10,3); function my_function($gwreply,$orderid,$gwoptions){ /* do your cim stuff with the reply from authorize.net contained in $gwreply */ /*plugin options will be in $gwoptions */ /* fyi: $orderid is the id of the order in the wppizza_orders table ...just in case you need it for something*/ }
obviously that do_action change will be in the next update
12 January, 2015 at 5:21 pm #7030Thanks again.
14 April, 2015 at 4:01 pm #9132for your info.
finally i had some time to update the authorize.net gateway.
although the action hooks we talked about above are still in there and should still work as described, it might not be a bad idea to check your CIM things once if/when you update the pluginagain, it should still all be fine, but better safe than sorry i guess and i just thought i’d mention it as quite a lot has changed in the plugin to make it – at least a bit – less messy (after all the previous version is almost a year old)
- AuthorPosts
- The topic ‘authorize.net CIM Addon Suggestion’ is closed to new replies.