#voidy_webhooks
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1285493397796294710
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- voidy_api, 2 hours ago, 16 messages
- voidy_subscription-cycle, 12 hours ago, 12 messages
- voidy_webhooks, 21 hours ago, 8 messages
How i am preparing my session params:
idempotency_key = str(uuid.uuid4())
session_params = {
"mode": "payment",
"line_items": [{"price": price_id, "quantity": 1}],
"invoice_creation": {"enabled": True},
"metadata": {
"org_id": org_id,
"user_id": user_id,
"plan_type": plan_type,
"account_plan": PLANTYPE_TO_ACCOUNTPLAN_MAP.get(plan_type),
"action": action,
"idempotency_key": idempotency_key,
"subscription_name": subscription,
},
"success_url": billing_overview_page_url,
"cancel_url": billing_overview_page_url,
"payment_intent_data": {"setup_future_usage": "off_session"},
"payment_method_data": {"allow_redisplay": "always"},
"saved_payment_method_options": {"allow_redisplay_filters": ["always"]},
}
if subscription:
session_params["metadata"]["subscription"] = subscription
if customer_id:
session_params["customer"] = customer_id
else:
session_params["customer_email"] = user_email
customer_obj = StripeServices.get_customer(customer_id=customer_id)
if customer_obj and customer_obj.address:
session_params["billing_address_collection"] = "auto"
else:
session_params["billing_address_collection"] = "required"
return session_params```
The problem im facing is address not getting saved to the customer.
Hello...? @spiral lodge
hi, looking...
Hi, the previously collected payment method, do you not see the billing_details on its object https://docs.stripe.com/api/payment_methods/object ?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
its there on payment method, but not updated to customer
evt_1PzvALAWDWbiBybiS5wHyJsu
It's expected. The billing address is collected per Payment Method. If you want it on the Customer, you can call Update Customer API when receiving the checkout.session.completed event