express checkout redirect goes to paypal front page, not to billing page

Greetings,
I am using a Paypal function to enable recurring billing.

According to the instructions:
https://developer.paypal.com/webapps/developer/docs/classic/express-checkout/ht_ec-recurringPaymentProfile-curl-etc/

I send a curl call for authorization:
			$response = Paypal::Set_Express_Checkout(array(
				// ip address
				'IPADDRESS' => Request::ip(),
				// email
				'EMAIL' => 'Input::get("EMAIL")',
				
				// payment authorization
				'PAYMENTREQUEST_0_PAYMENTACTION' => 'AUTHORIZATION',
				'PAYMENTREQUEST_0_CURRENCYCODE' => 'USD',
				'L_BILLINGTYPE0' => 'RecurringPayments',
				'L_BILLINGAGREEMENTDESCRIPTION0' => $DESC,
				
				//URL target
				'cancelUrl' => URL::base()."/recruiter/register_complete/".$alias,
				'returnUrl' => URL::base()
			));

Open in new window


And I get back a token, like such:
array(6) {
  ["TOKEN"]=>
  string(20) "EC-1NE7613043204060L"
  ["TIMESTAMP"]=>
  string(20) "2013-10-09T00:30:04Z"
  ["CORRELATIONID"]=>
  string(13) "779982eb3019c"
  ["ACK"]=>
  string(7) "Success"
  ["VERSION"]=>
  string(4) "86.0"
  ["BUILD"]=>
  string(7) "8021845"
}

According to the instructions, I grab the return from the [TOKEN] side, and send the client's browser back out to sign the authorization:
https://www.sandbox.paypal.com/cgi?bin/webscr?cmd=_express-checkout&token=EC-1NE7613043204060L

I have done this on several browsers across three machines, and in each time, it takes me to the sandbox homepage, vice to the billing section.

I even tried it manually where I make the url myself (as above), and it still takes me to the homepage, vice billing.

Where am I going wrong?
Thanks
LVL 9
Evan CutlerVolunteer Chief Information OfficerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrew AngellCo-Owner / DeveloperCommented:
The URL should be like this:  https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&useraction=continue&token=EC-56M03768H1691944A

It looks like your only problem is that you've got cgi?bin instead of cgi-bin in your URL.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Evan CutlerVolunteer Chief Information OfficerAuthor Commented:
ah jeez....
I'm all over looking for the problem....

those darn ?'s....lol
Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.