Results 1 to 10 of 679

Hybrid View

  1. #1
    Join Date
    Jul 2021
    Posts
    2
    Plugin Contributions
    0

    Default Re: Stripe.com payment integration module

    Good news if you're running 1.5.7c (tested). The Stripe add-on works with the following minor code changes to Zen Cart:

    1.) In public_html/includes/classes/observers/ZcaBootstrapObserver.php:
    On/around line 198, change
    PHP Code:
    $field str_replace('class="''class="custom-select'$field); 
    to:
    PHP Code:
    $field str_replace('class="''class="custom-select '$field); 
    Note: that change is a single space after custom-select; without it, the selector can't find the class since it's mangled by the custom-select. You can alternatively just comment out this line, though I can't vouch for what impact it might have elsewhere. Either option seems to work fine.

    2.) If you don't make any further changes, Stripe should work, but if there's a problem with the customer's payment, the button to resubmit payment is permanently disabled and customer is likely to become frustrated. To fix this, go to public_html/includes/modules/pages/checkout_confirmation/jscript_double_submit.php and add the following after the line setTimeout('button_timeout()', 4000); so that the JavaScript becomes:
    Code:
    setTimeout('button_timeout()', 4000);
    setTimeout('button_reenable()', 9000);
    Then add the following lines of code just before the closing </script> tag:
    Code:
    function button_reenable() {
      var button = document.getElementById("btn_submit");
      button.style.cursor="pointer";
      button.disabled = false;
    }
    What the revised code does is re-enable the button to submit payment 5 seconds after it's been disabled. This should preserve the objective of preventing accidental double-clicks AND allow the customer to re-submit after correcting payment information.

    Disclaimer: While these modifications are relatively minor, make them at your own risk. The scope of the post is strictly to help other merchants and has no connection with either the Zen Cart developers or the add-on module developer.

  2. #2
    Join Date
    Dec 2005
    Location
    Kalamazoo, MI
    Posts
    65
    Plugin Contributions
    0

    Default Re: Stripe.com payment integration module

    Has anyone embarked on posting an updated version of the module? Given the popularity of Stripe, I'm surprised this is not a thing unless there is a non-free one that wouldn't be discussed on the forums. I'm happy to look at this, though credit card modules are not my forte. Stripe seems to be one of the better modern payment gateways and I'd love to move from the quite outdated Linkpoint API
    J.J. Meddaugh
    http://www.atguys.com

  3. #3
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    568
    Plugin Contributions
    0

    Default Re: Stripe.com payment integration module

    Quote Originally Posted by jsquared View Post
    Has anyone embarked on posting an updated version of the module? Given the popularity of Stripe, I'm surprised this is not a thing unless there is a non-free one that wouldn't be discussed on the forums. I'm happy to look at this, though credit card modules are not my forte. Stripe seems to be one of the better modern payment gateways and I'd love to move from the quite outdated Linkpoint API
    Would be great if you integrated with the Stripe 3d secure function that we need in Europe.

  4. #4
    Join Date
    Dec 2005
    Location
    Kalamazoo, MI
    Posts
    65
    Plugin Contributions
    0

    Default Re: Stripe.com payment integration module

    I wouldn't even know where to begin with that, probably paying a dev to create something and having a few people throw in on the cost would be the best way to go.
    J.J. Meddaugh
    http://www.atguys.com

  5. #5
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    568
    Plugin Contributions
    0

    Default Re: Stripe.com payment integration module

    Quote Originally Posted by jsquared View Post
    I wouldn't even know where to begin with that, probably paying a dev to create something and having a few people throw in on the cost would be the best way to go.
    Probably not so difficult, one just has to trigger the API correctly.
    Details here plus some sample code.

  6. #6
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    568
    Plugin Contributions
    0

    Default Re: Stripe.com payment integration module

    Quote Originally Posted by marton_1 View Post
    Probably not so difficult, one just has to trigger the API correctly.
    Details here plus some sample code.
    Seems it is even simpler for a PHP programmer to implement card payments with 3d secure.

    You can download a generic Stipe PHP server solution and there is a youtube video here giving step by step instructions on how to customize it.

 

 

Similar Threads

  1. pay2check.com payment module?
    By sunrise99 in forum Addon Payment Modules
    Replies: 0
    Last Post: 1 Nov 2011, 03:55 AM
  2. klikandpay.com payment module
    By rulest in forum Addon Payment Modules
    Replies: 0
    Last Post: 24 Sep 2010, 06:06 PM
  3. AlertPay Payment Module Integration Help Please!
    By etorf9751 in forum Addon Payment Modules
    Replies: 8
    Last Post: 16 Aug 2010, 05:06 PM

Posting Permissions

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