• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 601
  • Last Modified:

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

I am using a Paypal function to enable recurring billing.

According to the instructions:

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
				'L_BILLINGTYPE0' => 'RecurringPayments',
				//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) {
  string(20) "EC-1NE7613043204060L"
  string(20) "2013-10-09T00:30:04Z"
  string(13) "779982eb3019c"
  string(7) "Success"
  string(4) "86.0"
  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:

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?
Evan Cutler
Evan Cutler
1 Solution
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.
Evan CutlerVolunteer Chief Information OfficerAuthor Commented:
ah jeez....
I'm all over looking for the problem....

those darn ?'s....lol
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now