Skip to content

Not open PaymentSheet #2158

@ambr89

Description

@ambr89

Describe the bug
When we invoke Stripe.instance.presentPaymentSheet() not appear bottom sheet.

To Reproduce
Steps to reproduce the behavior:

  1. invoke Stripe.instance.presentPaymentSheet() after right initialization.

Expected behavior
Open bottom sheet.

Smartphone / tablet

  • Device: Iphone 8 Plus
  • OS: 16.7.11
  • Package version: 11.5.0
  • Flutter version 3.29.0

Additional context
When we invoke Stripe.instance.presentPaymentSheet(), we can see these logs.
It seems that it can't show because of a rendering problem.

2025-05-28 17:17:01.208115+0200 Runner[1268:335112] LOG ANALYTICS: mc_complete_init_applepay - [(key: "pay_var", value: "paymentsheet"), (key: "ocr_type", value: "none"), (key: "mpe_config", value: ["appearance": ["usage": false, "corner_radius": false, "font": false, "colors": false, "shadow": false, "border_width": false, "embedded_payment_element": ["row_style": false, "row": false], "primary_button": false], "preferred_networks": "", "save_payment_method_opt_in_behavior": "automatic", "card_brand_acceptance": false, "customer": false, "billing_details_collection_configuration": ["attach_defaults": false, "email": "automatic", "name": "automatic", "address": "automatic", "phone": "automatic"], "payment_method_layout": "automatic", "apple_pay_config": true, "return_url": false, "style": 1, "allows_delayed_payment_methods": false, "default_billing_details": false]), (key: "is_decoupled", value: false), (key: "apple_pay_enabled", value: 1), (key: "active_link_session", value: false)] 2025-05-28 17:17:06.883273+0200 Runner[1268:335112] LOG ANALYTICS: mc_load_started - [(key: "pay_var", value: "paymentsheet"), (key: "ocr_type", value: "none"), (key: "mpe_config", value: ["allows_delayed_payment_methods": false, "preferred_networks": "", "save_payment_method_opt_in_behavior": "automatic", "customer": false, "style": 1, "apple_pay_config": true, "card_brand_acceptance": false, "default_billing_details": false, "appearance": ["shadow": false, "colors": false, "primary_button": false, "font": false, "usage": false, "border_width": false, "embedded_payment_element": ["row_style": false, "row": false], "corner_radius": false], "payment_method_layout": "automatic", "return_url": false, "billing_details_collection_configuration": ["email": "automatic", "address": "automatic", "phone": "automatic", "attach_defaults": false, "name": "automatic"]]), (key: "is_decoupled", value: false), (key: "integration_shape", value: "paymentsheet"), (key: "apple_pay_enabled", value: 1), (key: "active_link_session", value: false)] 2025-05-28 17:17:06.937193+0200 Runner[1268:335112] [Presentation] Attempt to present <STP_Internal_BottomSheetViewController: 0x110019a00> on <UIViewController: 0x103405ba0> (from <UIViewController: 0x103405ba0>) whose view is not in the window hierarchy. 2025-05-28 17:17:06.951678+0200 Runner[1268:335112] flutter: HomeWallet [Stripe SDK]: GET "/v1/elements/sessions" 200 req_kFbc3jYSAl9FWT 2025-05-28 17:17:07.444161+0200 Runner[1268:335112] LOG ANALYTICS: mc_load_succeeded - [(key: "selected_lpm", value: "none"), (key: "require_cvc_recollection", value: false), (key: "pay_var", value: "paymentsheet"), (key: "ordered_lpms", value: "card"), (key: "ocr_type", value: "none"), (key: "mpe_config", value: ["card_brand_acceptance": false, "allows_delayed_payment_methods": false, "customer": false, "style": 1, "apple_pay_config": true, "default_billing_details": false, "save_payment_method_opt_in_behavior": "automatic", "billing_details_collection_configuration": ["attach_defaults": false, "name": "automatic", "phone": "automatic", "address": "automatic", "email": "automatic"], "return_url": false, "preferred_networks": "", "appearance": ["usage": false, "border_width": false, "colors": false, "embedded_payment_element": ["row": false, "row_style": false], "font": false, "corner_radius": false, "primary_button": false, "shadow": false], "payment_method_layout": "automatic"]), (key: "link_use_attestation", value: false), (key: "link_session_type", value:

2025-05-28 17:17:12.315714+0200 Runner[1268:335112] [Snapshotting] Snapshotting a view (0x106613600, UIView) that has not been rendered at least once requires afterScreenUpdates:YES.

2025-05-28 17:17:12.347510+0200 Runner[1268:335112] LOG ANALYTICS: mc_complete_sheet_newpm_show - [(key: "require_cvc_recollection", value: false), (key: "pay_var", value: "paymentsheet"), (key: "ocr_type", value: "none"), (key: "mpe_config", value: ["style": 1, "save_payment_method_opt_in_behavior": "automatic", "appearance": ["primary_button": false, "border_width": false, "font": false, "colors": false, "embedded_payment_element": ["row": false, "row_style": false], "corner_radius": false, "usage": false, "shadow": false], "return_url": false, "customer": false, "billing_details_collection_configuration": ["email": "automatic", "phone": "automatic", "name": "automatic", "attach_defaults": false, "address": "automatic"], "default_billing_details": false, "payment_method_layout": "automatic", "allows_delayed_payment_methods": false, "apple_pay_config": true, "preferred_networks": "", "card_brand_acceptance": false]), (key: "link_use_attestation", value: false), (key: "link_session_type", value: "shared"), (key: "link_mobile_suppress_2fa_modal", value: false) 2025-05-28 17:17:12.411066+0200 Runner[1268:335112] LOG ANALYTICS: mc_form_shown - [(key: "selected_lpm", value: "card"), (key: "require_cvc_recollection", value: false), (key: "pay_var", value: "paymentsheet"), (key: "ocr_type", value: "none"), (key: "mpe_config", value: ["apple_pay_config": true, "return_url": false, "appearance": ["embedded_payment_element": ["row_style": false, "row": false], "font": false, "colors": false, "corner_radius": false, "border_width": false, "usage": false, "shadow": false, "primary_button": false], "billing_details_collection_configuration": ["email": "automatic", "phone": "automatic", "attach_defaults": false, "address": "automatic", "name": "automatic"], "preferred_networks": "", "payment_method_layout": "automatic", "save_payment_method_opt_in_behavior": "automatic", "default_billing_details": false, "allows_delayed_payment_methods": false, "customer": false, "card_brand_acceptance": false, "style": 1]), (key: "link_use_attestation", value: false), (key: "link_session_type", value: "shared"), (key: "link_mobile_suppress_2f

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions