PayPal Adaptive Payment - angelleye CodeIgniter Library - codeigniter

I'm trying to run the sample project from https://github.com/angelleye/paypal-codeigniter; but am unable to get to function as it throws the following error.
A PHP Error was encountered
Severity: Warning
Message: DOMDocument::loadXML(): Empty string supplied as input
Filename: paypal/Paypal_adaptive.php
Line Number: 396
Assistance would be greatly appreciated.

Seems you must be getting an empty result back from the API request. This most likely means you're running into a problem with your server software stack.
PayPal's sandbox only accepts requests via the TLS 1.2 protocol. The live servers will be the same next year.
See this article of mine for more details, most importantly...
If you want to use TLS 1.2 you’ll need to upgrade to OpenSSL 1.0.1 as a minimum, and then you’ll be able to set CURLOPT_SSLVERSION to 6 (TLS 1.2).
If you want TLS 1.2 to be used automatically during SSL requests, you’ll also need to upgrade to PHP 5.5.19+ (this is the ideal solution but many projects are still on older PHP versions).
So the first thing I would check is your software versions.

Related

WebRTC app not working on firefox

I have a very tremendous issue in my app. App is using webrtc to create video connection between two people.
Currently the app it's in the test phase.
Everything is working fine on Chrome, but on Firefox there is a strange issue.
When the second Peer connects I receive this error:
Error adding ice candidate for pcInvalidStateError: setRemoteDescription needs to called before addIceCandidate
I know that the error message seems to be clear, but how it's possible that on Chrome this error does not exist?
I mean, maybe there is a bigger issue, not completely depending on this error message.
Do you have any ideas or solutions to this?
A part from WebRTC doc: (See Deprecated Exception section)
Deprecated exceptions
When using the deprecated callback-based version of
setRemoteDescription(), the following exceptions may occur:
InvalidStateError The connection's signalingState is "closed",
indicating that the connection is not currently open, so negotiation
cannot take place.
You should check you are not using deprecated callback version of this function. Also you should keep an eye on signalingState of the peer connection.
Hope it helps!

OpenSSL::SSL::SSLErrorWaitReadable read would block

Currently seeing this error from our background workers on Heroku when posting text/plain queries to the Intuit v3 API. https://quickbooks.api.intuit.com/v3/company/123456789/query/
Ruby 2.1.2 and Rails 4.0.10
OAuth 0.4.5 https://github.com/oauth-xx/oauth-ruby
There is an error_message "Intuit's API timed out. They may be over capacity. Please try again later". I'm not sure if this is just an intermittent error that we should ignore, or if it's an issue on the Intuit side or with Ruby/OpenSSL on Heroku?
This error isn't happening a lot, but we have one customer who reports being unable to sync for a week.
Heroku timeouts are 30s. Intuit's api may be taking longer possibly. I suggest you try from a local machine or try to test from AWS if you are familiar or another cloud provider. Another thing you could do is test running the api on the command line from heroku console.

how to stream a local file to red5 1.0 server using latest red5 client

I've tried many samples, the only one which works is from
https://code.google.com/p/android-rtmp-client/source/browse/trunk/example/com/ryong21/example/publisher/PublishClient.java
But it doesn't compatible with latest server side code.
This sample use a org.red5.server.stream.provider.FileProvider to read a local video file whose constructor has changed from FileProvider(File file) to FileProvider(IScope scope,File file). I'm not quite sure how to make the scope argument, neither null nor "new GlobalScope" works.
And another issue, even with the working example, it only works with red5 server but not with
youtube rtmp server. Any ideas?
Edit:
I finally get it worked by making scope like this
http://pastebin.com/jnwv1ewd
But it still doesn't work with youtube, the error msg is
"1418 INFO o.r.server.net.rtmp.RTMPHandshake - Processing server response for encryption
1420 WARN o.r.server.net.rtmp.RTMPHandshake - Type 0 digest comparison failed, trying type 1 algorithm"
Handshake failed?
That message means that one of the two handshake validation routines failed; not that the whole thing failed. YouTube RTMP has special requirements and you must meet or exceed a given number of subscribers before you are allowed to access it.

How to get started with SoftHSM

I am currently trying to get a SoftHSM going (on a Windows platform). The goal is establish a communication channel between a client and the HSM server so that some data can be encrypted on the server side and be sent back to the calling client.
I download one from this site: https://www.opendnssec.org/download/
Furthermore, I followed the documentation as stated on this page: https://wiki.opendnssec.org/display/SoftHSMDOCS/SoftHSM+Documentation+Home - but besides from creating a couple of slots, I haven't managed to get anything right.
I ran the following command to create the slot(s):
softhsm --init-token --slot 0 --label "My token 1"
I am not sure how to go from here, I cannot find any useful information / tutorials about the topic. I guess that I should start small and try and create a server application that communicates to the SoftHSM ... I apologize for all the n00b questions!!
If the installation was successful
in /usr/local/bin/softshm there should be the file libsofthsm.so.
This file contains the implementation of crytoki api -
and you can use it like- so/dll that comes with hardware of pkcs#11

Error in LoadRunner

Im doing performance testing for a system implemented in Java.Im using load runner 9.1 in windows server 2003 32 bit OS.An error occurs when running a script in load runner controller.Script is generated in Loadrunner script generator using Ajax protocol.Script replay is successful and no errors detected. Error message says "You do not have license to run this Vugen user type". Is this a license problem or any other kind of problem? Need a quick reply.Thnk u
"You do not have license to run this Vugen user type".
There is no restriction upon which protocol you may develop a script with, but the controller is limited to type and number of users. Call your VAR or HP System rep for a quote on the number of users you need.
Check the License you have. If it's only for WEB (HTML/HTTP) users then redo the script in WEB (HTML/HTTP) script mode and your problem is solved.
You WILL need to do much more manual correlation etc. for the HTTP script, but on the other hand you do not have to buy a license...
In any case you need to spend credits either by buying the license or spending more time scripting.
Try with Other Protocol type , Try using Multi type Protocol , Combination of "HTTP & Win socket", or already working with Multi Protocol change to Single type Protocol , and check choose option according to requirement.

Resources