Paypal Error 11502
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up PayPal CreateRecurringPaymentProfile Error 11502 - Invalid Token up vote 2 down vote favorite I am setting up a Recurring Payment with PayPal's API. First I send the following parameters to SetExpressCheckout: Array ( [METHOD] => SetExpressCheckout [USER] => XXX [PWD] => XXX [SIGNATURE] => XXX [VERSION] => 98.0 [AMT] => 0 [MAXAMT] => 99.00 [RETURNURL] => http://google.com [CANCELURL] => http://google.com [L_BILLINGTYPE0] => RecurringPayments [L_BILLINGAGREEMENTDESCRIPTION0] => 99.00 per month till stopped ) This generates a response like the following: Array ( [TOKEN] => EC-90P39652RF345525U [TIMESTAMP] => 2013-02-08T17:09:24Z [ACK] => Success [VERSION] => 98.0 ) Using the description and token from the created billing agreement, I send the following parameters to CreateRecurringPaymentsProfile: Array ( [METHOD] => CreateRecurringPaymentsProfile [USER] => XXX [PWD] => XXX [SIGNATURE] => XXX [TOKEN] => EC-90P39652RF345525U [PROFILESTARTDATE] => Feb 22 2013 17:09:24 [DESC] => 99.00 per month till stopped [BILLINGPERIOD] => Month [BILLINGFREQUENCY] => 12 [AMT] => 99.00 [CURRENTCYCODE] => USD [CREDITCARDTYPE] => VISA [ACCT] => 1234123412341234 [EXPDATE] => 012014 [CVV2] => 123 [EMAIL] => fake@example.com [STREET] => 123 Main St [CITY] => New York City [STATE] => NY [COUNTRYCODE] => US [ZIP] => 12345 ) All looks well to me, but it fails: Array ( [TIMESTAMP] => 2013-02-08T17:09:24Z [ACK] => Failure [VERSION] => 98.0 [L_ERRORCODE0] => 11502 [L_SHORTMESSAGE0] => Invalid Token [L_LONGMESSAGE0] => The token is invalid [L_SEVERITYCODE0] => Error ) Any help is greatly appreciated! php paypal recurring-billing share|improve this question edited Jun 12 '13 at 2:41 meagar♦ 136k21203238 asked Feb 8 '13 at 17:17
The Archives > Archives > How to use PayPal (Archive) > Error 11502 setting up Recurring Billing CommunityCategoryBoardUsers turn on suggestions Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type. Showing results for Search instead for Do you mean Ask the Community Reply to topic http://stackoverflow.com/questions/14777899/paypal-createrecurringpaymentprofile-error-11502-invalid-token More topic options Subscribe to RSS Feed Mark Topic as New Mark Topic as Read Float this Topic to the Top Bookmark Subscribe Printer Friendly Page « Go to board « Previous Topic Next Topic » Arnb Member Posts: 2 Kudos: 0 Accepted Solutions: 0 Error 11502 setting up Recurring Billing [Edited] https://www.paypal-community.com/t5/How-to-use-PayPal-Archive/Error-11502-setting-up-Recurring-Billing/td-p/39845 03-19-2010 07:31 AM - edited 03-19-2010 07:36 AM In Sandbox attempting to setup a one year recurring billing with a 3 day free trial.First call express checkout (OK)then GetExpressCheckoutDetails (OK)followed by CreateRecurringPaymentsProfile (error 11502)However I keep getting error 11502 on Create recurrng billing. Meaning one or more subscription detail fields are missing from the request. Details of the transactions are shown below. After reviewing the API documentation and doing numerous tests where various fields were excluded, I am unable to determine what is missing or invalid.Any suggestions appreciated.Thank youGetExpressCheckoutDetailsArray ( [TOKEN] => EC-1P7881769E687100X [TIMESTAMP] => 2010-03-19T14:01:54Z [CORRELATIONID] => 65db78fbc5277 [ACK] => Success [VERSION] => 2.3 [BUILD] => 1227335 [EMAIL] => (obscured) [PAYERID] => LP5RKF9X3A3U6 [PAYERSTATUS] => verified [FIRSTNAME] => Test [LASTNAME] => User [COUNTRYCODE] => US [SHIPTONAME] => Test User [SHIPTOSTREET] => 1 Main St [SHIPTOCITY] => San Jose [SHIPTOSTATE] => CA [SHIPTOZIP] => 95131 [SHIPTOCOUNTRYCODE] => US [SHIPTOCOUNTRYNAME] => United States [ADDRESSSTATUS] => Confirmed )CreateRecurringPaymentsP
Exchange Q+A siteThis forum is for general discussions, beta-testing, bug reporting, etc. Learn more.What to do if you think you've found a bug.Create an account https://forum.civicrm.org/index.php?topic=20274.0 on civicrm.org to use this forum. Home Help Search Login Register CiviCRM Community Forums » Old sections (read-only, deprecated) » Support » Using CiviCRM » Using CiviContribute (Moderator: Donald Lobo) » Paypal Pro Recurring Payments Error (auto renew membership) « previous next » Print Pages: [1] Author Topic: Paypal Pro Recurring Payments Error (auto renew membership) (Read 1915 times) sanook I post occasionally Posts: paypal error 32 Karma: 1 Paypal Pro Recurring Payments Error (auto renew membership) « on: June 08, 2011, 07:29:23 pm » When trying to complete a new membership with the new "auto renew" set and the paypal express is chosen as the checkout method this error is given:Payment Processor Error message: 11502:Invalid Token The token is invalid It does work if "auto renew" is not chosen. paypal error 11502 I cannot figure this out. Any help much appreciated.Drupal 6.22 Civicrm 3.4.2Thanks! Logged Kurund Jalmi Administrator I’m (like) Lobo ;) Posts: 4169 Karma: 128 CiviCRM version: 4.x, future CMS version: Drupal 7, Joomla 3.x MySQL version: 5.5.x PHP version: 5.4.x Re: Paypal Pro Recurring Payments Error (auto renew membership) « Reply #1 on: June 08, 2011, 08:49:22 pm » Paypal Express does not support auto renew functionality.Kurund Logged Found this reply helpful? Support CiviCRM sanook I post occasionally Posts: 32 Karma: 1 Re: Paypal Pro Recurring Payments Error (auto renew membership) « Reply #2 on: June 08, 2011, 09:03:28 pm » This is a similar issue to paypal express not supporting adding an additional contribution to a membership purchase.It would be great if the paypal express button was hidden if either of these options were chosen. I might be willing to pay someone to make that happen....and perhaps noting that paypal express doesn't work in this documentation might be a good idea - http://wiki.civicrm.org/confluence/display/CRMDOC40/PayPal+Website+Payments+Pro+and+Express+ConfigurationTHanks Logged sanook I post occasionally Posts: 32 Karma: 1 Re: Paypal Pro Recurring Payments Error (auto renew membership) « Reply #3 on: June 09, 2011, 07:14:04 am