PUT Completes a PayPal account upgrade transaction.
After the user has completed the payment at PayPal, this endpoint is used to verify the payment, and upgrade the account to a Premium account. The paypal cookie received from the POST call must be submitted.
None, but a cookie named
paypal must be presented, containing the PayPal
transaction state as returned by the preceding POST request.
Content-Length: 0). Not all HTTP clients do this automatically. For more information, please see RFC 2616.
A 2.0 User object, with evidence of the upgrade.
The following error situations are possible:
|400 (Bad request)||No paypal cookie was provided|
|400 (Bad request)||An invalid paypal cookie was provided|
|400 (Bad request)||No plan was specified|
|400 (Bad request)||Given plan ID is unknown|
|400 (Bad request)||The communication with PayPal failed|
||400 (Bad request)||The account is already a premium account|
||400 (Bad request)||The account is part of an organization|
||500 (Internal error)||Unable to upgrade the account to a premium account|