I did a little more investigation of this. It seems there may also be an issue with the paypal protocol. I did some hacking of the PayPal.C file to add the verify file and path to the Http client. I also had to change the "post" call to a "get" in order to get it to make the ssl connection. Here's the working code in PayPalExpressCheckout::setup():
char buffer[512]; client->setTimeout(15); client->setSslVerifyFile(getenv("SSL_CERT_FILE")); client->setSslVerifyPath(getenv("SSL_CERT_DIR")); client->setFollowRedirect(true); // there is a redirect once you hit the paypal site sprintf(buffer, "https://www.sandbox.paypal.com/?USER=%s&PWD=%s&SIGNATURE=%s&METHOD=SetExpre ssCheckout&VERSION=98&PAYMENTREQUEST_0_AMT=10&PAYMENTREQUEST_0_PAYMENTACTION =SALE&cancelUrl=http://www.example.com/cancel.html&returnUrl=http://www.exam ple.com/success.html", impl_->service_.user().c_str(), impl_->service_.password().c_str(), impl_->service_.signature().c_str()); // if (!client->post(impl_->service_.apiServerUrl(), message)) -**old code** // LOG_ERROR("error submiting POST"); client->get(buffer); // ***new code*** The connection was successfully made (prior to this verification always failed), but the returned response failed the validation check in PayPalExpressCheckout::testMessage. It was looking for an "ACK" that was not found. I seem to recall reading somewhere that that is correct, but when I cut and pasted the response into a file and loaded it into the browser it turned out to be the PayPal login page for the sandbox site (it even worked when I clicked on it) - this is the behavior that I'm used to seeing from PayPal - you login, approve payment and then get sent back to the payees site. Hope this is of help in resolving this. I'd really like to use this widget. B/R, -dan > -----Original Message----- > From: Daniel Horsey [mailto:dan.hor...@broadruntech.com] > Sent: Monday, October 27, 2014 12:23 PM > To: witty-interest@lists.sourceforge.net > Subject: PayPal interface > > I think I Wt needs methods in the PayPalService object to set the verify > file and path in order to make the secure connection to PayPal. When I > use it as supplied, I get the same verify failure message as before. If I > use the http client, and set up the path and file, I get a successful > connection and return, but I'm having problems connecting the return > message to the onSetup method. > > Is there a workaround for this that I could employ while you consider > adding these methods? > > Thanks, and B/R, > > -dan > > > > > -dan > > Sent from my iPad ------------------------------------------------------------------------------ _______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/witty-interest