Announcement

Collapse
No announcement yet.

Double payments

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

  • Double payments

    We're using the C&P Salesforce PAAS library. We've been getting some double payments in C&P.

    This appears to happen because after our Apex code processes a CC payment, something prevents us from parsing the response and finding out if it is a failure or a success. In either scenario we create a Salesforce record to capture that a transaction has been attempted, but for these duplicates there is no record at all for one of the payments.

    My questions are:
    1. Could these be timeouts, and is there any way to increase the timeout length?
    2. Does the PAAS library ever return "null" for the TransactionResult?
    3. Is there any way to see what the response sent was from within C&P?

  • #2
    Good day Roy,

    Have you installed the Bridge to review the posts? See: http://forums.clickandpledge.com/sho...ghlight=bridge

    The Bridge will add C&P Data to your instance and all posts to the API will result in a post back to the C&P Data for your review or processing.

    As for your questions.
    1. Timeouts: No- the timeout is quite long and this can't possibly be a timeout issue.
    2. TransactionResultCode: This cannot be NULL and is either a 0 (Success) or you will get an error code (e.g. 5001)
    3. Return response: you may want to review: AdditionalInfo, TransactionNumber , ErrorData, vaultguid, gatewaytransactionnumber
    Please review & let us know if we can be of any further assistance. I suggest installing the Bridge for reference.
    Regards,
    Click & Pledge Support Department

    Join us @ the educational webinars: https://clickandpledge.com/webinars/
    Live Support- read more: https://support.clickandpledge.com/s/article/general-information-live-support/

    Comment


    • #3
      I'm working with Roy -- can you explain more about the bridge? I haven't been able to find any documentation on it.

      It looks like it's just config, nothing more. Is the idea that any payment processed in C&P will somehow magically have a corresponding record created in Salesforce? Or that this object in SF is a good place for our custom code to capture the C&P response before doing anything else?

      What sort of setup needs to be done other than the install? The test that I ran did not create any CnP_PaaS_Bridge__CnPData__c records.

      Thanks,
      Drew

      Comment


      • #4
        Drew,

        The C&P Bridge is a simple object that if found our system will post the XML for the transaction to that object.

        It is simply an auxiliary object that some developers use. Without it we don't post the data back to Salesforce and only respond through the API response.

        Install it and do a transaction. You will see the XML posting back.

        Let me know if you have any other questions.
        Regards,
        Click & Pledge Support Department

        Join us @ the educational webinars: https://clickandpledge.com/webinars/
        Live Support- read more: https://support.clickandpledge.com/s/article/general-information-live-support/

        Comment


        • #5
          I installed the package and then ran our normal payment flow (custom VF flow through the portal), and no new records were created.

          Could it be because this is in a sandbox, or we are in test mode, or this was a fake credit card?

          Thanks,
          Drew

          Comment


          • #6
            Drew,

            I believe this is a bit more complex to debug over the forum.

            Can you possibly join the office hour? We can meet with you ahead of the official start time so we can go over your issues.
            Regards,
            Click & Pledge Support Department

            Join us @ the educational webinars: https://clickandpledge.com/webinars/
            Live Support- read more: https://support.clickandpledge.com/s/article/general-information-live-support/

            Comment


            • #7
              Thanks for your reply.

              I installed and did a transaction (through the Customer Portal, via a custom VF page), but no C&P Data records were created. Could this be because I'm in a sandbox and test mode, using a test CC?

              Thanks,
              Drew

              Comment


              • #8
                Good day Drew,

                No - it should post to Sandbox. Have you set up the Click & Pledge to post to that Sandbox account?

                Can you attend one of our office hours so we can go over this through a screen share?
                Regards,
                Click & Pledge Support Department

                Join us @ the educational webinars: https://clickandpledge.com/webinars/
                Live Support- read more: https://support.clickandpledge.com/s/article/general-information-live-support/

                Comment


                • #9
                  No, I have not -- that's exactly the info I was hoping for, since I could not find any documentation on the bridge.

                  I will attend office hours soon, though I cannot make it today.

                  Thanks!
                  Drew

                  Comment


                  • #10
                    Hoping to make the Monday office hours, I'll try to jump on 20 minutes early.

                    Comment


                    • #11
                      Ok, will definitely be there tomorrow. It sounds like the user is just growing impatient, refreshing the page, and then clicking process again. Not a whole lot we can do about that.

                      I would like to hear more about the Bridge, though.

                      Comment


                      • #12
                        Thanks for meeting Kamran! I got the bridge working in Prod and added some code to prevent one kind of duplicates.

                        I also heard got some more info from the client -- it seems like non-USA users are having the most trouble, and can often make multiple C&P transactions without our code ever getting a result. I implemented some custom debugging and found that at least once we were getting a IO Exception: Read timed out error. So I think it's a time-out issue after all. This might also make sense why it's especially an issue for non-USA users.

                        It seems like my options are:

                        1. Catch that timeout issue and render an error, have the user contact the sys admin, who can look for the C&P Data and resolve manually.
                        2. Use code to look for the C&P Data that comes in and create our custom records accordingly.

                        Thanks for your help! Let me know if you have thoughts on the timeout.

                        Cheers,
                        Drew

                        Comment


                        • #13
                          We are working with SalesForce to come up with a solution to the situation where our system does not receive a reply from C&P. Now we know that you can access the actual XML associated with a particular payment, we would like to see a few more samples, if we may. We hope to find some clues there that could help us with a solution.

                          First, here are a pair of transactions from January 20 that did not update our system:
                          1601200355432459104
                          1601200357577739104

                          Also, we would like to see the XML from a successful posting around the same time. This one was processed between the two above (at 1/20/2016 3:56:
                          1601200356305886767

                          Let me know if you need any more information to find these.

                          Roy

                          Comment


                          • #14
                            Regarding my request from January 21 for for specific XML: do we have an ETA for this?

                            Comment


                            • #15
                              Good day!

                              We are working with Transfirst to get the details. This is not a trivial process as each order number needs to be investigated and details recovered from their backups. Our team is working on this and it may be a bit longer.

                              Sorry for the delay.
                              Regards,
                              Click & Pledge Support Department

                              Join us @ the educational webinars: https://clickandpledge.com/webinars/
                              Live Support- read more: https://support.clickandpledge.com/s/article/general-information-live-support/

                              Comment

                              Working...
                              X