Billing Plan override is not allowed due to insufficient permissions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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-...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.