Billing Plan override is not allowed due to insufficient permissions

lfernandes00
New Community Member

I'm developing a NextJS app with the possibility of subscriptions via paypal, using the `@paypal/react-paypal-js` package.

I had a custom logic to apply coupons and promo codes that consisted on having coupons stored in a data base and an input where the client inserted the promo code value. If the value inserted corresponded to any of the coupons available, it would override the price value in billing_cycles in the actions.subscription.create function (example below).

createSubscription={(data, actions) => {
        return actions.subscription.create({
          plan_id: planId,
          plan: {
            billing_cycles: [
              {
                ...billing_cycles[0],
                pricing_scheme: {
                  fixed_price: {
                    value:
                      !!appliedCoupon && !appliedCoupon.isExpired && appliedCoupon.isRedeemable
                        ? formatPriceForPromoCode(
                            billing_cycles[0].pricing_scheme.fixed_price.value,
                            appliedCoupon.data.percent_off / 100
                          )
                        : billing_cycles[0].pricing_scheme.fixed_price.value,
                    currency_code: billing_cycles[0].pricing_scheme.fixed_price.currency_code
                  }
                }
              }
            ]
          }
        });
      }}


This logic worked fine for a long time, and all of a sudden it stoped working throwing the following error: Billing plan Override is not allowed due to insufficient permissions.

Does anyone know what the problem is and how to fixe it. Also if you know of a better way to implement coupons in paypal I'd also like to know.

Thank you

Login to Me Too
4 REPLIES 4

whf
New Community Member

I have the same problem. Paypal seems to have changed the API contract without prior notice. More info here: https://stackoverflow.com/questions/77006742/paypal-subscription-error-billing-plan-override-is-not-... 

Login to Me Too

roguewebdesign
Contributor
Contributor

This has been an issue for some time now, but unresolved. We have a case open with tech support on this but also taking days to get a clear response.

Hopefully they can reverse this change as it is effecting anyone using the REST API for subscriptions. They can't expect accounts to individually request permissions so they can override Billing Plans again.

Login to Me Too

ganimp84
Contributor
Contributor

Hi, Is there any update on this issue? We are facing the same problem in our Sandbox environment.
This is concerning, as this functionality was previously working smoothly.

Our subscription payments continue to function correctly in our production environment. The issue is only in our test/sandbox environment. Any help is appreciated

Login to Me Too

luuie
Contributor
Contributor

I'm in the same boat. There is still no resolution?

Login to Me Too

Haven't Found your Answer?

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