cancel
Showing results for 
Search instead for 
Did you mean: 

Subscription - revise quantity

Options
sjk4
Contributor
Posted on

I'm currently working on implementing new PayPal subscription mechanism for my online service using REST API. Unfortunately, I'm having some issues with revise method for the existing subscription - for all kind of requests I'm getting PAYMENT_IN_PROGRESS error.

 

My request (containing all necessary auth headers):

POST <a href="https://api.sandbox.paypal.com/v1/billing/subscriptions/I-89G0SXP46PJM/revise" target="_blank">https://api.sandbox.paypal.com/v1/billing/subscriptions/I-89G0SXP46PJM/revise</a>

{"quantity":"4"}

 

API response:

422 {"name":"UNPROCESSABLE_ENTITY","message":"The requested action could not be performed, semantically incorrect, or failed business validation.","debug_id":"c1c8e4e320f44","details":[{"issue":"PAYMENT_IN_PROGRESS","description":"Payment for the subscription is in progress."}],"links":[{"href":"<a href="https://developer.paypal.com/webapps/developer/docs/api/#UNPROCESSABLE_ENTITY","rel":"information_link","method":"GET" target="_blank">https://developer.paypal.com/webapps/developer/docs/api/#UNPROCESSABLE_ENTITY","rel":"information_link","method":"GET</a>"}]}

 

Subscription I-89G0SXP46PJM is definitely an active subscription and next payment date is tomorrow. I have no idea why I'm getting "Payment for the subscription is in progress." all the time even if today's payment has been successfully made. The PayPal documentation doesn't say anything about payments in progress.

 

Please let me know if anyone had similar issue.

5 REPLIES 5

Subscription - revise quantity

Options
JuanitoCarlitos
Contributor

Any answer?

Subscription - revise quantity

Options
Xtempore
Contributor

Sorry, I was unable to find any answer to this either.

 

Here are some facts:

  1. PayPal have made no attempt to address your question.
  2. The message "PAYMENT_IN_PROGRESS" appears nowhere in their poorly written, incomplete documentation.
  3. PayPal's API returns inconsistent results.
  4. PayPal openly acknowledges that the sandbox and live systems do not behave exactly the same way, which makes testing unreliable and unpredictable.
  5. Stripe's implementation is much easier to use as it is very well documented with a much superior dashboard.

Subscription - revise quantity

Options
iharel
New Community Member

I'm hitting the same issue exactly. 

Any answer to this? 

Subscription - revise quantity

Options
goranl
New Community Member

Guys, how did you solve this issue?
It happens randomly for months

Subscription - revise quantity

Options
synagen
Contributor

Anyone have a resolution? It's now July 2021, 2 years since this thread was opened, and I'm getting the same error. At the moment I cant use Paypal for my business because modifying the quantity of a quantity-based subscription when the customer changes their quantity, doesnt work in Live. Never been able to get it working in Test because the subscription details pages of the sandbox have never worked, so I am testing in live. If I cant resolve this then I'll have to look for an alternative method of billing subscription customers.

I have used raw CURL commands, as per the developer docs, and have also used the php Paypal libraries (code below). The PHP code returns nothing, just a 204 status (no content)

 

namespace PayPal\Api;
require '/opt/bitnami/php/bin/vendor/autoload.php';
use PayPal\Common\PayPalResourceModel;
use PayPal\Validation\ArgumentValidator;
use PayPal\Api\WebhookList;
use PayPal\Rest\ApiContext;
use PayPal\Validation\UrlValidator;
use PayPalCheckoutSdk\Core\PayPalHttpClient;
use PayPalCheckoutSdk\Core\PayPalEnvironment;
use PayPalCheckoutSdk\Core\ProductionEnvironment;

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.