Announcement

Collapse
No announcement yet.

$0 Transactions not being passed to payment gateway?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CnP.Support
    replied
    Good day!

    The requested feature has been added to the core plugin and is now available via WordPress.org.

    Please see: http://forums.clickandpledge.com/for...e-plugin-1-3-5

    Let us know if we can be of any further assistance.

    Leave a comment:


  • CnP.Support
    replied
    Good day!

    We just removed the confidential information from the public forum. Please do not post this info to the forum - it should always be sent to the help desk.

    Our team has been notified and they will review it.

    Sorry for the issues - we are investigating as to what might have caused the update. We will update you as soon as we have the details.

    Leave a comment:


  • sgoodwin
    replied
    After the disaster your developers caused (resulting in the customer site being down for HOURS beginning approx 3:00am EST), you definitely won't be getting FTP access to the live site. We've restored yesterday's full backup to bring the live site back up to where it was before your changes. I've created a staging site here (http://staging1.cambridgeinsight.org/) and sent email to Kamran about his user account. If for some reason he wants/needs to reset his password, he can do so using the "forgot password" dialog here http://staging1.cambridgeinsight.org/wp-admin/

    I've also created a Kamran FTP account with access to the staging site

    <REMOVED>

    Finally, I'm attaching a copy of the file that the developer changed last night that brought the site down. We've also corrected the php error on line 522 that caused the problem (you had a for instead of a foreach at the beginning of the line.

    Best,

    Suzanne
    Attached Files
    Last edited by CnP.Support; 06-22-2015, 03:21 PM.

    Leave a comment:


  • CnP.Support
    replied
    Good day!

    Please submit full access to the account and FTP access so we can have a developer review it. Perhaps an item has been added with special characters since a parsing error simply means an invalid character is being passed on the XML such as "&" or "<" or ">" symbols.

    We need to request the development team to review this and it may take up to 24 hours depending on the queue. Please email complete access information to help.clickandpledge.com by creating a support ticket and reference this post.

    Leave a comment:


  • sgoodwin
    replied
    No, I made the change I was instructed to make last week, and the site was just fine until this morning. Also please note that the change you asked me to make last week was in a different plugin altogether from the one that is throwing the error this morning. Nonetheless, I have reversed the change from last week in plugins/woocommerce/includes/class-wc-cart.php and the site is still down and showing the same parsing error.

    Leave a comment:


  • CnP.Support
    replied
    Good day!

    Have you made any changes? Naturally our code has not changed and we have not touched your instance.

    Is this related to the $0? our code does not support free payments until we add the functionality. Based on the thread the only change is the >= that you have made.

    Leave a comment:


  • sgoodwin
    replied
    Hey the web site is DOWN this morning, showing error:

    Parse error: syntax error, unexpected 'as' (T_AS), expecting ';' in /home/cambri34/public_html/wp-content/plugins/woocommerce-clickandpledge-gateway/classes/clickandpledge-request.php on line 522

    Please fix ASAP!

    Leave a comment:


  • sgoodwin
    replied
    I've made the change to class-wc-cart.php per your instructions. I'm standing by to apply your patch whenever it's ready.

    Best,

    Suzanne

    Leave a comment:


  • CnP.Support
    replied
    Good day @SGoodwin,

    The following code will NOT work until we release a patch for our application to accommodate the new functionality. As stated before WooCommerce does NOT support payment processing when the total amount to be charged is $0. This makes sense as no other payment processor processes $0 payment. In this case you wish to process a free purchase as the members are getting 100% discount and you wish for this to post to Salesforce.

    After careful review of WooCommerce code we have identified the line that is responsible for not triggering the payment engine. This is purely a test and we are working on the app so we can test this completely. The following is the change we are considering:

    Please follow the steps below:
    Step 1: Open the file plugins/woocommerce/includes/class-wc-cart.php

    Step 2: Find 'needs_payment' in this function

    line 1369:

    'return apply_filters( 'woocommerce_cart_needs_payment', $this->total > 0, $this );'

    with

    'return apply_filters( 'woocommerce_cart_needs_payment', $this->total >= 0, $this );'

    The change simply makes sure that values equal to 0 also trigger the payment module.

    We have exchanged email with WooCommerce and have suggested the change. Of course we don't know when or if they will make the change.

    Adding the above functionality to our module is a timely process as major changes need to be made to both the settings and treating of payments. We will keep you updated when the release has been made. As you are not sending us the FTP access we have to send you each release to update and test with your instance. We will complete our internal testing before making the beta releases. The beta releases will NOT be released to the GitHub until we are sure all is tested. Please post back to this thread your findings after we make the first beta available.
    Last edited by CnP.Support; 06-19-2015, 08:37 AM.

    Leave a comment:


  • sgoodwin
    replied
    What is the line # and the change we need to make to Woocommerce?

    Leave a comment:


  • CnP.Support
    replied
    Good day!

    We have a solution and we are working on an update. This update requires an update to the code of WooCommerce. It is simply adding an equal sign to the code that states >=0 - currently it is > 0 to launch WooCommerce and if we add it as >= it will work.

    For this to work we have to make an update to our code which we are working on.

    At this time we don't have access to your account. We need complete access to your WordPress account with FTP access to the code. We don't have access as of this moment.

    Please provide us with this information as we are going to test this with your account.

    Leave a comment:


  • snesson
    replied
    We have been working with Kamran on a solution to this problem. Many thanks, Kamran, for your support. Planning to check in today during office hours to get an update on the status. Thanks!

    Leave a comment:


  • snesson
    replied
    I'm working with Jenn on the problem of not being able to get $0 transactions from WordPress to Salesforce. We're still looking into ways to get around this. We tried using the Invoice payment type as suggested by a comment in http://manual434.rssing.com/chan-6936049/all_p5.html, but the transaction still didn't come through. Is there a way to pass the transaction to the C&P Salesforce connector, bypassing the payment gateway but still taking advantage of C&Pís mapping logic. If so, can you give us some guidance and/or an example to use as reference? We don't have experience with the PaaS API if that's what we would use.

    Leave a comment:


  • jenntaylor
    replied
    Thanks for confirming, that's very helpful!

    Leave a comment:


  • CnP.Support
    replied
    Good day!

    As you stated WordPress does not even post it to the form when the balance is $0. We are aware of this shortcoming. I guess we are the only payment processor that accepts no payments as a payment.

    WordPress limitation is outside our control and we have not been able to resolve it. The same issue exists in a new app we are about to release, namely the WPJobBoard. Not much can be done.

    Leave a comment:

Working...
X