authorize.net CIM Addon Suggestion

WPPizza – A Restaurant Plugin for WordPress Support Add-Ons Gateways Authorize.net (SIM) authorize.net CIM Addon Suggestion

Viewing 8 posts - 21 through 28 (of 28 total)
  • Author
    Posts
  • #6990
    Olly
    Admin & Mod

    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 )

    #6991
    Olly
    Admin & Mod
    This reply has been marked as private.
    #6996
    yourgautam
    Participant
    This reply has been marked as private.
    #6999
    Olly
    Admin & Mod

    >Thanks for being so kind

    you’re welcome

    #7019
    yourgautam
    Participant

    I 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.php

    #7020
    Olly
    Admin & Mod

    change

    
    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

    #7030
    yourgautam
    Participant

    Thanks again.

    #9132
    Olly
    Admin & Mod

    for 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 plugin

    again, 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)

Viewing 8 posts - 21 through 28 (of 28 total)
  • The topic ‘authorize.net CIM Addon Suggestion’ is closed to new replies.