Monthly Archives: March 2011

You are browsing the site archives by month.

Getting VerifyStatus API working in Sandbox

There are a few caviots to getting the API working.
I hope this saves someone a few hours/ days.

  • CallerServices.php has a small bug
  • Only Sandbox email accounts work in the sandbox. Thanks for confiming @ppalavilli
  • ALL Sandbox accounts have the First Name: Test Thanks @ppalavilli
  • ALL Sandbox accounts have the Last Name: User Thanks @ppalavilli

If you get a

PHP Warning: Missing argument 3 for CallerServices::callWebService()

On line 101 of CallerServices.php you have:

function callWebService($request,$serviceName,$simpleXML)

It should read: //(most of the calls that use callWebService are parent::callWebService( $request,$serviceName ) anyways.

function callWebService($request,$serviceName,$simpleXML=NULL)
$response = null;
try {
    $response = call($request, $endpoint, $this->sandBoxEmailAddress,$simpleXML);
catch(Exception $ex) {
throw new FatalException('Error occurred in call method');
   return $response;

Here is the code I used. Replace {email} with one of your sandbox email addresses.

public function verify_email($params){
$VstatusRequest = new GetVerifiedStatusRequest();
$VstatusRequest->emailAddress = '{email}';
$VstatusRequest->matchCriteria = 'NAME';
$VstatusRequest->firstName = 'Test';
$VstatusRequest->lastName = 'User';
$rEnvelope = new RequestEnvelope();
$rEnvelope->errorLanguage = "en_US";
$VstatusRequest->requestEnvelope = $rEnvelope ;
$aa = new AdaptiveAccounts();
$response = $aa->GetVerifiedStatus($VstatusRequest);
echo json_encode($response);

The JSON encoded object looks like such:



Japan: Pay it Forward

I just sent this message to a friend in Japan. My hope is that others will do the same.

I was inspired by a few articles I had read about in the past about pastors giving money to the congregations members to do good in a community. I don’t know how my friend Jon will make use of the money but I trust he will slightly know better than I how to use it.

I figure that this $100 will work in different ways than the other money that I have sent to the relief effort via the Red Cross.

If I get a note back of how the money was used, I will update this post. Please let me know if you choose to do the same. #japan #payitforward

Jon, I am sending $100.00 to you in Japan, if you need the cash please use it. If you know of a way to leverage the money please do that. If you think someone else could make better use, pay it forward. Write back to tell me how you use it.


Paypal X Adaptive Pay FundingConstraint for PHP

The following code is an example of adding the FundingConstraint objects for a payRequest with Paypals new Adaptive Payments. I hope this helps.

$payRequest->fundingConstraint = new FundingConstraint();

//    ->fundingConstraint
//    ->allowedFundingType
//    ->fundingTypeInfo
//    ->fundingType = "BALANCE";

    ->fundingType = "ECHECK";