我正在寻找一种在网站上实施 PayPal Express Checkout 订阅模式的方法。
人们只需输入电子邮件地址即可购买订阅,从而实现简单的购买流程 = 我们没有获得任何 PII,例如名字 + 姓氏 + 地址 = 我们无法分析客户数据。
我正在尝试找到一种从该 PayPal 帐户获取 PayPal PII 的方法,同时只需要我们网站上的电子邮件地址,以使购买尽可能简单。
到目前为止我发现:
这应该根据我的用例的文档使用
GetExpressCheckoutDetails
来工作。但所有这些都已弃用/遗留。
有
GetExpressCheckoutDetails
的现代替代品吗?在当前推荐的 REST API 中找不到任何内容 (https://developer.paypal.com/api/rest/)。
使用当前订阅集成时,无论是自定义 API+JS SDK 集成还是通过 www.sandbox.paypal.com/billing/plans 创建,生成的配置文件 ID 将默认收集送货地址。响应示例:
GET v1/billing/subscriptions/I-HD1D7AUFMMVF
{
"status": "ACTIVE",
"status_update_time": "2024-03-22T21:44:49Z",
"id": "I-HD1D7AUFMMVF",
"plan_id": "P-3P2549811A474014LMABCDEF",
"start_time": "2024-03-22T21:44:14Z",
"quantity": "1",
"shipping_amount": {
"currency_code": "USD",
"value": "0.0"
},
"subscriber": {
"email_address": "[email protected]",
"payer_id": "PSAJ5P72ZXFDW",
"name": {
"given_name": "Preston",
"surname": "PHX"
},
"shipping_address": {
"address": {
"address_line_1": "1 Main St",
"admin_area_2": "San Jose",
"admin_area_1": "CA",
"postal_code": "95131",
"country_code": "US"
}
}
},
"billing_info": {
"outstanding_balance": {
"currency_code": "USD",
"value": "0.0"
},
"cycle_executions": [
{
"tenure_type": "REGULAR",
"sequence": 1,
"cycles_completed": 1,
"cycles_remaining": 0,
"current_pricing_scheme_version": 1,
"total_cycles": 0
}
],
"last_payment": {
"amount": {
"currency_code": "USD",
"value": "100.0"
},
"time": "2024-03-22T21:44:48Z"
},
"next_billing_time": "2024-03-23T10:00:00Z",
"failed_payments_count": 0
},
"create_time": "2024-03-22T21:44:47Z",
"update_time": "2024-03-22T21:44:49Z",
"plan_overridden": false,
"links": [...]
}
账单信息(例如与所用卡相关的姓名和地址,或 PayPal 帐户的地址)在设计上是保密的。
如果您需要收集其他信息,请使用您自己的表单字段。