thephpleague / omnipay-paypal

PayPal driver for the Omnipay PHP payment processing library
MIT License
299 stars 176 forks source link

Is the create plan request up to date? #253

Open cetetesoft opened 3 years ago

cetetesoft commented 3 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