首页 > 解决方案 > Stripe Create 订阅返回状态 - 不完整

问题描述

我正在使用测试卡 4242424242424242。我没有启用它的设置 - “启用 3D 安全”

编辑

订阅请求对象

AddInvoiceItems: null
ApplicationFeePercent: null
BackdateStartDate: null
BillingCycleAnchor: null
BillingThresholds: null
CancelAt: null
CancelAtPeriodEnd: null
CollectionMethod: null
Coupon: null
Customer: "cus_IBn......."
DaysUntilDue: null
DefaultPaymentMethod: null
DefaultSource: null
DefaultTaxRates: null
Expand: null
ExtraParams: Count = 0
Items: Count = 1
Metadata: null
OffSession: null
PaymentBehavior: null
PendingInvoiceItemInterval: null
Plan: null
Prorate: false
ProrationBehavior: null
Quantity: null
TaxPercent: null
TransferData: null
TrialEnd: null
TrialFromPlan: null
TrialPeriodDays: null

下面是订阅对象,我在创建订阅后得到响应。如果这有帮助

{“id”:“sub_absc ....”,“object”:“subscription”,“application_fee_percent”:null,“billing_cycle_anchor”:1602504785,“billing_thresholds”:null,“cancel_at”:null,“cancel_at_period_end”:false , "canceled_at": null, "collection_method": "charge_automatically", "created": 1602504785, "current_period_end": 1605183185, "current_period_start": 1602504785, "customer": "cus_IBn....", "days_until_due": null ,“default_payment_method”:null,“default_source”:null,“default_tax_rates”:[],“discount”:null,“ended_at”:null,“items”:{“object”:“list”,“data”:[ { “ID”: ”si_IBn...", "object": "subscription_item", "billing_thresholds": null, "created": 1602504786, "metadata": {}, "plan": { "id": "price_1HZu ....", “object”:“plan”,“active”:true,“aggregate_usage”:null,“amount”:1500,“amount_decimal”:1500.0,“billing_scheme”:“per_unit”,“created”:1602146656,“currency”: “usd”,“interval”:“month”,“interval_count”:1,“livemode”:false,“metadata”:{},“nickname”:null,“product”:“prod_IAF....”,“ tiers”:null,“tiers_mode”:null,“transform_usage”:null,“trial_period_days”:null,“usage_type": "licensed" }, "price": { "id": "price_1HZ.....", "object": "price", "active": true, "billing_scheme": "per_unit", "created ": 1602146656, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": null, "product": "prod_IAFD1.....", “recurring”:{“aggregate_usage”:null,“interval”:“month”,“interval_count”:1,“trial_period_days”:null,“usage_type”:“licensed”},“tiers”:null,“tiers_mode”:空,“transform_quantity”:空,“类型”:“重复”,“unit_amount”:1500,“unit_amount_decimal": 1500.0 }, "quantity": 1, "subscription": "sub_IBnU........", "tax_rates": [] } ], "has_more": false, "url": "/v1 /subscription_items?subscription=sub_IBn...." }, "latest_invoice": "in_1Hb.........", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, " pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": { "id": "price_1HZu........", "object": "plan ", "active": true, "aggregate_usage": null, "amount": 1500, "amount_decimal": 1500.0, "billing_scheme": "per_unit",“created”:1602146656,“currency”:“usd”,“interval”:“month”,“interval_count”:1,“livemode”:false,“metadata”:{},“nickname”:null,“product” :“prod_IAFD1k.......”,“tiers”:null,“tiers_mode”:null,“transform_usage”:null,“trial_period_days”:null,“usage_type”:“licensed”},“quantity”:1 , "schedule": null, "start_date": 1602504785, "status": "incomplete", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null }“livemode”:false,“metadata”:{},“nickname”:null,“product”:“prod_IAFD1k.......”,“tiers”:null,“tiers_mode”:null,“transform_usage”: null,“trial_period_days”:null,“usage_type”:“licensed”},“quantity”:1,“schedule”:null,“start_date”:1602504785,“status”:“incomplete”,“tax_percent”:null,“ transfer_data”:null,“trial_end”:null,“trial_start”:null }“livemode”:false,“metadata”:{},“nickname”:null,“product”:“prod_IAFD1k.......”,“tiers”:null,“tiers_mode”:null,“transform_usage”: null,“trial_period_days”:null,“usage_type”:“licensed”},“quantity”:1,“schedule”:null,“start_date”:1602504785,“status”:“incomplete”,“tax_percent”:null,“ transfer_data”:null,“trial_end”:null,“trial_start”:null }许可”},“数量”:1,“时间表”:null,“start_date”:1602504785,“status”:“incomplete”,“tax_percent”:null,“transfer_data”:null,“trial_end”:null,“trial_start “: 无效的 }许可”},“数量”:1,“时间表”:null,“start_date”:1602504785,“status”:“incomplete”,“tax_percent”:null,“transfer_data”:null,“trial_end”:null,“trial_start “: 无效的 }

标签: .net-corestripe-payments

解决方案


正如@karllekko 发票及其 PaymentIntent 需要从 API 扩展或检索,默认情况下它只是一个 ID。在 stripe.com/docs/billing/subscriptions/… 上有所描述,示例显示 subscriptionOptions.AddExpand("latest_invoice.payment_intent"); 例如出于这个原因。

我能够看到错误并且错误是

印度的非印度卢比交易应在印度境外有一个送货/账单地址。更多信息:https ://stripe.com/docs/india-exports

我为用户使用了一个虚拟地址,因为根据印度政府这是强制性的。


推荐阅读