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(); //$payRequest // ->fundingConstraint // ->allowedFundingType // ->fundingTypeInfo // ->fundingType = "BALANCE"; $payRequest ->fundingConstraint ->allowedFundingType ->fundingTypeInfo ->fundingType = "ECHECK";
Recent Comments