The URL should be /payments/billing/plans' instead of/payments/billing-plans'.
In addition, required parameters are now product_id, name, billing_cycles, and payment_preferences. And there are no such parameters as type, payment_definitions, or merchant_preferences.
I can submit a PR to fix these and other requests, but I don't know if the existing ones are still somehow in use and must be preserved. I'm new to PayPal REST APIs.
The URL should be
/payments/billing/plans' instead of
/payments/billing-plans'.In addition, required parameters are now
product_id
,name
,billing_cycles
, andpayment_preferences
. And there are no such parameters astype
,payment_definitions
, ormerchant_preferences
.I can submit a PR to fix these and other requests, but I don't know if the existing ones are still somehow in use and must be preserved. I'm new to PayPal REST APIs.
Here's the reference: https://developer.paypal.com/docs/api/subscriptions/v1/#plans_create