简体   繁体   English

与 PayPal-PHP-SDK 的订阅集成

[英]Subscriptions Integration with PayPal-PHP-SDK

I am using PayPal-PHP-SDK to access PayPal API.我正在使用PayPal-PHP-SDK访问 PayPal API。

I need a "Quantity (user or seat) pricing plan", and I'm following this guide: https://developer.paypal.com/docs/subscriptions/integrate/ .我需要一个“数量(用户或席位)定价计划”,我正在遵循本指南: https : //developer.paypal.com/docs/subscriptions/integrate/ The steps in the guide include those API endpoints:指南中的步骤包括这些 API 端点:

/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我只找到了如何使用 SDK 创建计划( /v1/billing/plans ),但我不知道如何添加参数: "quantity_supported": true

I haven't found any examples/samples for /v1/catalogs/products , /v1/billing/subscriptions我没有找到/v1/catalogs/products/v1/billing/subscriptions任何示例/示例

Can it be done with the current PayPal-PHP-SDK ?可以用当前的 PayPal-PHP-SDK 完成吗?

Updated answer (Jan 2021)更新答案(2021 年 1 月)

The PayPal-PHP-SDK was deprecated, and should not be used for anything at all. PayPal-PHP-SDK 已被弃用,根本不应用于任何事情。

The new Checkout-PHP-SDK does not support the Subscription API, so direct HTTPS integrations should be used instead.新的 Checkout-PHP-SDK 不支持订阅 API,因此应改用直接 HTTPS 集成。

You can perhaps modify or extend that new SDK to perform the REST calls you want.您或许可以修改或扩展该新 SDK 以执行您想要的 REST 调用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM