Paypal Api 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 Sam 14.3k12152 Tried updating the PROFILESTARTDATE to '2013-02-22T17:27:03' (with the T found in PayPal examples). No luck, not surprisingly. –Sam Feb 8 '13 at 17:27 add a comment| 1 Answer 1 active
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 )CreateRecurringPaymentsProfile&TOKEN=EC-1P7881769E687100X&DESC=Yearly+Subscription&AMT=19.95&CURRENCYCODE=USD&PROFILESTARTDATE=2010-03-19T10%3A01%3A
Adaptive Payments Payouts Payouts Mass Pay Authentication & Security Vault Log In with PayPal Adaptive Accounts Permissions APIs REST APIs API Overview Authentication and Headers API Reference https://developer.paypal.com/docs/classic/api/merchant/CreateRecurringPaymentsProfile_API_Operation_NVP/ REST SDKs REST SDKs Quickstart NVP / SOAP API reference Support Enter search http://paypaldev.org/topic/9899-express-checkout-sdk-recurring-payment-invalid-token/ term Dashboard Dashboard My Apps & Credentials My Account Sandbox Accounts Notifications Transactions IPN Simulator Webhooks Simulator Webhooks Events Live Transactions Webhooks Events Log In REST APIsOverviewAuthentication & HeadersErrors API ReferenceRelease NotesSDKsSDKs QuickstartNVP / SOAP APIsCredentialsEndpointsCurrency CodesCountry CodesState & Province CodesLocale CodesResponse CodesError CodesSDKs API ReferenceRelease NotesAPI BasicsFirst REST paypal api CallNVP / SOAP Apps 101SDK IndexNotificationsSandboxGo Live CreateRecurringPaymentsProfile API Operation (NVP) Creates a recurring payments profile. You must invoke the CreateRecurringPaymentsProfile API operation for each profile you want to create. The API operation creates a profile and an associated billing agreement. Note: There is a one-to-one correspondence between billing agreements and recurring payments profiles. To associate a recurring payments profile with paypal api error its billing agreement, you must ensure that the description in the recurring payments profile matches the description of a billing agreement. For version 54.0 and later, use SetExpressCheckout to initiate creation of a billing agreement. CreateRecurringPaymentsProfile Request Message CreateRecurringPaymentsProfile Request Fields Field Description METHOD (Required) Must be CreateRecurringPaymentsProfile. TOKEN A timestamped token, the value of which was returned in the response to the first call to SetExpressCheckout. You can also use the token returned in the SetCustomerBillingAgreement response. Either this token or a credit card number is required. If you include both token and credit card number, the token is used and credit card number is ignored Call CreateRecurringPaymentsProfile once for each billing agreement included in SetExpressCheckout request and use the same token for each call. Each CreateRecurringPaymentsProfile request creates a single recurring payments profile. Note: Tokens expire after approximately 3 hours. Recurring Payments Profile Details Fields Field Description SUBSCRIBERNAME (Optional) Full name of the person receiving the product or service paid for by the recurring payment. If not present, the name in the buyer's PayPal account is used. Character length and li
Notification (IPN), and PDT → PayPal with PHP Javascript Disabled Detected You currently have javascript disabled. Several functions may not work. Please re-enable javascript to access full functionality. Express Checkout SDK + Recurring Payment: Invalid token Started by alphagon , Aug 29 2012 11:37 PM This topic is locked 1 reply to this topic #1 alphagon alphagon Newbie Members 1 posts Posted 29 August 2012 - 11:37 PM Hello.I'm trying to integrate merchant-php-sdk to accept payments, both recurring and one time in the same order.I'm currently implementing Express Checkout (not sure if this is the best choice though), but I'm having trouble creating the recurring payment profile.The flow is: -> SetExpressCheckoutRequest (Authorization)<- SetExpressCheckoutResponse (gets token ExpressCheckoutTokenType)-> CreateRecurringPaymentsProfileRequest (using above token)<- CreateRecurringPaymentsProfileResponse (The token is invalid)I've been searching and searching, but I couldn't get it to work.. Anyone any suggestions. I'd really appreaciate.Thank you.The logs look like this: [b][30-Aug-2012 06:15:41 UTC] PPAPIService: Request: [/b]