Page 7 of 7 FirstFirst ... 567
Results 61 to 70 of 70
  1. #61
    Join Date
    Jan 2012
    Posts
    427
    Plugin Contributions
    0

    Default Re: Dwolla Payments module

    Sweet.

    So adding the following:


    "Discount": 0.00,
    "AllowFundingSources": "true",


    Will give Dwolla Users the ability to get a discount for using it (assuming that is a percentage) and now customers can initiate a transaction without needing to have a Dwolla account.


    Assuming the customer has to input their banking information and wait for the micro-deposits/validation if checking out as guest...

  2. #62
    Join Date
    Mar 2012
    Posts
    16
    Plugin Contributions
    1

    Default Re: Dwolla Payments module

    Quote Originally Posted by Limitless View Post
    Sweet.

    So adding the following:


    "Discount": 0.00,
    "AllowFundingSources": "true",


    Will give Dwolla Users the ability to get a discount for using it (assuming that is a percentage) and now customers can initiate a transaction without needing to have a Dwolla account.
    Kind of... actually the "allowFundingSources" needs to be OUTSIDE the "purchaseOrder" array so that it looks like this (note the bold and where it is, otherwise it will not show the right screen in dwolla):
    $dwollaJson = array(
    'key' => MODULE_PAYMENT_DWOLLA_API_KEY,
    'secret' => MODULE_PAYMENT_DWOLLA_API_CODE,
    //'callback' => zen_href_link('dwolla_main_handler.php', '', 'SSL',false,false,true),
    'redirect' => zen_href_link(FILENAME_CHECKOUT_PROCESS, 'referer=dwolla', 'SSL'),
    'callback' => 'put your callback url here: we do not have a handler yet, but this is where it will go',
    //sending custid,sendto, billto, and zenSessionid as orderid. Will split this up in dwolla_main_handler.php (our future callback file)
    'orderId' => $_SESSION['customer_id']. '::' . $_SESSION['billto'] . '::' . $_SESSION['sendto'] . '::' . zen_session_id(),
    'test' => (MODULE_PAYMENT_DWOLLA_SERVER == 'Test') ? 'true' : 'false',
    'allowFundingSources' => 'true',
    'purchaseOrder' => array(
    'destinationId' => MODULE_PAYMENT_DWOLLA_DESTINATION_ID,
    'discount' => $discount,

    'shipping' => $shipping,
    'tax' => $tax,
    'total' => $total - $dwolladiscount,
    'orderItems' => $items,
    'notes' => 'Order from ZenCart. Session Name ' . zen_session_name() . ' / ID #' . zen_session_id()
    )
    );

    Additionally, about the discounts, in the dwolla.php file, you will see the $dwolladiscount var. You can use one of the following two ways (note that the one for a percentage is commented out)
    // This can be discounts, low order fees, etc
    // When the value is negative, it means that
    // theres a discount(s) applied.
    // When the value is positive, there's a
    // fee applied.
    //The following is for no discount on an exact money amount:
    $dwolladiscount = 0.00;
    // Or use this for a percentage of say 1.5% fpr using dwolla:
    // $dwolladiscount = $total * 0.015
    $discount -= $dwolladiscount;
    if($discount > 0) {
    $items[] = array(
    'Description' => 'Extra Merchant Fees',
    'Name' => 'Fee',
    'Price' => $discount,
    'Quantity' => 1
    );
    } else {

    }

    What we could do is wrap that whole section up into an if condition and get environment information from settings in the modules configuration to use either the percentage or the dollar amount dynamically. I am still working on the callback feature so that this thing works pretty much like a paypal version so the orders are handled via server to server calls. I am looking to see how to move the orders from the customer basket table to the orders table without losing anything, and whether that needs to be done via the ZENID or the CustomerId. One of the two will need to be passed to dwolla and then it will be returned both as a server to server call AND as url parameters when the user is redirected back to the site. Clearly we would rather the server to server handle that as we do not know the user will always land back on the site.

    I will keep you posted. In the meantime, if you know anything about how to handle the movement of baskets to orders, let me know. And if you have any questions about the other stuff, let me know that too :-)

    Cheers

  3. #63
    Join Date
    Jan 2004
    Posts
    58,283
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Dwolla Payments module

    Quote Originally Posted by MPCReRuN View Post
    I am still working on the callback feature so that this thing works pretty much like a paypal version so the orders are handled via server to server calls. I am looking to see how to move the orders from the customer basket table to the orders table without losing anything, and whether that needs to be done via the ZENID or the CustomerId. One of the two will need to be passed to dwolla and then it will be returned both as a server to server call AND as url parameters when the user is redirected back to the site. Clearly we would rather the server to server handle that as we do not know the user will always land back on the site.
    And how exactly would you prevent duplicate orders in the event of a race condition?
    Sounds like you're building something that's fraught with all the undesired side effects of the antiquated and less reliable IPN module.
    Does their gateway not allow for reliable real-time verification?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #64
    Join Date
    Feb 2011
    Posts
    62
    Plugin Contributions
    0

    Default Re: Dwolla Payments module

    i spoke to micheal at dwolla. the new "guest checkout" has been submitted to zen-cart. i was just wondering when it will be in the payment modules plugins page?

  5. #65
    Join Date
    Jun 2005
    Location
    Portland, OR
    Posts
    178
    Plugin Contributions
    0

    Default Re: Dwolla Payments module

    This new module is great, however even when inactive (but installed) it absolutely destroys my site CSS on the payment page. Anyone else seeing this?

  6. #66
    Join Date
    Jan 2012
    Posts
    427
    Plugin Contributions
    0

    Default Re: Dwolla Payments module

    Quote Originally Posted by bi11i View Post
    This new module is great, however even when inactive (but installed) it absolutely destroys my site CSS on the payment page. Anyone else seeing this?
    Just updated to the latest version and I am not seeing anything weird with css issues.

  7. #67
    Join Date
    Jan 2012
    Posts
    427
    Plugin Contributions
    0

    Default Re: Dwolla Payments module

    The new module is missing something I think.

    I assume the second text box below the API is for the 'Secret' but its missing the definition.

    Also, what are all the other blank boxes for below the payment zones?

    Click image for larger version. 

