Grigory Ilizirov
Grigory Ilizirov

Reputation: 1028

Subscriptions Integration with PayPal-PHP-SDK

I am using PayPal-PHP-SDK to access PayPal API.

I need a "Quantity (user or seat) pricing plan", and I'm following this guide: https://developer.paypal.com/docs/subscriptions/integrate/. The steps in the guide include those API endpoints:

/v1/catalogs/products
/v1/billing/plans
/v1/billing/subscriptions

I have found only how to create a plan(/v1/billing/plans) with the SDK, but I don't know how to add the parameter: "quantity_supported": true

I haven't found any examples/samples for /v1/catalogs/products, /v1/billing/subscriptions

Can it be done with the current PayPal-PHP-SDK ?

Upvotes: 3

Views: 2197

Answers (1)

Preston PHX
Preston PHX

Reputation: 30359

Updated answer (Jan 2021)

The PayPal-PHP-SDK was deprecated, and should not be used for anything at all.

The new Checkout-PHP-SDK does not support the Subscription API, so direct HTTPS integrations should be used instead.

You can perhaps modify or extend that new SDK to perform the REST calls you want.

Upvotes: 6

Related Questions