Kunaki Integration

Discussion in '3rd Party Service Providers' started by eplaton, Feb 22, 2009.

  1. eplaton

    eplaton New Member

    Joined:
    Jan 16, 2009
    Messages:
    2
    I would like to have kunaki integrated into Amember. I have 4 levels

    1)Free
    2)gold
    3)platinum
    4)diamond

    For all membership levels other than Free I would like to have a DVD sent to the customers using Kunaki at http://www.kunaki.com/

    Has anyone been successful implementing that? I found scripts like http://www.thediscbuddy.com/ which integrate into paypal, but I don't know how to make them return the information to Amember to notify the sale has been made. Any help would be appreciated.

    Plato
  2. coderxo

    coderxo New Member

    Joined:
    Mar 1, 2009
    Messages:
    16
    Kunaki integration script available here
  3. dan_kelly

    dan_kelly New Member

    Joined:
    Aug 29, 2006
    Messages:
    91
    Can you give some details on what your plugin handles?

    - Get shipping options for a prospective order?
    - If your script gets shipping prices, can it also handle a flat rate pricing system and only one shipping option?
    - And, can you charge just 2 different shipping prices based on US vs. International?
    - Request to manufacture and fulfill an order?
    - Receiving an order status?
    - Request for an order status?

    Any reporting?

    Etc?

    How does the script handle orders from countries that Kunaki doesn't ship to?

    Thanks!
  4. linda

    linda New Member

    Joined:
    Aug 29, 2006
    Messages:
    10
  5. dan_kelly

    dan_kelly New Member

    Joined:
    Aug 29, 2006
    Messages:
    91
    What a coincidence! I *just* found this site on my own via Google... a $20 discount is nice.

    Thanks, Linda.
  6. coderxo

    coderxo New Member

    Joined:
    Mar 1, 2009
    Messages:
    16
    Hello there daniel_k1.


    In it's current form,
    Script requests to manufacture and fulfill an order

    the script is best suited for US, CA and GB customers.

    The shipping can be edited, but is currently 'USPS First Class Mail' for US and 'Air Mail' for non-US.

    greetings,
    coderXO
  7. coderxo

    coderxo New Member

    Joined:
    Mar 1, 2009
    Messages:
    16
    I can help you with the discbuddy integration.
    Go to: coderxo.com
  8. myfairsandfestivals

    myfairsandfestivals aMember Pro Customer

    Joined:
    Jul 8, 2009
    Messages:
    1
    shipping cost in api is different

    why is it that when i query the shipping cost in API

    the result is

    USPS Priority Mail (1-3 business days - $8.00)
    UPS Ground (1-5 business days - $11.75)
    UPS 2nd Day Air (2 business days - $20.82)
    UPS Next Day Air Saver (1 business day - $34.34)

    Why the priority mail is not $4?

    here is my code

    Code:
    $XML = "<ShippingOptions>
    <Country>{$_POST["country"]}</Country>
    <State_Province>$state</State_Province>
    <PostalCode>{$_POST["zip"]}</PostalCode>
    <Product>
    <ProductId>XZZ1111111</ProductId>
    <Quantity>1</Quantity>
    </Product>
    </ShippingOptions>";
    
    $xmlResponseArr = kunaki_curl($XML);
    
    function kunaki_curl($XML) {
    $timeout = 90;
    $url = "https://Kunaki.com/XMLService.ASP"; //XML service API
    
    $ch = curl_init();  //initiate the curl session
    curl_setopt($ch, CURLOPT_URL, $url);  //set to url to post to
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);  // tell curl to return data in 
    a variable
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $XML);  // post the xml
    curl_setopt($ch, CURLOPT_TIMEOUT, (int)$timeout);  // set timeout in seconds
    $xmlResponse = curl_exec($ch);
    curl_close($ch);
    
    return xml2array($xmlResponse);
    }
    
    This is always the result when I try it
    
    USPS Priority Mail (1-3 business days - $8.00)
    UPS Ground (1-5 business days - $11.75)
    UPS 2nd Day Air (2 business days - $20.82)
    UPS Next Day Air Saver (1 business day - $34.34)
  9. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    Is it possible that it is not recognizing the address you are sending (wrong zip format, etc).. as I recall the $8 being a generic rate for Priority. If you try locally on the site UI, what rate does it give you?

    @coderxo: You are clearly awesome!
  10. coderxo

    coderxo New Member

    Joined:
    Mar 1, 2009
    Messages:
    16
    skippybosco, I am really? how ?
  11. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    Is that your picture? If so, very stylish! love the shirt, love the expression, love the peace sign..
  12. coderxo

    coderxo New Member

    Joined:
    Mar 1, 2009
    Messages:
    16
    awh. thank you skippy.
  13. robw

    robw CGI-Central Partner

    Joined:
    Dec 18, 2007
    Messages:
    267

Share This Page