Name:	dwolla.jpg 
Views:	9 
Size:	24.3 KB 
ID:	12492

  8. #68
    Join Date
    Jun 2005
    Location
    Portland, OR
    Posts
    178
    Plugin Contributions
    0

    Default Re: Dwolla Payments module

    Quote Originally Posted by Limitless View Post
    Just updated to the latest version and I am not seeing anything weird with css issues.
    here's what i see when the module is simple installed (not active, but just installed.) I have to remove the whole thing to remedy the enlargement issue.

    Click image for larger version. 

Name:	dw1.jpg 
Views:	6 
Size:	79.2 KB 
ID:	12493
    Click image for larger version. 

Name:	dw2.jpg 
Views:	6 
Size:	74.2 KB 
ID:	12494

  9. #69
    Join Date
    Jan 2012
    Posts
    427
    Plugin Contributions
    0

    Default Re: Dwolla Payments module

    Quote Originally Posted by bi11i View Post
    here's what i see when the module is simple installed (not active, but just installed.) I have to remove the whole thing to remedy the enlargement issue.

    Click image for larger version. 

Name:	dw1.jpg 
Views:	6 
Size:	79.2 KB 
ID:	12493
    Click image for larger version. 

Name:	dw2.jpg 
Views:	6 
Size:	74.2 KB 
ID:	12494

    That's pretty strange. Do you have firebug or developer tools installed so you can see what css is getting loaded?


    Completely as an aside, I see you are a David Thorne fan.

    :*)

  10. #70
    Join Date
    Jun 2005
    Location
    Portland, OR
    Posts
    178
    Plugin Contributions
    0

    Default Re: Dwolla Payments module

    haha, i just noticed that little bubble up there in the pic. yes, a fan for sure.

    i could get firebug put in place but i'm not knowledgeable enough to see what the issue would be. let me do some more digging.

    Quote Originally Posted by Limitless View Post
    That's pretty strange. Do you have firebug or developer tools installed so you can see what css is getting loaded?


    Completely as an aside, I see you are a David Thorne fan.

    :*)

 

 
Page 7 of 7 FirstFirst ... 567

Similar Threads

  1. Amazon Payments FPS Module
    By Spaatz in forum Addon Payment Modules
    Replies: 14
    Last Post: 11 Aug 2010, 05:15 AM
  2. Nochex Payments Module & APC
    By meknownowt in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 18 Dec 2008, 05:25 AM
  3. which is the best payment module for US payments using v 1.3 ?
    By metamp in forum Built-in Shipping and Payment Modules
    Replies: 12
    Last Post: 18 Apr 2007, 09:54 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •