Announcement

Collapse
No announcement yet.

Some HTTPS servers not recognized as secure

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

  • CnP.Support
    replied
    No- we can't find out why you have a problem with one server and not the other servers. We have not seen any issues with PHP servers and it is quite strange. What does not make sense is that you have no issues with one server and have problem with another server.

    I wonder if it is a firewall issue on your end. Something blocking the response.

    Leave a comment:


  • CnP.Support
    replied
    Moved the question to FaaS

    Hi;

    I moved the answer to your question to the FaaS forum.

    Please see below:

    http://forums.clickandpledge.com/for...r.html#post298

    It is best to use the FaaS forum for questions regarding the FaaS service.

    Leave a comment:


  • JimNayzium
    replied
    Okay, been trying to use FaaS. I got the sample code to work, but it's unclear which fields are required and which are optional. Also, the error page is not very helpful; I wish it had more varied responses so I could know where my problem lay! All I've found for documentation is https://developers.clickandpledge.co...ervicefaas.htm; is there anywhere else I could look for more information?

    Leave a comment:


  • JimNayzium
    replied
    Were you able to determine anything from the code?

    Leave a comment:


  • JimNayzium
    replied
    We added the domain to the list of allowed URLs, but it did no good. I'm not sure that's the problem, anyway, as we never had any difficulty using the API from the https://www.tripploans.com website.

    Leave a comment:


  • JimNayzium
    replied
    XML data here:

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <CnPAPI xmlns="urn:APISchema.xsd">
      <Version>12</Version>
      <Engine>
        <Request>
          <Operation>
            <OperationType>Transaction</OperationType>
            <IPAddress>'.$_SERVER['REMOTE_ADDR'].'</IPAddress>
          </Operation>
          <Authentication>
            <AccountGuid>'.$formdata['AccountGuid'].'</AccountGuid>
            <AccountID>'.$formdata['AccountID'].'</AccountID>
            <UserName>'.$formdata['UserName'].'</UserName>
            <Password>'.$formdata['Password'].'</Password>
          </Authentication>
          <Order>
            <OrderMode>'.$transaction.'</OrderMode>
            <Tracker>sponsor1</Tracker>
            <CardHolder>
              <BillingInformation>
                <BillingFirstName>'.$formdata['BillingFirstName'].'</BillingFirstName>
                <BillingMI>'.$formdata['BillingMI'].'</BillingMI>
                <BillingLastName>'.$formdata['BillingLastName'].'</BillingLastName>
                <BillingEmail>'.$formdata['BillingEmail'].'</BillingEmail>
                <BillingPhone>'.$formdata['BillingPhone'].'</BillingPhone>
              </BillingInformation>
              <BillingAddress>
                <BillingAddress1>'.$formdata['BillingAddress1'].'</BillingAddress1>
                <BillingAddress2>'.$formdata['BillingAddress2'].'</BillingAddress2>
                <BillingAddress3>'.$formdata['BillingAddress3'].'</BillingAddress3>
                <BillingCity>'.$formdata['BillingCity'].'</BillingCity>
                <BillingStateProvince>'.$formdata['BillingStateProvince'].'</BillingStateProvince>
                <BillingPostalCode>'.$formdata['BillingPostalCode'].'</BillingPostalCode>
                <BillingCountryCode>840</BillingCountryCode>
              </BillingAddress>
              <ShippingInformation>
                <ShippingAddress>
                  <ShippingAddress1>'.$formdata['ShippingAddress1'].'</ShippingAddress1>
                  <ShippingAddress2>'.$formdata['ShippingAddress2'].'</ShippingAddress2>
                  <ShippingAddress3>'.$formdata['ShippingAddress3'].'</ShippingAddress3>
                  <ShippingCity>'.$formdata['ShippingCity'].'</ShippingCity>
                  <ShippingStateProvince>'.$formdata['ShippingStateProvince'].'</ShippingStateProvince>
                  <ShippingPostalCode>'.$formdata['ShippingPostalCode'].'</ShippingPostalCode>
                  <ShippingCountryCode>840</ShippingCountryCode>
                </ShippingAddress>
              </ShippingInformation>
              <PaymentMethod>
                <PaymentType>CreditCard</PaymentType>
                <CreditCard>
                  <NameOnCard>'.$formdata['NameOnCard'].'</NameOnCard>
                  <CardNumber>'.$formdata['CardNumber'].'</CardNumber>
                  <Cvv2>'.$formdata['Cvv2'].'</Cvv2>
                  <ExpirationDate>'.$formdata['ExpirationMonth']."/".$formdata['ExpirationYear'].'</ExpirationDate>
                </CreditCard>
              </PaymentMethod>
            </CardHolder>
            <OrderItemList>
              <OrderItem>
                <ItemID>1</ItemID>
                <ItemName>'.$formdata['ItemName'].'</ItemName>
                <Quantity>'.$formdata['Quantity'].'</Quantity>
                <UnitPrice>'.$formdata['UnitPrice'].'</UnitPrice>
                <UnitDeductible>0</UnitDeductible>
                <UnitTax>0</UnitTax>
                <UnitDiscount>0</UnitDiscount>
              </OrderItem>
            </OrderItemList>
            <Shipping>
              <ShippingMethod></ShippingMethod>
              <ShippingValue>0</ShippingValue>
            </Shipping>
            <Receipt>
              <Language>ENG</Language>
              <OrganizationInformation>Nonprofit 123</OrganizationInformation>
              <ThankYouMessage><![CDATA[Thank you for your support]]></ThankYouMessage>
              <TermsCondition><![CDATA[All donations are tax deductible.]]></TermsCondition>
              <Deductible>1</Deductible>
              <EmailNotificationList>
                <NotificationEmail>[email protected]</NotificationEmail>
                <NotificationEmail>[email protected]</NotificationEmail>
              </EmailNotificationList>
            </Receipt>
            <Transaction>
              <TransactionType>Authorize</TransactionType>
              <DynamicDescriptor>DynamicDescriptor</DynamicDescriptor>
              <CurrentTotals>
                <TotalDiscount>0</TotalDiscount>
                <TotalTax>0</TotalTax>
                <TotalShipping>0</TotalShipping>
                <TotalDeductible>0</TotalDeductible>
                <Total>'.$orderTotal.'</Total>
              </CurrentTotals>
            </Transaction>
          </Order>
        </Request>
      </Engine>
    </CnPAPI>
    Last edited by JimNayzium; 10-12-2009, 12:16 PM.

    Leave a comment:


  • JimNayzium
    replied
    Code:
    <form action="<?php echo($_SERVER['PHP_SELF']); ?>" method="post">
    <?php
     function object2array($object) {
      foreach ($object as $key => $value) {
       $array[$key] = $value;
      }
      return $array;
     }
     
     $q  = "SELECT * FROM #__users WHERE user_info_id='".$db->f("user_info_id")."'"; 
     $dbbt = new ps_DB;
     $dbbt->setQuery($q);
     $dbbt->query();
     $dbbt->next_record(); 
     // Get ship_to information
     if( $db->f("user_info_id") != $dbbt->f("user_info_id")) {
      $q2  = "SELECT * FROM #__vm_user_info WHERE user_info_id='".$db->f("user_info_id")."'"; 
      $dbst = new ps_DB;
      $dbst->setQuery($q2);
      $dbst->query();
      $dbst->next_record();
     }
     else  {
      $dbst = $dbbt;
     }
     $dbaccount = new ps_DB;
     $q = "SELECT ".VM_DECRYPT_FUNCTION."(order_payment_number,'".ENCODE_KEY."') AS account_number from #__{vm}_order_payment WHERE order_id='".$db->f("order_id")."'";
     $dbaccount->query($q);
     $dbaccount->next_record();
     $cardNumber=$dbaccount->f('account_number');
     if ($dbst->f('email')=="") {
      $email=$_SESSION['auth']['username'];
     }
     else {
      $email=$dbst->f('email');
     }
     
        if (!$_POST['OrderTotal']) {
      $orderTotal=$_POST['UnitPrice']*$_POST['Quantity'];
     }
     else {
      $orderTotal=$_POST['OrderTotal'];
     }
     
     //Data to send to Click & Pledge-- this is for the submission version, which the Tripp Loans form will actually send
     $formdata = array (
      // Customer Name and Billing Address
      'BillingFirstName' => $dbst->f("first_name"),
      'BillingLastName' => $dbst->f("last_name"),
      'BillingCompany' => $dbst->f("company"),
      'BillingAddress1' => $dbst->f("address_1"),
      'BillingAddress2' => $dbst->f("address_2"),
      'BillingAddress3' => $dbst->f("address_3"),
      'BillingCity' => $dbst->f("city"),
      'BillingStateProvince' => $dbst->f("state"),
      'BillingPostalCode' => $dbst->f("zip"),
      'BillingCountry' => $dbst->f("country"),
      'BillingPhone' => $dbst->f("phone_1"),
      'BillingEmail' => $email,
     
      // Customer Shipping Address
      'ShippingFirstName' => $dbst->f("first_name"),
      'ShippingLastName' => $dbst->f("last_name"),
      'ShippingCompany' => $dbst->f("company"),
      'ShippingAddress1' => $dbst->f("address_1"),
      'ShippingAddress2' => $dbst->f("address_2"),
      'ShippingAddress3' => $dbst->f("address_3"),
      'ShippingCity' => $dbst->f("city"),
      'ShippingStateProvince' => $dbst->f("state"),
      'ShippingPostalCode' => $dbst->f("zip"),
      'ShippingCountry' => $dbst->f("country"),
     
      // Customer Credit Card Info
      'NameOnCard' => $db->f('order_payment_name'),
      'CardNumber' => $cardNumber,
      'Cvv2' => $db->f('order_payment_code'),
      'ExpirationMonth' => date("m", $db->f('order_payment_expire')),
      'ExpirationYear' => date("y", $db->f('order_payment_expire')),
     
      //More info
      'Quantity' => 1,
      'UnitPrice' => number_format($db->f("order_total")*100),
      'ItemName' => CNP_NAME,
     
      //Click & Pledge account info
      'AccountGuid' => CNP_GUID,
      'AccountID' => CNP_ID,
      'UserName' => CNP_USER,
      'Password' => CNP_PASS
     );
     
    //XML data gets created here, but the post was too long with it included
     
     $strParam = str_replace('^', '', str_replace('<br />', '', $xmlData));
     
     //These are for debugging only.  They allow the programmer to see the XML that's being submitted.
     //echo '<table width="100%" border="0"><tr><td width="100%" align="left">'.str_replace('^>', '&gt;', str_replace('^<', '&lt;', str_replace('^ ', '&nbsp;&nbsp;', $xmlData))).'</td></tr></table>';
     //echo "<textarea cols='90' rows='100'>$strParam</textarea><br />";
     
     $connect = array('soap_version' => SOAP_1_1, 'trace' => 1, 'exceptions' => 0);
     $client = new SoapClient('https://paas.cloud.clickandpledge.com/paymentservice.svc?wsdl', $connect);
     
     $params = array('instruction'=>stripslashes($strParam));
     $response = $client->Operation($params);
     $response = object2array($response);
     $response = $response['OperationResult'];
     $response = object2array($response);
     foreach($response as $key => $value) {
      //echo "[$key] => ".$response[$key]."<br />\n";
     }
     echo "Response code: ".$response['ResultCode']."<br />\n ".$response['ResultData']."<br />\n";
    ?>
     </form>
    I'll check on the administrative restrictions.

    The accound ID is 14889.

    Leave a comment:


  • CnP.Support
    replied
    Restriction &amp; site detail

    Hi

    Sorry for the trouble you are experiencing.

    Can you please send the actual page so we can review the code.

    Also - are you using any restrictions in the administrative system? You can restrict the site that can post to the API. If you have enabled security restrictions and the URL is not listed in the authorized list then the site will not respond.

    We can review you account further if we have your Account ID.

    Let us know and we can review it in more detail.

    Leave a comment:


  • JimNayzium
    replied
    PHP info

    Some more information:


    Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://paas.cloud.clickandpledge.com/paymentservice.svc?wsdl' in /home/blueeyed/public_html/michaelbennett/.../checkout.thankyou.tpl.php(61) : eval()'d code on line 311

    The code works at https://tripploans.com, but not https://thisfishsavedtheworld.com. The PHPinfo() files are here:

    https://thisfishsavedtheworld.com/phpinfo.php

    https://tripploans.com/phpinfo.php

    Leave a comment:


  • CnP.Support
    replied
    Researched &amp; no problems found

    Hi;

    We have researched our SSL keys and find no issues with any of the servers handling PaaS services. I would like to discuss your hosting company's findings with the person that has replied to your email.

    When a program has a problem it will have that problem with all users- that is a general statement. We have many users that have designed applications on this platform and are using it without any problems. You also don't have a problem with another server and only have problem with a specific hosting company. I find it strange that the problem only exists with one site and not all the other sites.

    If there is a problem we love to find it and fix it. Please email us the contact information for your hosting company and your contact so we can contact him/her directly and resolve this issue.

    I apologize for the problem but frankly we have no idea why your issue exists. As I said before nobody else has a problem interacting with our API. This is the only case and even with you it is with one hosting company and not another one you have used.

    Looking forward to hearing back from you.

    Leave a comment:


  • CnP.Support
    replied
    Reviewing the service

    Hi;

    Thanks for the info. We will review the comments and reply back to the forum.

    Leave a comment:


  • JimNayzium
    replied
    Thanks, I'll try that next. I'll post my results.

    We also contacted our hosting company and they had a few suggestions:

    Hi,

    I have checked this issue in detail and verified all the required configurations of PHP and server.

    First I compared the PHP configuration of GoDaddy server with ours and found that all of the modules related to XML/SOAP standards are already installed on our servers and PHP versions are even same too, which is 5.2.5. Also the related PHP variables have same values as on the Godaddy server.

    This probably related to some issue at the remote server end from where the WSDL file is being requested. I was able to track 2 issues that I will explain to you now. First of all the SSL Certificate on the following URL does not seem to be correct:

    https://paas.cloud.clickandpledge.co...rvice.svc?wsdl

    Second issue is can be related to the URL which should be a valid WSDL file. The error thrown is related to parsing that shows the reply from the remote server is not a valid WSDL file which our server was not able to properly parse. So you should check with the web service provider to see if there is any problem that can corrected.

    I have tried to place a test.php file to see if WSDL is having any issue on the server and the following script was able to create 'SoapClient' object successfully from one of our servers without any problem. You can check the following script:

    https://tyranus.nocdirect.com/~bluee...ledge/test.php

    Let us Know if you need further assistance.
    From what you said, and based on the fact that we can access Click & Pledge from other sites with no problem, I don't see how the issue can be entirely with your site, but I thought I should pass along their response anyway.

    Leave a comment:


  • CnP.Support
    replied
    PHP Issue

    Hi;

    We have researched this and can't quite figure out what the problem is. We have tested this on various servers (internal and external) and can't find one that does not work.

    The only way we can possibly find out is to inspect the PHP installation on the server. It must be a PHP issue. We don't think it is an SSL issue. Our system only allows port 443 connection so if you come through that port (SSL) then connection will be allowed.

    Sorry we can't be of much more help.

    have you tested the new FaaS service? It may be worth it to test that service also to see if that works.. that does not require a connection and is a simple POST method.

    read more about it in the manual:

    https://developers.clickandpledge.co...asaservice.htm

    we have not yet announced this service publicly but is in the manual and a number of companies are developing forms based on that service- it works and it is in production.

    Regards,
    The Support Department.

    Leave a comment:


  • JimNayzium
    replied
    Just wondering if there are any other suggestions you guys have. We still don't have our store working directly with Click & Pledge.

    I put up a new page at https://tyranus.nocdirect.com/~bluee...JaguarForm.php that automatically submits a test XML form. The exact same XML and code is also at https://www.tripploans.com/JaguarForm.php where it works without any problem.

    Leave a comment:


  • JimNayzium
    replied
    For 1), do you mean the values being sent in the XML? Because I used the default XML with no trouble on another site, and it only fails from this site.

    For 2), I checked php.ini, and found "allow_url_fopen = On."

    Leave a comment:

Working...
X