thephpleague / omnipay-paypal

PayPal driver for the Omnipay PHP payment processing library
MIT License
295 stars 174 forks source link

Is the create plan request up to date? #253

Open cetetesoft opened 2 years ago

cetetesoft commented 2 years ago

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.

Here's the reference: https://developer.paypal.com/docs/api/subscriptions/v1/#plans_create