diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithDeferredIntentserverSideConfirmation/0000_get_v1_elements_sessions.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithDeferredIntentserverSideConfirmation/0000_get_v1_elements_sessions.tail index 9e0816e9a40..6335e8be09b 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithDeferredIntentserverSideConfirmation/0000_get_v1_elements_sessions.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithDeferredIntentserverSideConfirmation/0000_get_v1_elements_sessions.tail @@ -1,22 +1,23 @@ GET -https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?client_default_payment_method=pm_1PiS2zFY0qyl6XeWlMKBbYVV&deferred_intent%5Bamount%5D=1050&deferred_intent%5Bcapture_method%5D=automatic&deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=payment&deferred_intent%5Bpayment_method_types%5D%5B0%5D=card&deferred_intent%5Bpayment_method_types%5D%5B1%5D=cashapp&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ +https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?deferred_intent%5Bamount%5D=1050&deferred_intent%5Bcapture_method%5D=automatic&deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=payment&deferred_intent%5Bpayment_method_types%5D%5B0%5D=card&deferred_intent%5Bpayment_method_types%5D%5B1%5D=cashapp&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ 200 application/json -access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE +access-control-allow-methods: GET, HEAD, PUT, PATCH, POST, DELETE content-security-policy: report-uri https://q.stripe.com/csp-report?p=v1%2Felements%2Fsessions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Server: nginx Cache-Control: no-cache, no-store reporting-endpoints: coop="https://q.stripe.com/coop-report?s=ocs-bapi-srv" +x-wc: A Strict-Transport-Security: max-age=63072000; includeSubDomains; preload cross-origin-opener-policy-report-only: same-origin; report-to="coop" Access-Control-Allow-Origin: * x-stripe-routing-context-priority-tier: api-testmode x-stripe-priority-routing-enabled: true report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=ocs-bapi-srv"}],"include_subdomains":true} -request-id: req_gdfeGSL60tMJJ7 -Content-Length: 13148 +request-id: req_2HxN1KEPXY0edm +Content-Length: 13505 Vary: Origin -Date: Wed, 31 Jul 2024 02:13:54 GMT +Date: Wed, 16 Oct 2024 16:34:03 GMT stripe-version: 2020-08-27 access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required access-control-max-age: 300 @@ -25,99 +26,6 @@ Content-Type: application/json x-content-type-options: nosniff { - "merchant_currency" : "usd", - "meta_pay_signed_container_context" : null, - "link_settings" : { - "link_enable_webauthn_for_link_popup" : false, - "link_no_code_default_values_recall" : true, - "link_default_opt_in" : "NONE", - "link_elements_pageload_sign_up_disabled" : false, - "link_funding_sources_onboarding_unavailable_from_holdback" : [ - - ], - "link_crypto_onramp_bank_upsell" : false, - "link_funding_sources" : [ - - ], - "link_disabled_reasons" : { - "payment_element_payment_method_mode" : [ - "link_not_specified_in_payment_method_types" - ], - "payment_element_passthrough_mode" : [ - "link_not_enabled_on_payment_config", - "not_gated_into_enable_m2_passthrough_mode" - ] - }, - "link_elements_is_crypto_onramp" : false, - "link_payment_element_disabled_by_targeting" : false, - "link_popup_webview_option" : "shared", - "link_targeting_results" : { - "payment_element_passthrough_mode" : null - }, - "link_disable_email_otp" : false, - "link_local_storage_login_enabled" : false, - "link_enable_instant_debits_in_testmode" : false, - "link_global_holdback_on" : false, - "link_session_storage_login_enabled" : false, - "link_payment_element_enable_webauthn_login" : false, - "link_payment_method_nicknames" : false, - "link_authenticated_change_event_enabled" : false, - "link_bank_onboarding_enabled" : false, - "link_hcaptcha_rqdata" : null, - "link_m2_default_integration_enabled" : false, - "link_financial_incentives_experiment_enabled" : false, - "link_passthrough_mode_enabled" : false, - "link_no_code_default_values_identification" : true, - "link_enable_email_otp_for_link_popup" : false, - "link_pay_button_element_enabled" : true, - "link_crypto_onramp_elements_logout_disabled" : false, - "link_mode" : null, - "link_no_code_default_values_usage" : true, - "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", - "link_crypto_onramp_force_cvc_reverification" : false, - "link_email_verification_login_enabled" : false, - "link_only_for_payment_method_types_enabled" : false, - "link_bank_incentives_enabled" : false, - "link_funding_sources_onboarding_enabled" : [ - - ], - "link_pm_killswitch_on_in_elements" : false - }, - "passive_captcha" : { - "site_key" : "20000000-ffff-ffff-ffff-000000000002", - "rqdata" : null - }, - "payment_method_specs" : [ - { - "async" : false, - "type" : "card", - "fields" : [ - - ] - }, - { - "async" : false, - "fields" : [ - - ], - "type" : "cashapp", - "selector_icon" : { - "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp@3x-a89c5d8d0651cae2a511bb49a6be1cfc.png", - "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp-981164a833e417d28a8ac2684fda2324.svg" - } - } - ], - "session_id" : "elements_session_1xH4EgfstYY", - "shipping_address_settings" : { - "autocomplete_allowed" : false - }, - "business_name" : "CI Stuff", - "unverified_payment_methods_on_domain" : [ - "apple_pay" - ], - "apple_pay_preference" : "enabled", - "google_pay_preference" : "enabled", - "merchant_id" : "acct_1G6m1pFY0qyl6XeW", "payment_method_preference" : { "country_code" : "US", "object" : "payment_method_preference", @@ -127,33 +35,20 @@ x-content-type-options: nosniff "cashapp" ] }, - "prefill_selectors" : { - "default_values" : { - "email" : [ - - ], - "merchant_provides_default_values_on_update" : true - } - }, - "experiments_data" : { - "arb_id" : "4760832f-2a9f-43fc-9263-2fdd463840bb", - "experiment_assignments" : { - "elements_merchant_ui_api_srv" : "control", - "link_popup_webview_option_ios" : "control" - } - }, + "capability_enabled_card_networks" : [ + "cartes_bancaires" + ], "flags" : { "elements_enable_external_payment_method_wallets_india" : false, "elements_enable_external_payment_method_check" : false, "elements_enable_external_payment_method_fonix" : false, "elements_enable_external_payment_method_au_pay" : false, - "elements_enable_invalid_country_for_pm_error" : false, + "elements_enable_invalid_country_for_pm_error" : true, "elements_enable_external_payment_method_ebt_snap" : false, "elements_enable_external_payment_method_v_pay" : false, + "elements_enable_link_in_passthrough_ece" : true, "elements_enable_passive_hcaptcha_in_payment_method_creation" : true, "legacy_confirmation_tokens" : false, - "link_purchase_protections_enabled" : false, - "enable_third_party_recurring_express_checkout_element" : false, "elements_enable_external_payment_method_swish" : false, "elements_enable_external_payment_method_online_banking_poland" : false, "elements_enable_read_allow_redisplay" : false, @@ -163,15 +58,15 @@ x-content-type-options: nosniff "elements_enable_express_checkout_button_demo_pay" : false, "elements_enable_external_payment_method_tabby" : false, "elements_enable_mx_card_installments" : false, - "link_payment_method_nicknames" : true, + "elements_disable_link_global_holdback_lookup" : false, "elements_enable_external_payment_method_bpay" : false, "elements_enable_external_payment_method_laybuy" : false, "elements_enable_external_payment_method_bluecode" : false, "elements_enable_external_payment_method_grabpay_later" : false, + "elements_disable_klarna_ece_crossborder_validation" : false, "elements_disable_payment_element_card_country_zip_validations" : false, "elements_enable_external_payment_method_billie" : false, "elements_enable_external_payment_method_postfinance" : false, - "elements_enable_use_last_used_payment_method" : false, "elements_enable_external_payment_method_scalapay" : false, "elements_enable_external_payment_method_famipay" : false, "elements_enable_save_for_future_payments_pre_check" : false, @@ -181,12 +76,15 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pay_easy" : false, "elements_enable_external_payment_method_sequra" : false, "elements_spm_set_as_default" : true, - "elements_write_sfu_into_confirm_request" : false, + "payment_element_link_modal_preload_killswitch" : false, "elements_enable_external_payment_method_paidy" : false, "elements_enable_write_allow_redisplay" : false, "elements_enable_external_payment_method_online_banking_thailand" : false, "elements_enable_external_payment_method_momo" : false, "elements_enable_external_payment_method_payrexx" : false, + "elements_appearance_payment_accordion_overrides" : false, + "elements_enable_cb_apple_pay_for_connect_platforms" : true, + "link_purchase_protections_rollout" : false, "elements_enable_external_payment_method_walley" : false, "elements_enable_external_payment_method_mb_way" : false, "elements_enable_external_payment_method_rabbitline_pay" : false, @@ -197,23 +95,23 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pledg" : false, "elements_enable_klarna_unified_offer" : true, "elements_enable_external_payment_method_postepay" : false, + "elements_enable_19_digit_pans" : false, "elements_enable_external_payment_method_aplazo" : false, "elements_enable_external_payment_method_dapp" : false, - "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_atone" : false, "elements_enable_external_payment_method_dankort" : false, "elements_enable_external_payment_method_fawry" : false, "elements_enable_external_payment_method_payconiq" : false, - "elements_enable_external_payment_method_wechat_mobile" : false, + "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_paysafecard" : false, "elements_enable_external_payment_method_eftpos_australia" : false, + "elements_enable_external_payment_method_wechat_mobile" : false, "elements_spm_messages" : false, "elements_enable_external_payment_method_azupay" : false, "ece_apple_pay_payment_request_passthrough" : false, "elements_enable_external_payment_method_online_banking_czech_republic" : false, "elements_enable_external_payment_method_aplazame" : false, "elements_enable_external_payment_method_rakuten_pay" : false, - "elements_luxe_qr_ui_on_web_enabled" : false, "paypal_express_checkout_recurring_support" : false, "elements_enable_external_payment_method_paypo" : false, "elements_enable_external_payment_method_netbanking" : false, @@ -223,33 +121,30 @@ x-content-type-options: nosniff "financial_connections_enable_deferred_intent_flow" : true, "elements_enable_external_payment_method_hands_in" : false, "elements_enable_external_payment_method_younitedpay" : false, - "elements_enable_passive_captcha_on_payment_intent_update" : true, "elements_enable_br_card_installments" : false, "elements_enable_external_payment_method_atome" : false, "elements_enable_external_payment_method_mercado_pago" : false, "elements_enable_external_payment_method_amazon_pay" : false, "elements_enable_external_payment_method_line_pay" : false, "elements_enable_external_payment_method_paytm" : false, - "elements_enable_outer_action_show_upe_wallet" : true, "elements_enable_external_payment_method_catch" : false, "elements_enable_external_payment_method_skrill" : false, "elements_enable_external_payment_method_paypay" : false, + "elements_enable_klarna_express_checkout" : false, "elements_enable_external_payment_method_ratepay" : false, "elements_enable_external_payment_method_sezzle" : false, "elements_enable_external_payment_method_bankaxept" : false, "elements_enable_external_payment_method_satispay" : false, "elements_enable_external_payment_method_dbarai" : false, "elements_enable_external_payment_method_titres_restaurant" : false, + "elements_link_global_holdback_rollout" : false, "elements_enable_external_payment_method_coinbase_pay" : false, "elements_enable_external_payment_method_trustly" : false, - "elements_enable_save_last_used_payment_method" : true, "elements_enable_external_payment_method_kbc" : false, "elements_enable_external_payment_method_bizum" : false, "elements_enable_external_payment_method_gcash" : false, "elements_enable_card_brand_choice_payment_element_link" : true, "elements_enable_external_payment_method_payit" : false, - "elements_enable_payment_element_postal_validation" : true, - "link_doi_ungated_behavior_rollout" : true, "elements_enable_blik" : true, "elements_enable_south_korea_market_underlying_pms" : false, "elements_enable_external_payment_method_girocard" : false, @@ -263,11 +158,12 @@ x-content-type-options: nosniff "elements_enable_link_spm" : true, "elements_spm_max_visible_payment_methods" : false, "elements_disable_link_email_otp" : false, - "cbc_in_link_popup" : false, + "cbc_in_link_popup" : true, "elements_enable_external_payment_method_picpay" : false, "elements_enable_external_payment_method_planpay" : false, "elements_enable_external_payment_method_samsung_pay" : false, "elements_enable_external_payment_method_truelayer" : false, + "elements_enable_link_in_ece_personalization" : false, "elements_enable_passive_captcha" : true, "elements_disable_paypal_express" : false, "elements_disable_recurring_express_checkout_button_amazon_pay" : false, @@ -276,28 +172,22 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_payu" : false, "elements_disable_express_checkout_button_amazon_pay" : false, "elements_enable_external_payment_method_venmo" : false, + "disable_payment_element_if_required_billing_config" : false, + "link_set_active_field_true" : true, "elements_enable_external_payment_method_mondu" : false, "elements_enable_external_payment_method_paydirekt" : false, "elements_stop_move_focus_to_first_errored_field" : true, "elements_enable_external_payment_method_online_banking_slovakia" : false, "elements_enable_external_payment_method_interac" : false, - "link_new_learn_more_modal_enabled" : false, + "link_new_learn_more_modal_enabled" : true, "use_link_views" : false, "elements_enable_external_payment_method_mybank" : false }, - "external_payment_method_data" : null, - "unactivated_payment_method_types" : [ - "cashapp" - ], - "lpm_promotions" : null, - "merchant_country" : "US", - "paypal_express_config" : { - "client_id" : null, - "paypal_merchant_id" : null - }, - "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", - "customer" : null, + "merchant_logo_url" : null, + "session_id" : "elements_session_1meUTkzPDkE", "account_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_currency" : "usd", "card_brand_choice" : { "eligible" : false, "preferred_networks" : [ @@ -307,18 +197,139 @@ x-content-type-options: nosniff "cartes_bancaires" : false } }, - "customer_error" : null, - "order" : null, + "shipping_address_settings" : { + "autocomplete_allowed" : false + }, + "external_payment_method_data" : null, + "meta_pay_signed_container_context" : null, + "apple_pay_preference" : "enabled", + "lpm_promotions" : null, + "merchant_country" : "US", + "google_pay_preference" : "enabled", + "paypal_express_config" : { + "client_id" : null, + "paypal_merchant_id" : null + }, + "experiments_data" : { + "arb_id" : "8596e044-500b-4503-9509-8f45f53ae613", + "experiment_metadata" : { + "seed" : "f141acec06c73601adc1c212d38a020b85a1cdd62a3e46835373aeaf676a9090" + }, + "experiment_assignments" : { + "elements_merchant_ui_api_srv" : "control", + "link_popup_webview_option_ios" : "control", + "ocs_buyer_xp_elements_lpm_holdback" : "control" + } + }, "legacy_customer" : null, + "link_settings" : { + "link_enable_webauthn_for_link_popup" : false, + "link_no_code_default_values_recall" : true, + "link_payment_session_context" : null, + "link_consumer_incentive" : null, + "link_default_opt_in" : "NONE", + "link_elements_pageload_sign_up_disabled" : false, + "link_crypto_onramp_bank_upsell" : false, + "link_funding_sources" : [ + + ], + "link_disabled_reasons" : { + "payment_element_payment_method_mode" : [ + "link_not_specified_in_payment_method_types" + ], + "payment_element_passthrough_mode" : [ + "link_not_enabled_on_payment_config", + "not_gated_into_enable_m2_passthrough_mode" + ] + }, + "link_supported_payment_methods" : [ + + ], + "link_elements_is_crypto_onramp" : false, + "link_payment_element_disabled_by_targeting" : false, + "link_popup_webview_option" : "shared", + "link_targeting_results" : { + "payment_element_passthrough_mode" : null + }, + "link_disable_email_otp" : false, + "link_local_storage_login_enabled" : false, + "link_enable_instant_debits_in_testmode" : false, + "link_global_holdback_on" : false, + "link_session_storage_login_enabled" : false, + "link_payment_element_enable_webauthn_login" : false, + "link_authenticated_change_event_enabled" : false, + "link_bank_onboarding_enabled" : false, + "link_hcaptcha_rqdata" : null, + "link_m2_default_integration_enabled" : false, + "link_financial_incentives_experiment_enabled" : false, + "link_passthrough_mode_enabled" : false, + "link_no_code_default_values_identification" : true, + "link_enable_email_otp_for_link_popup" : false, + "link_pay_button_element_enabled" : true, + "link_crypto_onramp_elements_logout_disabled" : false, + "link_mode" : null, + "link_no_code_default_values_usage" : true, + "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", + "link_crypto_onramp_force_cvc_reverification" : false, + "link_email_verification_login_enabled" : false, + "link_only_for_payment_method_types_enabled" : false, + "link_bank_incentives_enabled" : false, + "link_pm_killswitch_on_in_elements" : false + }, + "passive_captcha" : { + "site_key" : "20000000-ffff-ffff-ffff-000000000002", + "rqdata" : null + }, + "payment_method_specs" : [ + { + "async" : false, + "type" : "card", + "fields" : [ + + ] + }, + { + "async" : false, + "fields" : [ + + ], + "type" : "cashapp", + "selector_icon" : { + "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp@3x-a89c5d8d0651cae2a511bb49a6be1cfc.png", + "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp-981164a833e417d28a8ac2684fda2324.svg" + } + } + ], + "prefill_selectors" : { + "default_values" : { + "email" : [ + + ], + "merchant_provides_default_values_on_update" : true + } + }, + "unactivated_payment_method_types" : [ + "cashapp" + ], + "unverified_payment_methods_on_domain" : [ + "apple_pay" + ], + "order" : null, "link_purchase_protections_data" : { "type" : null, "is_eligible" : false }, - "merchant_logo_url" : null, + "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", + "customer" : null, + "klarna_express_config" : { + "klarna_mid" : null + }, + "business_name" : "CI Stuff", "ordered_payment_method_types_and_wallets" : [ "card", "apple_pay", "cashapp", "google_pay" - ] + ], + "customer_error" : null } \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithDeferredIntentserverSideConfirmation/0001_post_v1_payment_methods.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithDeferredIntentserverSideConfirmation/0001_post_v1_payment_methods.tail index 57a3bb3db9a..c34c61cf63b 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithDeferredIntentserverSideConfirmation/0001_post_v1_payment_methods.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithDeferredIntentserverSideConfirmation/0001_post_v1_payment_methods.tail @@ -2,25 +2,26 @@ POST https:\/\/api\.stripe\.com\/v1\/payment_methods$ 200 application/json -access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE +access-control-allow-methods: GET, HEAD, PUT, PATCH, POST, DELETE content-security-policy: report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Server: nginx Cache-Control: no-cache, no-store reporting-endpoints: coop="https://q.stripe.com/coop-report?s=payins-bapi-srv" +x-wc: A Strict-Transport-Security: max-age=63072000; includeSubDomains; preload cross-origin-opener-policy-report-only: same-origin; report-to="coop" Access-Control-Allow-Origin: * stripe-should-retry: false x-stripe-priority-routing-enabled: true report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=payins-bapi-srv"}],"include_subdomains":true} -request-id: req_FMzggctJnssXzf +request-id: req_SPUWXMlue4Eo4m x-stripe-routing-context-priority-tier: api-testmode Content-Length: 932 Vary: Origin -Date: Wed, 31 Jul 2024 02:13:54 GMT -original-request: req_FMzggctJnssXzf +Date: Wed, 16 Oct 2024 16:34:03 GMT +original-request: req_SPUWXMlue4Eo4m stripe-version: 2020-08-27 -idempotency-key: dc5890d8-c7ac-4112-bc4d-9566b0621d81 +idempotency-key: 1fd2b66f-cd7c-4230-8b3e-50401607ad99 access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required access-control-max-age: 300 access-control-allow-credentials: true @@ -30,7 +31,7 @@ X-Stripe-Mock-Request: allow_redisplay=unspecified&card\[cvc]=123&card\[exp_mont { "object" : "payment_method", - "id" : "pm_1PiS34FY0qyl6XeWlIoELdVi", + "id" : "pm_1QAaAhFY0qyl6XeWOAAbBTKO", "billing_details" : { "email" : null, "phone" : null, @@ -70,7 +71,7 @@ X-Stripe-Mock-Request: allow_redisplay=unspecified&card\[cvc]=123&card\[exp_mont "country" : "US" }, "livemode" : false, - "created" : 1722392034, + "created" : 1729096443, "allow_redisplay" : "unspecified", "type" : "card", "customer" : null diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithDeferredIntentserverSideConfirmation/0002_post_create_payment_intent.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithDeferredIntentserverSideConfirmation/0002_post_create_payment_intent.tail index 257a6d568d4..88fd08dc6c8 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithDeferredIntentserverSideConfirmation/0002_post_create_payment_intent.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithDeferredIntentserverSideConfirmation/0002_post_create_payment_intent.tail @@ -4,15 +4,15 @@ https:\/\/stp-mobile-ci-test-backend-e1b3\.stripedemos\.com\/create_payment_inte text/html Content-Type: text/html;charset=utf-8 Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000 -Set-Cookie: rack.session=tdV%2Fgju7JdR1ZVnBmR00Khd%2F47WCJ0Fsc4eyFz%2FP%2B%2F30ekOdpDjLNgshRd4JdESszFXZoo0ZozB%2FubLcLCp21wivTqrvRNTQ6%2BJVLCttyeWJ8Sc98IKiXd%2B4CAJeuhy7WI27%2B8bSnp%2Bfoiob86DxNAXsNHGqlNJ%2Fv1COWh92lNuV3dxXU8wBPJOpikI38ydWwR%2FDSC2qcpBeRNLzykiujiP8QRz6d%2BqGSAWinjfo1R8%3D; path=/ +Set-Cookie: rack.session=u3RPw7wRiMTZSjcjWWK4D%2B17X9%2FBpvfpWWc%2BugSLqc89xCfwSKfi6wZqRpzgQYrqHH6JvYDQm0SsDrsjwpGe0fXHLCji5n4S%2BOsBP4bAuWw0Essil%2FHwxjzqOv4fmGXYRe1XatA2sI6YeBXQpt6XqTQljdsO5JNY28WZ8%2Boisq6FpPJEYtbuweyZ5R7%2F2If0u%2Fa%2BVl0xFcuwzlsKqASeXBljkhin43%2B%2FccfpV9eidhA%3D; path=/ Server: Google Frontend -x-cloud-trace-context: 9406df6c7b70f7705a32fb2c6a2aa597;o=1 +x-cloud-trace-context: 0422429dc60a3e0e0cc0fcab476a6eb1;o=1 Via: 1.1 google x-xss-protection: 1; mode=block -Date: Wed, 31 Jul 2024 02:13:56 GMT +Date: Wed, 16 Oct 2024 16:34:05 GMT x-robots-tag: noindex, nofollow Content-Length: 133 x-content-type-options: nosniff x-frame-options: SAMEORIGIN -{"intent":"pi_3PiS35FY0qyl6XeW1YNPLCbq","secret":"pi_3PiS35FY0qyl6XeW1YNPLCbq_secret_x6mQvIznZPNQOkFzwzCtvUz6g","status":"succeeded"} \ No newline at end of file +{"intent":"pi_3QAaAiFY0qyl6XeW1qaotQDB","secret":"pi_3QAaAiFY0qyl6XeW1qaotQDB_secret_QPpR1jHt3QNhDKDq3CExsTztK","status":"succeeded"} \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithDeferredIntentserverSideConfirmation/0003_get_v1_payment_intents_pi_3PiS35FY0qyl6XeW1YNPLCbq.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithDeferredIntentserverSideConfirmation/0003_get_v1_payment_intents_pi_3QAaAiFY0qyl6XeW1qaotQDB.tail similarity index 84% rename from StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithDeferredIntentserverSideConfirmation/0003_get_v1_payment_intents_pi_3PiS35FY0qyl6XeW1YNPLCbq.tail rename to StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithDeferredIntentserverSideConfirmation/0003_get_v1_payment_intents_pi_3QAaAiFY0qyl6XeW1qaotQDB.tail index 33621851d12..7aeb6ecf827 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithDeferredIntentserverSideConfirmation/0003_get_v1_payment_intents_pi_3PiS35FY0qyl6XeW1YNPLCbq.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithDeferredIntentserverSideConfirmation/0003_get_v1_payment_intents_pi_3QAaAiFY0qyl6XeW1qaotQDB.tail @@ -1,22 +1,23 @@ GET -https:\/\/api\.stripe\.com\/v1\/payment_intents\/pi_3PiS35FY0qyl6XeW1YNPLCbq\?client_secret=pi_3PiS35FY0qyl6XeW1YNPLCbq_secret_x6mQvIznZPNQOkFzwzCtvUz6g&expand%5B0%5D=payment_method$ +https:\/\/api\.stripe\.com\/v1\/payment_intents\/pi_3QAaAiFY0qyl6XeW1qaotQDB\?client_secret=pi_3QAaAiFY0qyl6XeW1qaotQDB_secret_QPpR1jHt3QNhDKDq3CExsTztK&expand%5B0%5D=payment_method$ 200 application/json -access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE +access-control-allow-methods: GET, HEAD, PUT, PATCH, POST, DELETE content-security-policy: report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Server: nginx Cache-Control: no-cache, no-store reporting-endpoints: coop="https://q.stripe.com/coop-report?s=payins-bapi-srv" +x-wc: A Strict-Transport-Security: max-age=63072000; includeSubDomains; preload cross-origin-opener-policy-report-only: same-origin; report-to="coop" Access-Control-Allow-Origin: * x-stripe-routing-context-priority-tier: api-testmode x-stripe-priority-routing-enabled: true report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=payins-bapi-srv"}],"include_subdomains":true} -request-id: req_M6l7YpC1P30KIb +request-id: req_KYaywmn7b2QSCj Content-Length: 1910 Vary: Origin -Date: Wed, 31 Jul 2024 02:13:56 GMT +Date: Wed, 16 Oct 2024 16:34:05 GMT stripe-version: 2020-08-27 access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required access-control-max-age: 300 @@ -46,7 +47,7 @@ x-content-type-options: nosniff }, "payment_method" : { "object" : "payment_method", - "id" : "pm_1PiS34FY0qyl6XeWlIoELdVi", + "id" : "pm_1QAaAhFY0qyl6XeWOAAbBTKO", "billing_details" : { "email" : null, "phone" : null, @@ -86,13 +87,13 @@ x-content-type-options: nosniff "country" : "US" }, "livemode" : false, - "created" : 1722392034, + "created" : 1729096443, "allow_redisplay" : "unspecified", "type" : "card", "customer" : null }, - "client_secret" : "pi_3PiS35FY0qyl6XeW1YNPLCbq_secret_x6mQvIznZPNQOkFzwzCtvUz6g", - "id" : "pi_3PiS35FY0qyl6XeW1YNPLCbq", + "client_secret" : "pi_3QAaAiFY0qyl6XeW1qaotQDB_secret_QPpR1jHt3QNhDKDq3CExsTztK", + "id" : "pi_3QAaAiFY0qyl6XeW1qaotQDB", "confirmation_method" : "automatic", "amount_details" : { "tip" : { @@ -106,6 +107,6 @@ x-content-type-options: nosniff "cashapp" ], "setup_future_usage" : null, - "created" : 1722392035, + "created" : 1729096444, "description" : null } \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntent/0000_post_create_payment_intent.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntent/0000_post_create_payment_intent.tail index d564e8e6ec2..4f6375bb860 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntent/0000_post_create_payment_intent.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntent/0000_post_create_payment_intent.tail @@ -4,15 +4,15 @@ https:\/\/stp-mobile-ci-test-backend-e1b3\.stripedemos\.com\/create_payment_inte text/html Content-Type: text/html;charset=utf-8 Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000 -Set-Cookie: rack.session=giGqu5Z%2FnKTm8%2BiBDWvVWNYVyB8Erh9Aynu%2B8s3RKHaws4Ankd0lTjAFRhaFDF3Q1LPVoJJJFQ%2B9Nl0gLi07RUP0j%2BwvJHwyBQaIyTbPhAi04p2Ics6kcOmf%2BjAyw53OCAxFaPULIeNKxoqNfAh3xI0WdkXHVkSz%2BOW%2Fg93uAt%2BxYYWEZMIyik%2BDCrvv29Wk94%2Fw4CyCns%2FGorNBafroRnA4KF%2BDOUa6Xd%2BToPb07jQ%3D; path=/ +Set-Cookie: rack.session=5i4i%2FMhs5CvrTHf%2BCxmNL3SkoCfy2wOkNZGSiyQV3Ty4APMCd1Bx4r9yWukeitAayxqzJtt5mg8trF49xfWi8l6Z281ap7wE%2FaEg25TEOMnQjDRWe5Dxiqw9%2BtKilKp65fLOqxuV6rc4JZwCHdmF6m8w%2BU1e7f5RSJ03paL7hiDO7z1md6U3BlUD7E1GVNhOGAXS7kAhAh5b1soCwaZxL1ZguakpyqRHS96J5wZqUMw%3D; path=/ Server: Google Frontend -x-cloud-trace-context: 9a9dd9786065350b21535b859271c536 +x-cloud-trace-context: 07d3d6fc6719ee3c9b281f64d5c6a934;o=1 Via: 1.1 google x-xss-protection: 1; mode=block -Date: Wed, 31 Jul 2024 02:13:56 GMT +Date: Wed, 16 Oct 2024 16:35:40 GMT x-robots-tag: noindex, nofollow Content-Length: 147 x-content-type-options: nosniff x-frame-options: SAMEORIGIN -{"intent":"pi_3PiS36FY0qyl6XeW0l85ktJx","secret":"pi_3PiS36FY0qyl6XeW0l85ktJx_secret_Pqrnn0UraAPGt57x13aZX9b76","status":"requires_payment_method"} \ No newline at end of file +{"intent":"pi_3QAaCFFY0qyl6XeW0dHHsWb6","secret":"pi_3QAaCFFY0qyl6XeW0dHHsWb6_secret_PtMZHaF5Acnn0lzbFS3wowJYs","status":"requires_payment_method"} \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntent/0001_get_v1_elements_sessions.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntent/0001_get_v1_elements_sessions.tail index f4490125d36..ce5dc315d6b 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntent/0001_get_v1_elements_sessions.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntent/0001_get_v1_elements_sessions.tail @@ -1,22 +1,23 @@ GET -https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?client_default_payment_method=pm_1PiS2zFY0qyl6XeWlMKBbYVV&client_secret=pi_3PiS36FY0qyl6XeW0l85ktJx_secret_Pqrnn0UraAPGt57x13aZX9b76&expand%5B0%5D=payment_method_preference\.payment_intent\.payment_method&locale=en-US&type=payment_intent$ +https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?client_secret=pi_3QAaCFFY0qyl6XeW0dHHsWb6_secret_PtMZHaF5Acnn0lzbFS3wowJYs&expand%5B0%5D=payment_method_preference\.payment_intent\.payment_method&locale=en-US&type=payment_intent$ 200 application/json -access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE +access-control-allow-methods: GET, HEAD, PUT, PATCH, POST, DELETE content-security-policy: report-uri https://q.stripe.com/csp-report?p=v1%2Felements%2Fsessions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Server: nginx Cache-Control: no-cache, no-store reporting-endpoints: coop="https://q.stripe.com/coop-report?s=ocs-bapi-srv" +x-wc: A Strict-Transport-Security: max-age=63072000; includeSubDomains; preload cross-origin-opener-policy-report-only: same-origin; report-to="coop" Access-Control-Allow-Origin: * x-stripe-routing-context-priority-tier: api-testmode x-stripe-priority-routing-enabled: true report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=ocs-bapi-srv"}],"include_subdomains":true} -request-id: req_HWJ5M8T4fAmDcu -Content-Length: 19896 +request-id: req_jGR458EQ1eRwn0 +Content-Length: 20345 Vary: Origin -Date: Wed, 31 Jul 2024 02:13:57 GMT +Date: Wed, 16 Oct 2024 16:35:40 GMT stripe-version: 2020-08-27 access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required access-control-max-age: 300 @@ -25,16 +26,252 @@ Content-Type: application/json x-content-type-options: nosniff { + "payment_method_preference" : { + "country_code" : "US", + "object" : "payment_method_preference", + "payment_intent" : { + "payment_method_configuration_details" : null, + "canceled_at" : null, + "source" : null, + "amount" : 5050, + "capture_method" : "automatic", + "livemode" : false, + "shipping" : null, + "status" : "requires_payment_method", + "object" : "payment_intent", + "currency" : "eur", + "last_payment_error" : null, + "amount_subtotal" : 5050, + "automatic_payment_methods" : null, + "cancellation_reason" : null, + "next_action" : null, + "total_details" : { + "amount_discount" : 0, + "amount_tax" : 0 + }, + "payment_method" : null, + "client_secret" : "pi_3QAaCFFY0qyl6XeW0dHHsWb6_secret_PtMZHaF5Acnn0lzbFS3wowJYs", + "id" : "pi_3QAaCFFY0qyl6XeW0dHHsWb6", + "confirmation_method" : "automatic", + "amount_details" : { + "tip" : { + + } + }, + "processing" : null, + "receipt_email" : null, + "payment_method_types" : [ + "ideal", + "card", + "bancontact", + "sofort" + ], + "setup_future_usage" : null, + "created" : 1729096539, + "description" : null + }, + "ordered_payment_method_types" : [ + "card", + "sofort", + "bancontact", + "ideal" + ], + "type" : "payment_intent" + }, + "capability_enabled_card_networks" : [ + "cartes_bancaires" + ], + "flags" : { + "elements_enable_external_payment_method_wallets_india" : false, + "elements_enable_external_payment_method_check" : false, + "elements_enable_external_payment_method_fonix" : false, + "elements_enable_external_payment_method_au_pay" : false, + "elements_enable_invalid_country_for_pm_error" : true, + "elements_enable_external_payment_method_ebt_snap" : false, + "elements_enable_external_payment_method_v_pay" : false, + "elements_enable_link_in_passthrough_ece" : true, + "elements_enable_passive_hcaptcha_in_payment_method_creation" : true, + "legacy_confirmation_tokens" : false, + "elements_enable_external_payment_method_swish" : false, + "elements_enable_external_payment_method_online_banking_poland" : false, + "elements_enable_read_allow_redisplay" : false, + "elements_enable_card_brand_choice_payment_element_spm" : true, + "elements_enable_external_payment_method_divido" : false, + "elements_enable_external_payment_method_tng" : false, + "elements_enable_express_checkout_button_demo_pay" : false, + "elements_enable_external_payment_method_tabby" : false, + "elements_enable_mx_card_installments" : false, + "elements_disable_link_global_holdback_lookup" : false, + "elements_enable_external_payment_method_bpay" : false, + "elements_enable_external_payment_method_laybuy" : false, + "elements_enable_external_payment_method_bluecode" : false, + "elements_enable_external_payment_method_grabpay_later" : false, + "elements_disable_klarna_ece_crossborder_validation" : false, + "elements_disable_payment_element_card_country_zip_validations" : false, + "elements_enable_external_payment_method_billie" : false, + "elements_enable_external_payment_method_postfinance" : false, + "elements_enable_external_payment_method_scalapay" : false, + "elements_enable_external_payment_method_famipay" : false, + "elements_enable_save_for_future_payments_pre_check" : false, + "show_swish_redirect_and_qr_code_auth_flows" : true, + "elements_enable_external_payment_method_online_banking_finland" : false, + "elements_enable_external_payment_method_nexi_pay" : false, + "elements_enable_external_payment_method_pay_easy" : false, + "elements_enable_external_payment_method_sequra" : false, + "elements_spm_set_as_default" : true, + "payment_element_link_modal_preload_killswitch" : false, + "elements_enable_external_payment_method_paidy" : false, + "elements_enable_write_allow_redisplay" : false, + "elements_enable_external_payment_method_online_banking_thailand" : false, + "elements_enable_external_payment_method_momo" : false, + "elements_enable_external_payment_method_payrexx" : false, + "elements_appearance_payment_accordion_overrides" : false, + "elements_enable_cb_apple_pay_for_connect_platforms" : true, + "link_purchase_protections_rollout" : false, + "elements_enable_external_payment_method_walley" : false, + "elements_enable_external_payment_method_mb_way" : false, + "elements_enable_external_payment_method_rabbitline_pay" : false, + "disable_cbc_in_link_popup" : false, + "elements_enable_external_payment_method_gopay" : false, + "elements_enable_mobilepay" : false, + "elements_enable_external_payment_method_knet" : false, + "elements_enable_external_payment_method_pledg" : false, + "elements_enable_klarna_unified_offer" : true, + "elements_enable_external_payment_method_postepay" : false, + "elements_enable_19_digit_pans" : false, + "elements_enable_external_payment_method_aplazo" : false, + "elements_enable_external_payment_method_dapp" : false, + "elements_enable_external_payment_method_atone" : false, + "elements_enable_external_payment_method_dankort" : false, + "elements_enable_external_payment_method_fawry" : false, + "elements_enable_external_payment_method_payconiq" : false, + "elements_enable_external_payment_method_vipps" : false, + "elements_enable_external_payment_method_paysafecard" : false, + "elements_enable_external_payment_method_eftpos_australia" : false, + "elements_enable_external_payment_method_wechat_mobile" : false, + "elements_spm_messages" : false, + "elements_enable_external_payment_method_azupay" : false, + "ece_apple_pay_payment_request_passthrough" : false, + "elements_enable_external_payment_method_online_banking_czech_republic" : false, + "elements_enable_external_payment_method_aplazame" : false, + "elements_enable_external_payment_method_rakuten_pay" : false, + "paypal_express_checkout_recurring_support" : false, + "elements_enable_external_payment_method_paypo" : false, + "elements_enable_external_payment_method_netbanking" : false, + "elements_enable_external_payment_method_pix_international" : false, + "elements_enable_external_payment_method_poli" : false, + "elements_enable_external_payment_method_kriya" : false, + "financial_connections_enable_deferred_intent_flow" : true, + "elements_enable_external_payment_method_hands_in" : false, + "elements_enable_external_payment_method_younitedpay" : false, + "elements_enable_br_card_installments" : false, + "elements_enable_external_payment_method_atome" : false, + "elements_enable_external_payment_method_mercado_pago" : false, + "elements_enable_external_payment_method_amazon_pay" : false, + "elements_enable_external_payment_method_line_pay" : false, + "elements_enable_external_payment_method_paytm" : false, + "elements_enable_external_payment_method_catch" : false, + "elements_enable_external_payment_method_skrill" : false, + "elements_enable_external_payment_method_paypay" : false, + "elements_enable_klarna_express_checkout" : false, + "elements_enable_external_payment_method_ratepay" : false, + "elements_enable_external_payment_method_sezzle" : false, + "elements_enable_external_payment_method_bankaxept" : false, + "elements_enable_external_payment_method_satispay" : false, + "elements_enable_external_payment_method_dbarai" : false, + "elements_enable_external_payment_method_titres_restaurant" : false, + "elements_link_global_holdback_rollout" : false, + "elements_enable_external_payment_method_coinbase_pay" : false, + "elements_enable_external_payment_method_trustly" : false, + "elements_enable_external_payment_method_kbc" : false, + "elements_enable_external_payment_method_bizum" : false, + "elements_enable_external_payment_method_gcash" : false, + "elements_enable_card_brand_choice_payment_element_link" : true, + "elements_enable_external_payment_method_payit" : false, + "elements_enable_blik" : true, + "elements_enable_south_korea_market_underlying_pms" : false, + "elements_enable_external_payment_method_girocard" : false, + "elements_enable_external_payment_method_oney" : false, + "elements_enable_external_payment_method_humm" : false, + "elements_enable_external_payment_method_iwocapay" : false, + "elements_enable_external_payment_method_benefit" : false, + "elements_enable_external_payment_method_twint" : false, + "link_enable_card_brand_choice" : true, + "elements_enable_external_payment_method_paybright" : false, + "elements_enable_link_spm" : true, + "elements_spm_max_visible_payment_methods" : false, + "elements_disable_link_email_otp" : false, + "cbc_in_link_popup" : true, + "elements_enable_external_payment_method_picpay" : false, + "elements_enable_external_payment_method_planpay" : false, + "elements_enable_external_payment_method_samsung_pay" : false, + "elements_enable_external_payment_method_truelayer" : false, + "elements_enable_link_in_ece_personalization" : false, + "elements_enable_passive_captcha" : true, + "elements_disable_paypal_express" : false, + "elements_disable_recurring_express_checkout_button_amazon_pay" : false, + "elements_enable_external_payment_method_alipay_mobile" : false, + "elements_enable_external_payment_method_merpay" : false, + "elements_enable_external_payment_method_payu" : false, + "elements_disable_express_checkout_button_amazon_pay" : false, + "elements_enable_external_payment_method_venmo" : false, + "disable_payment_element_if_required_billing_config" : false, + "link_set_active_field_true" : true, + "elements_enable_external_payment_method_mondu" : false, + "elements_enable_external_payment_method_paydirekt" : false, + "elements_stop_move_focus_to_first_errored_field" : true, + "elements_enable_external_payment_method_online_banking_slovakia" : false, + "elements_enable_external_payment_method_interac" : false, + "link_new_learn_more_modal_enabled" : true, + "use_link_views" : false, + "elements_enable_external_payment_method_mybank" : false + }, + "merchant_logo_url" : null, + "session_id" : "elements_session_01yIoQuCLq1", + "account_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_id" : "acct_1G6m1pFY0qyl6XeW", "merchant_currency" : "usd", + "card_brand_choice" : { + "eligible" : false, + "preferred_networks" : [ + "cartes_bancaires" + ], + "supported_cobranded_networks" : { + "cartes_bancaires" : true + } + }, + "shipping_address_settings" : { + "autocomplete_allowed" : false + }, + "external_payment_method_data" : null, "meta_pay_signed_container_context" : null, + "apple_pay_preference" : "enabled", + "lpm_promotions" : null, + "merchant_country" : "US", + "google_pay_preference" : "enabled", + "paypal_express_config" : { + "client_id" : null, + "paypal_merchant_id" : null + }, + "experiments_data" : { + "arb_id" : "f7b7b969-b996-4e5a-8ccb-3cc82f2b6d63", + "experiment_metadata" : { + "seed" : "f141acec06c73601adc1c212d38a020b85a1cdd62a3e46835373aeaf676a9090" + }, + "experiment_assignments" : { + "elements_merchant_ui_api_srv" : "control", + "link_popup_webview_option_ios" : "control", + "ocs_buyer_xp_elements_lpm_holdback" : "control" + } + }, + "legacy_customer" : null, "link_settings" : { "link_enable_webauthn_for_link_popup" : false, "link_no_code_default_values_recall" : true, + "link_payment_session_context" : null, + "link_consumer_incentive" : null, "link_default_opt_in" : "NONE", "link_elements_pageload_sign_up_disabled" : false, - "link_funding_sources_onboarding_unavailable_from_holdback" : [ - - ], "link_crypto_onramp_bank_upsell" : false, "link_funding_sources" : [ @@ -48,6 +285,9 @@ x-content-type-options: nosniff "not_gated_into_enable_m2_passthrough_mode" ] }, + "link_supported_payment_methods" : [ + + ], "link_elements_is_crypto_onramp" : false, "link_payment_element_disabled_by_targeting" : false, "link_popup_webview_option" : "shared", @@ -60,7 +300,6 @@ x-content-type-options: nosniff "link_global_holdback_on" : false, "link_session_storage_login_enabled" : false, "link_payment_element_enable_webauthn_login" : false, - "link_payment_method_nicknames" : false, "link_authenticated_change_event_enabled" : false, "link_bank_onboarding_enabled" : false, "link_hcaptcha_rqdata" : null, @@ -72,15 +311,12 @@ x-content-type-options: nosniff "link_pay_button_element_enabled" : true, "link_crypto_onramp_elements_logout_disabled" : false, "link_mode" : null, - "link_no_code_default_values_usage" : false, + "link_no_code_default_values_usage" : true, "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", "link_crypto_onramp_force_cvc_reverification" : false, "link_email_verification_login_enabled" : false, "link_only_for_payment_method_types_enabled" : false, "link_bank_incentives_enabled" : false, - "link_funding_sources_onboarding_enabled" : [ - - ], "link_pm_killswitch_on_in_elements" : false }, "passive_captcha" : { @@ -292,8 +528,9 @@ x-content-type-options: nosniff } ], "selector_icon" : { + "dark_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-sofort_dark@3x-1b34ec3a7503b3e20be0a069f8046f29.png", "dark_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-sofort_dark-ded76aa1c92357f1b78dab85ed5b6347.svg", - "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-klarna@3x-d8624aa9a5662d719a44d16b9fcca0be.png", + "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-sofort@3x-8842e382bdf77386d547ff0ef56880c1.png", "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-sofort-c12d29b37f06a2d05dfb22ea9736104b.svg" }, "type" : "sofort", @@ -317,69 +554,6 @@ x-content-type-options: nosniff } } ], - "session_id" : "elements_session_0xg1gIdegGB", - "shipping_address_settings" : { - "autocomplete_allowed" : false - }, - "business_name" : "CI Stuff", - "unverified_payment_methods_on_domain" : [ - "apple_pay" - ], - "apple_pay_preference" : "enabled", - "google_pay_preference" : "enabled", - "merchant_id" : "acct_1G6m1pFY0qyl6XeW", - "payment_method_preference" : { - "country_code" : "US", - "object" : "payment_method_preference", - "payment_intent" : { - "payment_method_configuration_details" : null, - "canceled_at" : null, - "source" : null, - "amount" : 5050, - "capture_method" : "automatic", - "livemode" : false, - "shipping" : null, - "status" : "requires_payment_method", - "object" : "payment_intent", - "currency" : "eur", - "last_payment_error" : null, - "amount_subtotal" : 5050, - "automatic_payment_methods" : null, - "cancellation_reason" : null, - "next_action" : null, - "total_details" : { - "amount_discount" : 0, - "amount_tax" : 0 - }, - "payment_method" : null, - "client_secret" : "pi_3PiS36FY0qyl6XeW0l85ktJx_secret_Pqrnn0UraAPGt57x13aZX9b76", - "id" : "pi_3PiS36FY0qyl6XeW0l85ktJx", - "confirmation_method" : "automatic", - "amount_details" : { - "tip" : { - - } - }, - "processing" : null, - "receipt_email" : null, - "payment_method_types" : [ - "ideal", - "card", - "bancontact", - "sofort" - ], - "setup_future_usage" : null, - "created" : 1722392036, - "description" : null - }, - "ordered_payment_method_types" : [ - "card", - "sofort", - "bancontact", - "ideal" - ], - "type" : "payment_intent" - }, "prefill_selectors" : { "default_values" : { "email" : [ @@ -388,189 +562,25 @@ x-content-type-options: nosniff "merchant_provides_default_values_on_update" : true } }, - "experiments_data" : { - "arb_id" : "37f726e5-6d09-4c6b-a934-fdec533a24c1", - "experiment_assignments" : { - "elements_link_longterm_holdback_v2" : "control", - "elements_merchant_ui_api_srv" : "control", - "link_popup_webview_option_ios" : "control" - } - }, - "flags" : { - "elements_enable_external_payment_method_wallets_india" : false, - "elements_enable_external_payment_method_check" : false, - "elements_enable_external_payment_method_fonix" : false, - "elements_enable_external_payment_method_au_pay" : false, - "elements_enable_invalid_country_for_pm_error" : false, - "elements_enable_external_payment_method_ebt_snap" : false, - "elements_enable_external_payment_method_v_pay" : false, - "elements_enable_passive_hcaptcha_in_payment_method_creation" : true, - "legacy_confirmation_tokens" : false, - "link_purchase_protections_enabled" : false, - "enable_third_party_recurring_express_checkout_element" : false, - "elements_enable_external_payment_method_swish" : false, - "elements_enable_external_payment_method_online_banking_poland" : false, - "elements_enable_read_allow_redisplay" : false, - "elements_enable_card_brand_choice_payment_element_spm" : true, - "elements_enable_external_payment_method_divido" : false, - "elements_enable_external_payment_method_tng" : false, - "elements_enable_express_checkout_button_demo_pay" : false, - "elements_enable_external_payment_method_tabby" : false, - "elements_enable_mx_card_installments" : false, - "link_payment_method_nicknames" : true, - "elements_enable_external_payment_method_bpay" : false, - "elements_enable_external_payment_method_laybuy" : false, - "elements_enable_external_payment_method_bluecode" : false, - "elements_enable_external_payment_method_grabpay_later" : false, - "elements_disable_payment_element_card_country_zip_validations" : false, - "elements_enable_external_payment_method_billie" : false, - "elements_enable_external_payment_method_postfinance" : false, - "elements_enable_use_last_used_payment_method" : false, - "elements_enable_external_payment_method_scalapay" : false, - "elements_enable_external_payment_method_famipay" : false, - "elements_enable_save_for_future_payments_pre_check" : false, - "show_swish_redirect_and_qr_code_auth_flows" : true, - "elements_enable_external_payment_method_online_banking_finland" : false, - "elements_enable_external_payment_method_nexi_pay" : false, - "elements_enable_external_payment_method_pay_easy" : false, - "elements_enable_external_payment_method_sequra" : false, - "elements_spm_set_as_default" : true, - "elements_write_sfu_into_confirm_request" : false, - "elements_enable_external_payment_method_paidy" : false, - "elements_enable_write_allow_redisplay" : false, - "elements_enable_external_payment_method_online_banking_thailand" : false, - "elements_enable_external_payment_method_momo" : false, - "elements_enable_external_payment_method_payrexx" : false, - "elements_enable_external_payment_method_walley" : false, - "elements_enable_external_payment_method_mb_way" : false, - "elements_enable_external_payment_method_rabbitline_pay" : false, - "disable_cbc_in_link_popup" : false, - "elements_enable_external_payment_method_gopay" : false, - "elements_enable_mobilepay" : false, - "elements_enable_external_payment_method_knet" : false, - "elements_enable_external_payment_method_pledg" : false, - "elements_enable_klarna_unified_offer" : true, - "elements_enable_external_payment_method_postepay" : false, - "elements_enable_external_payment_method_aplazo" : false, - "elements_enable_external_payment_method_dapp" : false, - "elements_enable_external_payment_method_vipps" : false, - "elements_enable_external_payment_method_atone" : false, - "elements_enable_external_payment_method_dankort" : false, - "elements_enable_external_payment_method_fawry" : false, - "elements_enable_external_payment_method_payconiq" : false, - "elements_enable_external_payment_method_wechat_mobile" : false, - "elements_enable_external_payment_method_paysafecard" : false, - "elements_enable_external_payment_method_eftpos_australia" : false, - "elements_spm_messages" : false, - "elements_enable_external_payment_method_azupay" : false, - "ece_apple_pay_payment_request_passthrough" : false, - "elements_enable_external_payment_method_online_banking_czech_republic" : false, - "elements_enable_external_payment_method_aplazame" : false, - "elements_enable_external_payment_method_rakuten_pay" : false, - "elements_luxe_qr_ui_on_web_enabled" : false, - "paypal_express_checkout_recurring_support" : false, - "elements_enable_external_payment_method_paypo" : false, - "elements_enable_external_payment_method_netbanking" : false, - "elements_enable_external_payment_method_pix_international" : false, - "elements_enable_external_payment_method_poli" : false, - "elements_enable_external_payment_method_kriya" : false, - "financial_connections_enable_deferred_intent_flow" : true, - "elements_enable_external_payment_method_hands_in" : false, - "elements_enable_external_payment_method_younitedpay" : false, - "elements_enable_passive_captcha_on_payment_intent_update" : true, - "elements_enable_br_card_installments" : false, - "elements_enable_external_payment_method_atome" : false, - "elements_enable_external_payment_method_mercado_pago" : false, - "elements_enable_external_payment_method_amazon_pay" : false, - "elements_enable_external_payment_method_line_pay" : false, - "elements_enable_external_payment_method_paytm" : false, - "elements_enable_outer_action_show_upe_wallet" : true, - "elements_enable_external_payment_method_catch" : false, - "elements_enable_external_payment_method_skrill" : false, - "elements_enable_external_payment_method_paypay" : false, - "elements_enable_external_payment_method_ratepay" : false, - "elements_enable_external_payment_method_sezzle" : false, - "elements_enable_external_payment_method_bankaxept" : false, - "elements_enable_external_payment_method_satispay" : false, - "elements_enable_external_payment_method_dbarai" : false, - "elements_enable_external_payment_method_titres_restaurant" : false, - "elements_enable_external_payment_method_coinbase_pay" : false, - "elements_enable_external_payment_method_trustly" : false, - "elements_enable_save_last_used_payment_method" : true, - "elements_enable_external_payment_method_kbc" : false, - "elements_enable_external_payment_method_bizum" : false, - "elements_enable_external_payment_method_gcash" : false, - "elements_enable_card_brand_choice_payment_element_link" : true, - "elements_enable_external_payment_method_payit" : false, - "elements_enable_payment_element_postal_validation" : true, - "link_doi_ungated_behavior_rollout" : true, - "elements_enable_blik" : true, - "elements_enable_south_korea_market_underlying_pms" : false, - "elements_enable_external_payment_method_girocard" : false, - "elements_enable_external_payment_method_oney" : false, - "elements_enable_external_payment_method_humm" : false, - "elements_enable_external_payment_method_iwocapay" : false, - "elements_enable_external_payment_method_benefit" : false, - "elements_enable_external_payment_method_twint" : false, - "link_enable_card_brand_choice" : true, - "elements_enable_external_payment_method_paybright" : false, - "elements_enable_link_spm" : true, - "elements_spm_max_visible_payment_methods" : false, - "elements_disable_link_email_otp" : false, - "cbc_in_link_popup" : false, - "elements_enable_external_payment_method_picpay" : false, - "elements_enable_external_payment_method_planpay" : false, - "elements_enable_external_payment_method_samsung_pay" : false, - "elements_enable_external_payment_method_truelayer" : false, - "elements_enable_passive_captcha" : true, - "elements_disable_paypal_express" : false, - "elements_disable_recurring_express_checkout_button_amazon_pay" : false, - "elements_enable_external_payment_method_alipay_mobile" : false, - "elements_enable_external_payment_method_merpay" : false, - "elements_enable_external_payment_method_payu" : false, - "elements_disable_express_checkout_button_amazon_pay" : false, - "elements_enable_external_payment_method_venmo" : false, - "elements_enable_external_payment_method_mondu" : false, - "elements_enable_external_payment_method_paydirekt" : false, - "elements_stop_move_focus_to_first_errored_field" : true, - "elements_enable_external_payment_method_online_banking_slovakia" : false, - "elements_enable_external_payment_method_interac" : false, - "link_new_learn_more_modal_enabled" : false, - "use_link_views" : false, - "elements_enable_external_payment_method_mybank" : false - }, - "external_payment_method_data" : null, "unactivated_payment_method_types" : [ "sofort", "bancontact", "ideal" ], - "lpm_promotions" : null, - "merchant_country" : "US", - "paypal_express_config" : { - "client_id" : null, - "paypal_merchant_id" : null - }, - "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", - "customer" : null, - "account_id" : "acct_1G6m1pFY0qyl6XeW", - "card_brand_choice" : { - "eligible" : false, - "preferred_networks" : [ - "cartes_bancaires" - ], - "supported_cobranded_networks" : { - "cartes_bancaires" : true - } - }, - "customer_error" : null, + "unverified_payment_methods_on_domain" : [ + "apple_pay" + ], "order" : null, - "legacy_customer" : null, "link_purchase_protections_data" : { "type" : null, "is_eligible" : false }, - "merchant_logo_url" : null, + "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", + "customer" : null, + "klarna_express_config" : { + "klarna_mid" : null + }, + "business_name" : "CI Stuff", "ordered_payment_method_types_and_wallets" : [ "card", "apple_pay", @@ -578,5 +588,6 @@ x-content-type-options: nosniff "sofort", "bancontact", "ideal" - ] + ], + "customer_error" : null } \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntent/0002_post_v1_payment_intents_pi_3PiS36FY0qyl6XeW0l85ktJx_confirm.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntent/0002_post_v1_payment_intents_pi_3QAaCFFY0qyl6XeW0dHHsWb6_confirm.tail similarity index 84% rename from StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntent/0002_post_v1_payment_intents_pi_3PiS36FY0qyl6XeW0l85ktJx_confirm.tail rename to StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntent/0002_post_v1_payment_intents_pi_3QAaCFFY0qyl6XeW0dHHsWb6_confirm.tail index 150474cdc36..213508f3cce 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntent/0002_post_v1_payment_intents_pi_3PiS36FY0qyl6XeW0l85ktJx_confirm.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntent/0002_post_v1_payment_intents_pi_3QAaCFFY0qyl6XeW0dHHsWb6_confirm.tail @@ -1,32 +1,33 @@ POST -https:\/\/api\.stripe\.com\/v1\/payment_intents\/pi_3PiS36FY0qyl6XeW0l85ktJx\/confirm$ +https:\/\/api\.stripe\.com\/v1\/payment_intents\/pi_3QAaCFFY0qyl6XeW0dHHsWb6\/confirm$ 200 application/json -access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE +access-control-allow-methods: GET, HEAD, PUT, PATCH, POST, DELETE content-security-policy: report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Server: nginx Cache-Control: no-cache, no-store reporting-endpoints: coop="https://q.stripe.com/coop-report?s=payins-bapi-srv" +x-wc: A Strict-Transport-Security: max-age=63072000; includeSubDomains; preload cross-origin-opener-policy-report-only: same-origin; report-to="coop" Access-Control-Allow-Origin: * stripe-should-retry: false x-stripe-priority-routing-enabled: true report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=payins-bapi-srv"}],"include_subdomains":true} -request-id: req_YaYpWC5NJHZFLw +request-id: req_GVeHIzzf8COiOQ x-stripe-routing-context-priority-tier: api-testmode Content-Length: 2201 Vary: Origin -Date: Wed, 31 Jul 2024 02:13:58 GMT -original-request: req_YaYpWC5NJHZFLw +Date: Wed, 16 Oct 2024 16:35:42 GMT +original-request: req_GVeHIzzf8COiOQ stripe-version: 2020-08-27 -idempotency-key: 5a6a272b-c21b-47ae-8bd5-c387e5dab18b +idempotency-key: 44979450-1abc-4c2f-b713-71f2c0534db1 access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required access-control-max-age: 300 access-control-allow-credentials: true Content-Type: application/json x-content-type-options: nosniff -X-Stripe-Mock-Request: client_secret=pi_3PiS36FY0qyl6XeW0l85ktJx_secret_Pqrnn0UraAPGt57x13aZX9b76&expand\[0]=payment_method&payment_method_data\[allow_redisplay]=unspecified&payment_method_data\[card]\[cvc]=123&payment_method_data\[card]\[exp_month]=12&payment_method_data\[card]\[exp_year]=32&payment_method_data\[card]\[number]=4242424242424242&payment_method_data\[payment_user_agent]=.*&payment_method_data\[type]=card&shipping\[address]\[country]=US&shipping\[address]\[line1]=Line%201&shipping\[name]=Jane%20Doe&shipping\[phone]=5551234567&use_stripe_sdk=true +X-Stripe-Mock-Request: client_secret=pi_3QAaCFFY0qyl6XeW0dHHsWb6_secret_PtMZHaF5Acnn0lzbFS3wowJYs&expand\[0]=payment_method&payment_method_data\[allow_redisplay]=unspecified&payment_method_data\[card]\[cvc]=123&payment_method_data\[card]\[exp_month]=12&payment_method_data\[card]\[exp_year]=32&payment_method_data\[card]\[number]=4242424242424242&payment_method_data\[payment_user_agent]=.*&payment_method_data\[type]=card&shipping\[address]\[country]=US&shipping\[address]\[line1]=Line%201&shipping\[name]=Jane%20Doe&shipping\[phone]=5551234567&use_stripe_sdk=true { "payment_method_configuration_details" : null, @@ -63,7 +64,7 @@ X-Stripe-Mock-Request: client_secret=pi_3PiS36FY0qyl6XeW0l85ktJx_secret_Pqrnn0Ur }, "payment_method" : { "object" : "payment_method", - "id" : "pm_1PiS37FY0qyl6XeWqnhpYr84", + "id" : "pm_1QAaCHFY0qyl6XeWV3ZJcvI8", "billing_details" : { "email" : null, "phone" : null, @@ -103,13 +104,13 @@ X-Stripe-Mock-Request: client_secret=pi_3PiS36FY0qyl6XeW0l85ktJx_secret_Pqrnn0Ur "country" : "US" }, "livemode" : false, - "created" : 1722392037, + "created" : 1729096541, "allow_redisplay" : "unspecified", "type" : "card", "customer" : null }, - "client_secret" : "pi_3PiS36FY0qyl6XeW0l85ktJx_secret_Pqrnn0UraAPGt57x13aZX9b76", - "id" : "pi_3PiS36FY0qyl6XeW0l85ktJx", + "client_secret" : "pi_3QAaCFFY0qyl6XeW0dHHsWb6_secret_PtMZHaF5Acnn0lzbFS3wowJYs", + "id" : "pi_3QAaCFFY0qyl6XeW0dHHsWb6", "confirmation_method" : "automatic", "amount_details" : { "tip" : { @@ -125,6 +126,6 @@ X-Stripe-Mock-Request: client_secret=pi_3PiS36FY0qyl6XeW0l85ktJx_secret_Pqrnn0Ur "sofort" ], "setup_future_usage" : null, - "created" : 1722392036, + "created" : 1729096539, "description" : null } \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntent/0003_get_v1_payment_intents_pi_3PiS36FY0qyl6XeW0l85ktJx.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntent/0003_get_v1_payment_intents_pi_3QAaCFFY0qyl6XeW0dHHsWb6.tail similarity index 81% rename from StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntent/0003_get_v1_payment_intents_pi_3PiS36FY0qyl6XeW0l85ktJx.tail rename to StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntent/0003_get_v1_payment_intents_pi_3QAaCFFY0qyl6XeW0dHHsWb6.tail index f0e7cfd77fb..fed78e28edc 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntent/0003_get_v1_payment_intents_pi_3PiS36FY0qyl6XeW0l85ktJx.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntent/0003_get_v1_payment_intents_pi_3QAaCFFY0qyl6XeW0dHHsWb6.tail @@ -1,22 +1,23 @@ GET -https:\/\/api\.stripe\.com\/v1\/payment_intents\/pi_3PiS36FY0qyl6XeW0l85ktJx\?client_secret=pi_3PiS36FY0qyl6XeW0l85ktJx_secret_Pqrnn0UraAPGt57x13aZX9b76$ +https:\/\/api\.stripe\.com\/v1\/payment_intents\/pi_3QAaCFFY0qyl6XeW0dHHsWb6\?client_secret=pi_3QAaCFFY0qyl6XeW0dHHsWb6_secret_PtMZHaF5Acnn0lzbFS3wowJYs$ 200 application/json -access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE +access-control-allow-methods: GET, HEAD, PUT, PATCH, POST, DELETE content-security-policy: report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Server: nginx Cache-Control: no-cache, no-store reporting-endpoints: coop="https://q.stripe.com/coop-report?s=payins-bapi-srv" +x-wc: A Strict-Transport-Security: max-age=63072000; includeSubDomains; preload cross-origin-opener-policy-report-only: same-origin; report-to="coop" Access-Control-Allow-Origin: * x-stripe-routing-context-priority-tier: api-testmode x-stripe-priority-routing-enabled: true report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=payins-bapi-srv"}],"include_subdomains":true} -request-id: req_GP8WAEJ26t1g3V +request-id: req_mkRuakR2cJJlSh Content-Length: 1206 Vary: Origin -Date: Wed, 31 Jul 2024 02:13:58 GMT +Date: Wed, 16 Oct 2024 16:35:42 GMT stripe-version: 2020-08-27 access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required access-control-max-age: 300 @@ -57,9 +58,9 @@ x-content-type-options: nosniff "amount_discount" : 0, "amount_tax" : 0 }, - "payment_method" : "pm_1PiS37FY0qyl6XeWqnhpYr84", - "client_secret" : "pi_3PiS36FY0qyl6XeW0l85ktJx_secret_Pqrnn0UraAPGt57x13aZX9b76", - "id" : "pi_3PiS36FY0qyl6XeW0l85ktJx", + "payment_method" : "pm_1QAaCHFY0qyl6XeWV3ZJcvI8", + "client_secret" : "pi_3QAaCFFY0qyl6XeW0dHHsWb6_secret_PtMZHaF5Acnn0lzbFS3wowJYs", + "id" : "pi_3QAaCFFY0qyl6XeW0dHHsWb6", "confirmation_method" : "automatic", "amount_details" : { "tip" : { @@ -75,6 +76,6 @@ x-content-type-options: nosniff "sofort" ], "setup_future_usage" : null, - "created" : 1722392036, + "created" : 1729096539, "description" : null } \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntentAttachedPaymentMethod/0000_post_create_payment_intent.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntentAttachedPaymentMethod/0000_post_create_payment_intent.tail index 5dd350e3cdb..13037684737 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntentAttachedPaymentMethod/0000_post_create_payment_intent.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntentAttachedPaymentMethod/0000_post_create_payment_intent.tail @@ -4,15 +4,15 @@ https:\/\/stp-mobile-ci-test-backend-e1b3\.stripedemos\.com\/create_payment_inte text/html Content-Type: text/html;charset=utf-8 Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000 -Set-Cookie: rack.session=k3RRhj%2FgnalFZod3dD8q7zJ9v%2Bc85oS6APruusXsIHUGSWrUsyE7XRKQebDpZnjwPh9943lNir3nhnIp5cf%2BbWOGR%2FlVkDS4yNVeKj0lQa%2FfrSqtp%2Bz20c0VaDqRNNfVw3WCYmddOEuRXASKjCYVefcdhVx22ysQwAL0Z4mZw58%2B3pNcWVxeTmk3T%2BW%2FmLdLmDGoBE5zv0Qlf2rKrFyUfw8lgPXkxPWfXzV9yRiAj70%3D; path=/ +Set-Cookie: rack.session=rzYw0vSU2lxKl7qfWG0dJrsllhaItWN8hI9M3ag6IRzpvOZuCxvU1IyitVXqXVXueZLQqbiQvcsC1wpBhswfItCN5XNUGLBtk47SYTRvokP0Gt0FYWqG%2FUzSGskVgW3VdrBtTzpGiAMZujr5s4wc175Nr9CBXoLqPnqfEZIkFC387bd%2B2FrIl%2FZPBhkgxC%2BJQ6m5bO84xog37uRWPhO1Wo%2F395MNJiz7tEuLGUGKjiQ%3D; path=/ Server: Google Frontend -x-cloud-trace-context: 07729bd44946fce314d88437b15ef4ea +x-cloud-trace-context: e946f05ebd704846eaf2efc64fdca6a4;o=1 Via: 1.1 google x-xss-protection: 1; mode=block -Date: Wed, 31 Jul 2024 02:13:59 GMT +Date: Wed, 16 Oct 2024 17:03:41 GMT x-robots-tag: noindex, nofollow Content-Length: 145 x-content-type-options: nosniff x-frame-options: SAMEORIGIN -{"intent":"pi_3PiS38FY0qyl6XeW0OAa7B47","secret":"pi_3PiS38FY0qyl6XeW0OAa7B47_secret_1S41aep5y7Ph40WPi1pjDHS3s","status":"requires_confirmation"} \ No newline at end of file +{"intent":"pi_3QAadNFY0qyl6XeW1RowDu79","secret":"pi_3QAadNFY0qyl6XeW1RowDu79_secret_kBt6vYI8HUDYJ1JjvDuEsqmkC","status":"requires_confirmation"} \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntentAttachedPaymentMethod/0001_get_v1_elements_sessions.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntentAttachedPaymentMethod/0001_get_v1_elements_sessions.tail index 63e1b829271..f1374836da1 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntentAttachedPaymentMethod/0001_get_v1_elements_sessions.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntentAttachedPaymentMethod/0001_get_v1_elements_sessions.tail @@ -1,22 +1,23 @@ GET -https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?client_default_payment_method=pm_1PiS2zFY0qyl6XeWlMKBbYVV&client_secret=pi_3PiS38FY0qyl6XeW0OAa7B47_secret_1S41aep5y7Ph40WPi1pjDHS3s&expand%5B0%5D=payment_method_preference\.payment_intent\.payment_method&locale=en-US&type=payment_intent$ +https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?client_secret=pi_3QAadNFY0qyl6XeW1RowDu79_secret_kBt6vYI8HUDYJ1JjvDuEsqmkC&expand%5B0%5D=payment_method_preference\.payment_intent\.payment_method&locale=en-US&type=payment_intent$ 200 application/json -access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE +access-control-allow-methods: GET, HEAD, PUT, PATCH, POST, DELETE content-security-policy: report-uri https://q.stripe.com/csp-report?p=v1%2Felements%2Fsessions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Server: nginx Cache-Control: no-cache, no-store reporting-endpoints: coop="https://q.stripe.com/coop-report?s=ocs-bapi-srv" +x-wc: A Strict-Transport-Security: max-age=63072000; includeSubDomains; preload cross-origin-opener-policy-report-only: same-origin; report-to="coop" Access-Control-Allow-Origin: * x-stripe-routing-context-priority-tier: api-testmode x-stripe-priority-routing-enabled: true report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=ocs-bapi-srv"}],"include_subdomains":true} -request-id: req_xEoD8lEpDxwNoD -Content-Length: 14874 +request-id: req_HzKEtqNe4R6ITk +Content-Length: 15256 Vary: Origin -Date: Wed, 31 Jul 2024 02:13:59 GMT +Date: Wed, 16 Oct 2024 17:03:41 GMT stripe-version: 2020-08-27 access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required access-control-max-age: 300 @@ -25,88 +26,6 @@ Content-Type: application/json x-content-type-options: nosniff { - "merchant_currency" : "usd", - "meta_pay_signed_container_context" : null, - "link_settings" : { - "link_enable_webauthn_for_link_popup" : false, - "link_no_code_default_values_recall" : false, - "link_default_opt_in" : "NONE", - "link_elements_pageload_sign_up_disabled" : false, - "link_funding_sources_onboarding_unavailable_from_holdback" : [ - - ], - "link_crypto_onramp_bank_upsell" : false, - "link_funding_sources" : [ - - ], - "link_disabled_reasons" : { - "payment_element_payment_method_mode" : [ - "link_not_specified_in_payment_method_types" - ], - "payment_element_passthrough_mode" : [ - "link_not_enabled_on_payment_config", - "not_gated_into_enable_m2_passthrough_mode" - ] - }, - "link_elements_is_crypto_onramp" : false, - "link_payment_element_disabled_by_targeting" : false, - "link_popup_webview_option" : "shared", - "link_targeting_results" : { - "payment_element_passthrough_mode" : null - }, - "link_disable_email_otp" : false, - "link_local_storage_login_enabled" : false, - "link_enable_instant_debits_in_testmode" : false, - "link_global_holdback_on" : false, - "link_session_storage_login_enabled" : false, - "link_payment_element_enable_webauthn_login" : false, - "link_payment_method_nicknames" : false, - "link_authenticated_change_event_enabled" : false, - "link_bank_onboarding_enabled" : false, - "link_hcaptcha_rqdata" : null, - "link_m2_default_integration_enabled" : false, - "link_financial_incentives_experiment_enabled" : false, - "link_passthrough_mode_enabled" : false, - "link_no_code_default_values_identification" : true, - "link_enable_email_otp_for_link_popup" : false, - "link_pay_button_element_enabled" : true, - "link_crypto_onramp_elements_logout_disabled" : false, - "link_mode" : null, - "link_no_code_default_values_usage" : false, - "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", - "link_crypto_onramp_force_cvc_reverification" : false, - "link_email_verification_login_enabled" : false, - "link_only_for_payment_method_types_enabled" : false, - "link_bank_incentives_enabled" : false, - "link_funding_sources_onboarding_enabled" : [ - - ], - "link_pm_killswitch_on_in_elements" : false - }, - "passive_captcha" : { - "site_key" : "20000000-ffff-ffff-ffff-000000000002", - "rqdata" : null - }, - "payment_method_specs" : [ - { - "async" : false, - "type" : "card", - "fields" : [ - - ] - } - ], - "session_id" : "elements_session_0zG3s4mqbbP", - "shipping_address_settings" : { - "autocomplete_allowed" : false - }, - "business_name" : "CI Stuff", - "unverified_payment_methods_on_domain" : [ - "apple_pay" - ], - "apple_pay_preference" : "enabled", - "google_pay_preference" : "enabled", - "merchant_id" : "acct_1G6m1pFY0qyl6XeW", "payment_method_preference" : { "country_code" : "US", "object" : "payment_method_preference", @@ -132,7 +51,7 @@ x-content-type-options: nosniff }, "payment_method" : { "object" : "payment_method", - "id" : "pm_1PiS38FY0qyl6XeWGodfZvph", + "id" : "pm_1QAadMFY0qyl6XeWgjEKL3wI", "billing_details" : { "email" : null, "phone" : null, @@ -167,18 +86,18 @@ x-content-type-options: nosniff }, "wallet" : null, "display_brand" : "visa", - "exp_month" : 7, + "exp_month" : 10, "exp_year" : 2025, "country" : "US" }, "livemode" : false, - "created" : 1722392038, + "created" : 1729098220, "allow_redisplay" : "unspecified", "type" : "card", "customer" : null }, - "client_secret" : "pi_3PiS38FY0qyl6XeW0OAa7B47_secret_1S41aep5y7Ph40WPi1pjDHS3s", - "id" : "pi_3PiS38FY0qyl6XeW0OAa7B47", + "client_secret" : "pi_3QAadNFY0qyl6XeW1RowDu79_secret_kBt6vYI8HUDYJ1JjvDuEsqmkC", + "id" : "pi_3QAadNFY0qyl6XeW1RowDu79", "confirmation_method" : "automatic", "amount_details" : { "tip" : { @@ -191,7 +110,7 @@ x-content-type-options: nosniff "card" ], "setup_future_usage" : null, - "created" : 1722392038, + "created" : 1729098221, "description" : null }, "ordered_payment_method_types" : [ @@ -199,26 +118,20 @@ x-content-type-options: nosniff ], "type" : "payment_intent" }, - "experiments_data" : { - "arb_id" : "0a39f9db-3dad-49c3-916c-9145d4384d42", - "experiment_assignments" : { - "elements_link_longterm_holdback_v2" : "control", - "elements_merchant_ui_api_srv" : "control", - "link_popup_webview_option_ios" : "control" - } - }, + "capability_enabled_card_networks" : [ + "cartes_bancaires" + ], "flags" : { "elements_enable_external_payment_method_wallets_india" : false, "elements_enable_external_payment_method_check" : false, "elements_enable_external_payment_method_fonix" : false, "elements_enable_external_payment_method_au_pay" : false, - "elements_enable_invalid_country_for_pm_error" : false, + "elements_enable_invalid_country_for_pm_error" : true, "elements_enable_external_payment_method_ebt_snap" : false, "elements_enable_external_payment_method_v_pay" : false, + "elements_enable_link_in_passthrough_ece" : true, "elements_enable_passive_hcaptcha_in_payment_method_creation" : true, "legacy_confirmation_tokens" : false, - "link_purchase_protections_enabled" : false, - "enable_third_party_recurring_express_checkout_element" : false, "elements_enable_external_payment_method_swish" : false, "elements_enable_external_payment_method_online_banking_poland" : false, "elements_enable_read_allow_redisplay" : false, @@ -228,15 +141,15 @@ x-content-type-options: nosniff "elements_enable_express_checkout_button_demo_pay" : false, "elements_enable_external_payment_method_tabby" : false, "elements_enable_mx_card_installments" : false, - "link_payment_method_nicknames" : true, + "elements_disable_link_global_holdback_lookup" : false, "elements_enable_external_payment_method_bpay" : false, "elements_enable_external_payment_method_laybuy" : false, "elements_enable_external_payment_method_bluecode" : false, "elements_enable_external_payment_method_grabpay_later" : false, + "elements_disable_klarna_ece_crossborder_validation" : false, "elements_disable_payment_element_card_country_zip_validations" : false, "elements_enable_external_payment_method_billie" : false, "elements_enable_external_payment_method_postfinance" : false, - "elements_enable_use_last_used_payment_method" : false, "elements_enable_external_payment_method_scalapay" : false, "elements_enable_external_payment_method_famipay" : false, "elements_enable_save_for_future_payments_pre_check" : false, @@ -246,12 +159,15 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pay_easy" : false, "elements_enable_external_payment_method_sequra" : false, "elements_spm_set_as_default" : true, - "elements_write_sfu_into_confirm_request" : false, + "payment_element_link_modal_preload_killswitch" : false, "elements_enable_external_payment_method_paidy" : false, "elements_enable_write_allow_redisplay" : false, "elements_enable_external_payment_method_online_banking_thailand" : false, "elements_enable_external_payment_method_momo" : false, "elements_enable_external_payment_method_payrexx" : false, + "elements_appearance_payment_accordion_overrides" : false, + "elements_enable_cb_apple_pay_for_connect_platforms" : true, + "link_purchase_protections_rollout" : false, "elements_enable_external_payment_method_walley" : false, "elements_enable_external_payment_method_mb_way" : false, "elements_enable_external_payment_method_rabbitline_pay" : false, @@ -262,23 +178,23 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pledg" : false, "elements_enable_klarna_unified_offer" : true, "elements_enable_external_payment_method_postepay" : false, + "elements_enable_19_digit_pans" : false, "elements_enable_external_payment_method_aplazo" : false, "elements_enable_external_payment_method_dapp" : false, - "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_atone" : false, "elements_enable_external_payment_method_dankort" : false, "elements_enable_external_payment_method_fawry" : false, "elements_enable_external_payment_method_payconiq" : false, - "elements_enable_external_payment_method_wechat_mobile" : false, + "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_paysafecard" : false, "elements_enable_external_payment_method_eftpos_australia" : false, + "elements_enable_external_payment_method_wechat_mobile" : false, "elements_spm_messages" : false, "elements_enable_external_payment_method_azupay" : false, "ece_apple_pay_payment_request_passthrough" : false, "elements_enable_external_payment_method_online_banking_czech_republic" : false, "elements_enable_external_payment_method_aplazame" : false, "elements_enable_external_payment_method_rakuten_pay" : false, - "elements_luxe_qr_ui_on_web_enabled" : false, "paypal_express_checkout_recurring_support" : false, "elements_enable_external_payment_method_paypo" : false, "elements_enable_external_payment_method_netbanking" : false, @@ -288,33 +204,30 @@ x-content-type-options: nosniff "financial_connections_enable_deferred_intent_flow" : true, "elements_enable_external_payment_method_hands_in" : false, "elements_enable_external_payment_method_younitedpay" : false, - "elements_enable_passive_captcha_on_payment_intent_update" : true, "elements_enable_br_card_installments" : false, "elements_enable_external_payment_method_atome" : false, "elements_enable_external_payment_method_mercado_pago" : false, "elements_enable_external_payment_method_amazon_pay" : false, "elements_enable_external_payment_method_line_pay" : false, "elements_enable_external_payment_method_paytm" : false, - "elements_enable_outer_action_show_upe_wallet" : true, "elements_enable_external_payment_method_catch" : false, "elements_enable_external_payment_method_skrill" : false, "elements_enable_external_payment_method_paypay" : false, + "elements_enable_klarna_express_checkout" : false, "elements_enable_external_payment_method_ratepay" : false, "elements_enable_external_payment_method_sezzle" : false, "elements_enable_external_payment_method_bankaxept" : false, "elements_enable_external_payment_method_satispay" : false, "elements_enable_external_payment_method_dbarai" : false, "elements_enable_external_payment_method_titres_restaurant" : false, + "elements_link_global_holdback_rollout" : false, "elements_enable_external_payment_method_coinbase_pay" : false, "elements_enable_external_payment_method_trustly" : false, - "elements_enable_save_last_used_payment_method" : true, "elements_enable_external_payment_method_kbc" : false, "elements_enable_external_payment_method_bizum" : false, "elements_enable_external_payment_method_gcash" : false, "elements_enable_card_brand_choice_payment_element_link" : true, "elements_enable_external_payment_method_payit" : false, - "elements_enable_payment_element_postal_validation" : true, - "link_doi_ungated_behavior_rollout" : true, "elements_enable_blik" : true, "elements_enable_south_korea_market_underlying_pms" : false, "elements_enable_external_payment_method_girocard" : false, @@ -328,11 +241,12 @@ x-content-type-options: nosniff "elements_enable_link_spm" : true, "elements_spm_max_visible_payment_methods" : false, "elements_disable_link_email_otp" : false, - "cbc_in_link_popup" : false, + "cbc_in_link_popup" : true, "elements_enable_external_payment_method_picpay" : false, "elements_enable_external_payment_method_planpay" : false, "elements_enable_external_payment_method_samsung_pay" : false, "elements_enable_external_payment_method_truelayer" : false, + "elements_enable_link_in_ece_personalization" : false, "elements_enable_passive_captcha" : true, "elements_disable_paypal_express" : false, "elements_disable_recurring_express_checkout_button_amazon_pay" : false, @@ -341,28 +255,22 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_payu" : false, "elements_disable_express_checkout_button_amazon_pay" : false, "elements_enable_external_payment_method_venmo" : false, + "disable_payment_element_if_required_billing_config" : false, + "link_set_active_field_true" : true, "elements_enable_external_payment_method_mondu" : false, "elements_enable_external_payment_method_paydirekt" : false, "elements_stop_move_focus_to_first_errored_field" : true, "elements_enable_external_payment_method_online_banking_slovakia" : false, "elements_enable_external_payment_method_interac" : false, - "link_new_learn_more_modal_enabled" : false, + "link_new_learn_more_modal_enabled" : true, "use_link_views" : false, "elements_enable_external_payment_method_mybank" : false }, - "external_payment_method_data" : null, - "unactivated_payment_method_types" : [ - - ], - "lpm_promotions" : null, - "merchant_country" : "US", - "paypal_express_config" : { - "client_id" : null, - "paypal_merchant_id" : null - }, - "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", - "customer" : null, + "merchant_logo_url" : null, + "session_id" : "elements_session_0OdBCBaAKSN", "account_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_currency" : "usd", "card_brand_choice" : { "eligible" : false, "preferred_networks" : [ @@ -372,17 +280,126 @@ x-content-type-options: nosniff "cartes_bancaires" : false } }, - "customer_error" : null, - "order" : null, + "shipping_address_settings" : { + "autocomplete_allowed" : false + }, + "external_payment_method_data" : null, + "meta_pay_signed_container_context" : null, + "apple_pay_preference" : "enabled", + "lpm_promotions" : null, + "merchant_country" : "US", + "google_pay_preference" : "enabled", + "paypal_express_config" : { + "client_id" : null, + "paypal_merchant_id" : null + }, + "experiments_data" : { + "arb_id" : "8b175a9b-1da6-487b-9e15-60328341c5e3", + "experiment_metadata" : { + "seed" : "f141acec06c73601adc1c212d38a020b85a1cdd62a3e46835373aeaf676a9090" + }, + "experiment_assignments" : { + "elements_merchant_ui_api_srv" : "control", + "link_popup_webview_option_ios" : "control" + } + }, "legacy_customer" : null, + "link_settings" : { + "link_enable_webauthn_for_link_popup" : false, + "link_no_code_default_values_recall" : true, + "link_payment_session_context" : null, + "link_consumer_incentive" : null, + "link_default_opt_in" : "NONE", + "link_elements_pageload_sign_up_disabled" : false, + "link_crypto_onramp_bank_upsell" : false, + "link_funding_sources" : [ + + ], + "link_disabled_reasons" : { + "payment_element_payment_method_mode" : [ + "link_not_specified_in_payment_method_types" + ], + "payment_element_passthrough_mode" : [ + "link_not_enabled_on_payment_config", + "not_gated_into_enable_m2_passthrough_mode" + ] + }, + "link_supported_payment_methods" : [ + + ], + "link_elements_is_crypto_onramp" : false, + "link_payment_element_disabled_by_targeting" : false, + "link_popup_webview_option" : "shared", + "link_targeting_results" : { + "payment_element_passthrough_mode" : null + }, + "link_disable_email_otp" : false, + "link_local_storage_login_enabled" : false, + "link_enable_instant_debits_in_testmode" : false, + "link_global_holdback_on" : false, + "link_session_storage_login_enabled" : false, + "link_payment_element_enable_webauthn_login" : false, + "link_authenticated_change_event_enabled" : false, + "link_bank_onboarding_enabled" : false, + "link_hcaptcha_rqdata" : null, + "link_m2_default_integration_enabled" : false, + "link_financial_incentives_experiment_enabled" : false, + "link_passthrough_mode_enabled" : false, + "link_no_code_default_values_identification" : true, + "link_enable_email_otp_for_link_popup" : false, + "link_pay_button_element_enabled" : true, + "link_crypto_onramp_elements_logout_disabled" : false, + "link_mode" : null, + "link_no_code_default_values_usage" : true, + "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", + "link_crypto_onramp_force_cvc_reverification" : false, + "link_email_verification_login_enabled" : false, + "link_only_for_payment_method_types_enabled" : false, + "link_bank_incentives_enabled" : false, + "link_pm_killswitch_on_in_elements" : false + }, + "passive_captcha" : { + "site_key" : "20000000-ffff-ffff-ffff-000000000002", + "rqdata" : null + }, + "payment_method_specs" : [ + { + "async" : false, + "type" : "card", + "fields" : [ + + ] + } + ], + "prefill_selectors" : { + "default_values" : { + "email" : [ + + ], + "merchant_provides_default_values_on_update" : true + } + }, + "unactivated_payment_method_types" : [ + + ], + "unverified_payment_methods_on_domain" : [ + "apple_pay" + ], + "order" : null, "link_purchase_protections_data" : { "type" : null, "is_eligible" : false }, - "merchant_logo_url" : null, + "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", + "customer" : null, + "klarna_express_config" : { + "klarna_mid" : null + }, + "business_name" : "CI Stuff", "ordered_payment_method_types_and_wallets" : [ "card", "apple_pay", "google_pay" - ] + ], + "customer_error" : null } \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntentAttachedPaymentMethod/0002_post_v1_payment_intents_pi_3PiS38FY0qyl6XeW0OAa7B47_confirm.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntentAttachedPaymentMethod/0002_post_v1_payment_intents_pi_3QAadNFY0qyl6XeW1RowDu79_confirm.tail similarity index 82% rename from StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntentAttachedPaymentMethod/0002_post_v1_payment_intents_pi_3PiS38FY0qyl6XeW0OAa7B47_confirm.tail rename to StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntentAttachedPaymentMethod/0002_post_v1_payment_intents_pi_3QAadNFY0qyl6XeW1RowDu79_confirm.tail index 3b456b8e133..f6b37fc81d1 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntentAttachedPaymentMethod/0002_post_v1_payment_intents_pi_3PiS38FY0qyl6XeW0OAa7B47_confirm.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntentAttachedPaymentMethod/0002_post_v1_payment_intents_pi_3QAadNFY0qyl6XeW1RowDu79_confirm.tail @@ -1,32 +1,33 @@ POST -https:\/\/api\.stripe\.com\/v1\/payment_intents\/pi_3PiS38FY0qyl6XeW0OAa7B47\/confirm$ +https:\/\/api\.stripe\.com\/v1\/payment_intents\/pi_3QAadNFY0qyl6XeW1RowDu79\/confirm$ 200 application/json -access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE +access-control-allow-methods: GET, HEAD, PUT, PATCH, POST, DELETE content-security-policy: report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Server: nginx Cache-Control: no-cache, no-store reporting-endpoints: coop="https://q.stripe.com/coop-report?s=payins-bapi-srv" +x-wc: A Strict-Transport-Security: max-age=63072000; includeSubDomains; preload cross-origin-opener-policy-report-only: same-origin; report-to="coop" Access-Control-Allow-Origin: * stripe-should-retry: false x-stripe-priority-routing-enabled: true report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=payins-bapi-srv"}],"include_subdomains":true} -request-id: req_kldrHk9Xi6NkNs +request-id: req_RwvSNHmhZ016Lz x-stripe-routing-context-priority-tier: api-testmode -Content-Length: 2155 +Content-Length: 2156 Vary: Origin -Date: Wed, 31 Jul 2024 02:14:00 GMT -original-request: req_kldrHk9Xi6NkNs +Date: Wed, 16 Oct 2024 17:03:43 GMT +original-request: req_RwvSNHmhZ016Lz stripe-version: 2020-08-27 -idempotency-key: e395be57-22a7-45f2-9546-2acad73ef59c +idempotency-key: 0bbb6075-a495-49b9-a590-3faf164e36a1 access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required access-control-max-age: 300 access-control-allow-credentials: true Content-Type: application/json x-content-type-options: nosniff -X-Stripe-Mock-Request: client_secret=pi_3PiS38FY0qyl6XeW0OAa7B47_secret_1S41aep5y7Ph40WPi1pjDHS3s&expand\[0]=payment_method&payment_method=pm_card_visa&shipping\[address]\[country]=US&shipping\[address]\[line1]=Line%201&shipping\[name]=Jane%20Doe&shipping\[phone]=5551234567&use_stripe_sdk=true +X-Stripe-Mock-Request: client_secret=pi_3QAadNFY0qyl6XeW1RowDu79_secret_kBt6vYI8HUDYJ1JjvDuEsqmkC&expand\[0]=payment_method&payment_method=pm_card_visa&shipping\[address]\[country]=US&shipping\[address]\[line1]=Line%201&shipping\[name]=Jane%20Doe&shipping\[phone]=5551234567&use_stripe_sdk=true { "payment_method_configuration_details" : null, @@ -63,7 +64,7 @@ X-Stripe-Mock-Request: client_secret=pi_3PiS38FY0qyl6XeW0OAa7B47_secret_1S41aep5 }, "payment_method" : { "object" : "payment_method", - "id" : "pm_1PiS39FY0qyl6XeW04KxeQoK", + "id" : "pm_1QAadOFY0qyl6XeW86euJSTT", "billing_details" : { "email" : null, "phone" : null, @@ -98,18 +99,18 @@ X-Stripe-Mock-Request: client_secret=pi_3PiS38FY0qyl6XeW0OAa7B47_secret_1S41aep5 }, "wallet" : null, "display_brand" : "visa", - "exp_month" : 7, + "exp_month" : 10, "exp_year" : 2025, "country" : "US" }, "livemode" : false, - "created" : 1722392039, + "created" : 1729098222, "allow_redisplay" : "unspecified", "type" : "card", "customer" : null }, - "client_secret" : "pi_3PiS38FY0qyl6XeW0OAa7B47_secret_1S41aep5y7Ph40WPi1pjDHS3s", - "id" : "pi_3PiS38FY0qyl6XeW0OAa7B47", + "client_secret" : "pi_3QAadNFY0qyl6XeW1RowDu79_secret_kBt6vYI8HUDYJ1JjvDuEsqmkC", + "id" : "pi_3QAadNFY0qyl6XeW1RowDu79", "confirmation_method" : "automatic", "amount_details" : { "tip" : { @@ -122,6 +123,6 @@ X-Stripe-Mock-Request: client_secret=pi_3PiS38FY0qyl6XeW0OAa7B47_secret_1S41aep5 "card" ], "setup_future_usage" : null, - "created" : 1722392038, + "created" : 1729098221, "description" : null } \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntentAttachedPaymentMethod/0003_get_v1_payment_intents_pi_3PiS38FY0qyl6XeW0OAa7B47.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntentAttachedPaymentMethod/0003_get_v1_payment_intents_pi_3QAadNFY0qyl6XeW1RowDu79.tail similarity index 81% rename from StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntentAttachedPaymentMethod/0003_get_v1_payment_intents_pi_3PiS38FY0qyl6XeW0OAa7B47.tail rename to StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntentAttachedPaymentMethod/0003_get_v1_payment_intents_pi_3QAadNFY0qyl6XeW1RowDu79.tail index 6350beeedb5..2b5accd0df7 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntentAttachedPaymentMethod/0003_get_v1_payment_intents_pi_3PiS38FY0qyl6XeW0OAa7B47.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testPaymentSheetLoadAndConfirmWithPaymentIntentAttachedPaymentMethod/0003_get_v1_payment_intents_pi_3QAadNFY0qyl6XeW1RowDu79.tail @@ -1,22 +1,23 @@ GET -https:\/\/api\.stripe\.com\/v1\/payment_intents\/pi_3PiS38FY0qyl6XeW0OAa7B47\?client_secret=pi_3PiS38FY0qyl6XeW0OAa7B47_secret_1S41aep5y7Ph40WPi1pjDHS3s$ +https:\/\/api\.stripe\.com\/v1\/payment_intents\/pi_3QAadNFY0qyl6XeW1RowDu79\?client_secret=pi_3QAadNFY0qyl6XeW1RowDu79_secret_kBt6vYI8HUDYJ1JjvDuEsqmkC$ 200 application/json -access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE +access-control-allow-methods: GET, HEAD, PUT, PATCH, POST, DELETE content-security-policy: report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Server: nginx Cache-Control: no-cache, no-store reporting-endpoints: coop="https://q.stripe.com/coop-report?s=payins-bapi-srv" +x-wc: A Strict-Transport-Security: max-age=63072000; includeSubDomains; preload cross-origin-opener-policy-report-only: same-origin; report-to="coop" Access-Control-Allow-Origin: * x-stripe-routing-context-priority-tier: api-testmode x-stripe-priority-routing-enabled: true report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=payins-bapi-srv"}],"include_subdomains":true} -request-id: req_LjzcKb8GiKnmfS +request-id: req_zpSTzmtz2s8AoD Content-Length: 1161 Vary: Origin -Date: Wed, 31 Jul 2024 02:14:01 GMT +Date: Wed, 16 Oct 2024 17:03:43 GMT stripe-version: 2020-08-27 access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required access-control-max-age: 300 @@ -57,9 +58,9 @@ x-content-type-options: nosniff "amount_discount" : 0, "amount_tax" : 0 }, - "payment_method" : "pm_1PiS39FY0qyl6XeW04KxeQoK", - "client_secret" : "pi_3PiS38FY0qyl6XeW0OAa7B47_secret_1S41aep5y7Ph40WPi1pjDHS3s", - "id" : "pi_3PiS38FY0qyl6XeW0OAa7B47", + "payment_method" : "pm_1QAadOFY0qyl6XeW86euJSTT", + "client_secret" : "pi_3QAadNFY0qyl6XeW1RowDu79_secret_kBt6vYI8HUDYJ1JjvDuEsqmkC", + "id" : "pi_3QAadNFY0qyl6XeW1RowDu79", "confirmation_method" : "automatic", "amount_details" : { "tip" : { @@ -72,6 +73,6 @@ x-content-type-options: nosniff "card" ], "setup_future_usage" : null, - "created" : 1722392038, + "created" : 1729098221, "description" : null } \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdate/0000_get_v1_elements_sessions.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdate/0000_get_v1_elements_sessions.tail index 0d376d21c14..79ca6a681b9 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdate/0000_get_v1_elements_sessions.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdate/0000_get_v1_elements_sessions.tail @@ -1,22 +1,23 @@ GET -https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?client_default_payment_method=pm_1PiS2zFY0qyl6XeWlMKBbYVV&deferred_intent%5Bamount%5D=1000&deferred_intent%5Bcapture_method%5D=automatic&deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=payment&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ +https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?deferred_intent%5Bamount%5D=1000&deferred_intent%5Bcapture_method%5D=automatic&deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=payment&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ 200 application/json -access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE +access-control-allow-methods: GET, HEAD, PUT, PATCH, POST, DELETE content-security-policy: report-uri https://q.stripe.com/csp-report?p=v1%2Felements%2Fsessions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Server: nginx Cache-Control: no-cache, no-store reporting-endpoints: coop="https://q.stripe.com/coop-report?s=ocs-bapi-srv" +x-wc: A Strict-Transport-Security: max-age=63072000; includeSubDomains; preload cross-origin-opener-policy-report-only: same-origin; report-to="coop" Access-Control-Allow-Origin: * x-stripe-routing-context-priority-tier: api-testmode x-stripe-priority-routing-enabled: true report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=ocs-bapi-srv"}],"include_subdomains":true} -request-id: req_wU8WVBnoz9kvQ5 -Content-Length: 14279 +request-id: req_ogyLGEWDhM8cby +Content-Length: 14471 Vary: Origin -Date: Wed, 31 Jul 2024 02:14:18 GMT +Date: Wed, 16 Oct 2024 16:40:29 GMT stripe-version: 2020-08-27 access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required access-control-max-age: 300 @@ -25,128 +26,6 @@ Content-Type: application/json x-content-type-options: nosniff { - "merchant_currency" : "usd", - "meta_pay_signed_container_context" : null, - "link_settings" : { - "link_enable_webauthn_for_link_popup" : false, - "link_no_code_default_values_recall" : false, - "link_default_opt_in" : "NONE", - "link_elements_pageload_sign_up_disabled" : false, - "link_funding_sources_onboarding_unavailable_from_holdback" : [ - - ], - "link_crypto_onramp_bank_upsell" : false, - "link_funding_sources" : [ - - ], - "link_disabled_reasons" : { - "payment_element_payment_method_mode" : [ - "link_not_specified_in_payment_method_types" - ], - "payment_element_passthrough_mode" : [ - "automatic_payment_methods_enabled", - "link_not_enabled_on_payment_config", - "not_gated_into_enable_m2_passthrough_mode" - ] - }, - "link_elements_is_crypto_onramp" : false, - "link_payment_element_disabled_by_targeting" : false, - "link_popup_webview_option" : "shared", - "link_targeting_results" : { - "payment_element_passthrough_mode" : null - }, - "link_disable_email_otp" : false, - "link_local_storage_login_enabled" : false, - "link_enable_instant_debits_in_testmode" : false, - "link_global_holdback_on" : false, - "link_session_storage_login_enabled" : false, - "link_payment_element_enable_webauthn_login" : false, - "link_payment_method_nicknames" : false, - "link_authenticated_change_event_enabled" : false, - "link_bank_onboarding_enabled" : false, - "link_hcaptcha_rqdata" : null, - "link_m2_default_integration_enabled" : false, - "link_financial_incentives_experiment_enabled" : false, - "link_passthrough_mode_enabled" : false, - "link_no_code_default_values_identification" : false, - "link_enable_email_otp_for_link_popup" : false, - "link_pay_button_element_enabled" : true, - "link_crypto_onramp_elements_logout_disabled" : false, - "link_mode" : null, - "link_no_code_default_values_usage" : true, - "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", - "link_crypto_onramp_force_cvc_reverification" : false, - "link_email_verification_login_enabled" : false, - "link_only_for_payment_method_types_enabled" : false, - "link_bank_incentives_enabled" : false, - "link_funding_sources_onboarding_enabled" : [ - - ], - "link_pm_killswitch_on_in_elements" : false - }, - "passive_captcha" : { - "site_key" : "20000000-ffff-ffff-ffff-000000000002", - "rqdata" : null - }, - "payment_method_specs" : [ - { - "async" : false, - "fields" : [ - - ], - "selector_icon" : { - "dark_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_dark@3x-3861df0768196df1a8ed7ed2a9d44d9b.png", - "dark_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_dark-e41f361095e9579a113d8e461ebbe594.svg", - "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light@3x-46eb8b8a4a252b78d7b4c3b96d4ed7ae.png", - "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light-22cdec0f5f5609554a34fa62fa583f23.svg" - }, - "type" : "amazon_pay", - "next_action_spec" : { - "confirm_response_status_specs" : { - "requires_action" : { - "type" : "redirect_to_url" - } - }, - "post_confirm_handling_pi_status_specs" : { - "requires_action" : { - "type" : "canceled" - }, - "succeeded" : { - "type" : "finished" - } - } - } - }, - { - "async" : false, - "type" : "card", - "fields" : [ - - ] - }, - { - "async" : false, - "fields" : [ - - ], - "type" : "cashapp", - "selector_icon" : { - "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp@3x-a89c5d8d0651cae2a511bb49a6be1cfc.png", - "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp-981164a833e417d28a8ac2684fda2324.svg" - } - } - ], - "session_id" : "elements_session_17eyjHAnHPk", - "shipping_address_settings" : { - "autocomplete_allowed" : false - }, - "business_name" : "CI Stuff", - "unverified_payment_methods_on_domain" : [ - "apple_pay" - ], - "apple_pay_preference" : "enabled", - "google_pay_preference" : "enabled", - "merchant_id" : "acct_1G6m1pFY0qyl6XeW", "payment_method_preference" : { "country_code" : "US", "object" : "payment_method_preference", @@ -158,25 +37,20 @@ x-content-type-options: nosniff "us_bank_account" ] }, - "experiments_data" : { - "arb_id" : "050fbb4f-c927-4b19-9dae-cdfb9e5f3ff2", - "experiment_assignments" : { - "elements_merchant_ui_api_srv" : "control", - "link_popup_webview_option_ios" : "control" - } - }, + "capability_enabled_card_networks" : [ + "cartes_bancaires" + ], "flags" : { "elements_enable_external_payment_method_wallets_india" : false, "elements_enable_external_payment_method_check" : false, "elements_enable_external_payment_method_fonix" : false, "elements_enable_external_payment_method_au_pay" : false, - "elements_enable_invalid_country_for_pm_error" : false, + "elements_enable_invalid_country_for_pm_error" : true, "elements_enable_external_payment_method_ebt_snap" : false, "elements_enable_external_payment_method_v_pay" : false, + "elements_enable_link_in_passthrough_ece" : true, "elements_enable_passive_hcaptcha_in_payment_method_creation" : true, "legacy_confirmation_tokens" : false, - "link_purchase_protections_enabled" : false, - "enable_third_party_recurring_express_checkout_element" : false, "elements_enable_external_payment_method_swish" : false, "elements_enable_external_payment_method_online_banking_poland" : false, "elements_enable_read_allow_redisplay" : false, @@ -186,15 +60,15 @@ x-content-type-options: nosniff "elements_enable_express_checkout_button_demo_pay" : false, "elements_enable_external_payment_method_tabby" : false, "elements_enable_mx_card_installments" : false, - "link_payment_method_nicknames" : true, + "elements_disable_link_global_holdback_lookup" : false, "elements_enable_external_payment_method_bpay" : false, "elements_enable_external_payment_method_laybuy" : false, "elements_enable_external_payment_method_bluecode" : false, "elements_enable_external_payment_method_grabpay_later" : false, + "elements_disable_klarna_ece_crossborder_validation" : false, "elements_disable_payment_element_card_country_zip_validations" : false, "elements_enable_external_payment_method_billie" : false, "elements_enable_external_payment_method_postfinance" : false, - "elements_enable_use_last_used_payment_method" : false, "elements_enable_external_payment_method_scalapay" : false, "elements_enable_external_payment_method_famipay" : false, "elements_enable_save_for_future_payments_pre_check" : false, @@ -204,12 +78,15 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pay_easy" : false, "elements_enable_external_payment_method_sequra" : false, "elements_spm_set_as_default" : true, - "elements_write_sfu_into_confirm_request" : false, + "payment_element_link_modal_preload_killswitch" : false, "elements_enable_external_payment_method_paidy" : false, "elements_enable_write_allow_redisplay" : false, "elements_enable_external_payment_method_online_banking_thailand" : false, "elements_enable_external_payment_method_momo" : false, "elements_enable_external_payment_method_payrexx" : false, + "elements_appearance_payment_accordion_overrides" : false, + "elements_enable_cb_apple_pay_for_connect_platforms" : true, + "link_purchase_protections_rollout" : false, "elements_enable_external_payment_method_walley" : false, "elements_enable_external_payment_method_mb_way" : false, "elements_enable_external_payment_method_rabbitline_pay" : false, @@ -220,23 +97,23 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pledg" : false, "elements_enable_klarna_unified_offer" : true, "elements_enable_external_payment_method_postepay" : false, + "elements_enable_19_digit_pans" : false, "elements_enable_external_payment_method_aplazo" : false, "elements_enable_external_payment_method_dapp" : false, - "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_atone" : false, "elements_enable_external_payment_method_dankort" : false, "elements_enable_external_payment_method_fawry" : false, "elements_enable_external_payment_method_payconiq" : false, - "elements_enable_external_payment_method_wechat_mobile" : false, + "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_paysafecard" : false, "elements_enable_external_payment_method_eftpos_australia" : false, + "elements_enable_external_payment_method_wechat_mobile" : false, "elements_spm_messages" : false, "elements_enable_external_payment_method_azupay" : false, "ece_apple_pay_payment_request_passthrough" : false, "elements_enable_external_payment_method_online_banking_czech_republic" : false, "elements_enable_external_payment_method_aplazame" : false, "elements_enable_external_payment_method_rakuten_pay" : false, - "elements_luxe_qr_ui_on_web_enabled" : false, "paypal_express_checkout_recurring_support" : false, "elements_enable_external_payment_method_paypo" : false, "elements_enable_external_payment_method_netbanking" : false, @@ -246,33 +123,30 @@ x-content-type-options: nosniff "financial_connections_enable_deferred_intent_flow" : true, "elements_enable_external_payment_method_hands_in" : false, "elements_enable_external_payment_method_younitedpay" : false, - "elements_enable_passive_captcha_on_payment_intent_update" : true, "elements_enable_br_card_installments" : false, "elements_enable_external_payment_method_atome" : false, "elements_enable_external_payment_method_mercado_pago" : false, "elements_enable_external_payment_method_amazon_pay" : false, "elements_enable_external_payment_method_line_pay" : false, "elements_enable_external_payment_method_paytm" : false, - "elements_enable_outer_action_show_upe_wallet" : true, "elements_enable_external_payment_method_catch" : false, "elements_enable_external_payment_method_skrill" : false, "elements_enable_external_payment_method_paypay" : false, + "elements_enable_klarna_express_checkout" : false, "elements_enable_external_payment_method_ratepay" : false, "elements_enable_external_payment_method_sezzle" : false, "elements_enable_external_payment_method_bankaxept" : false, "elements_enable_external_payment_method_satispay" : false, "elements_enable_external_payment_method_dbarai" : false, "elements_enable_external_payment_method_titres_restaurant" : false, + "elements_link_global_holdback_rollout" : false, "elements_enable_external_payment_method_coinbase_pay" : false, "elements_enable_external_payment_method_trustly" : false, - "elements_enable_save_last_used_payment_method" : true, "elements_enable_external_payment_method_kbc" : false, "elements_enable_external_payment_method_bizum" : false, "elements_enable_external_payment_method_gcash" : false, "elements_enable_card_brand_choice_payment_element_link" : true, "elements_enable_external_payment_method_payit" : false, - "elements_enable_payment_element_postal_validation" : true, - "link_doi_ungated_behavior_rollout" : true, "elements_enable_blik" : true, "elements_enable_south_korea_market_underlying_pms" : false, "elements_enable_external_payment_method_girocard" : false, @@ -286,11 +160,12 @@ x-content-type-options: nosniff "elements_enable_link_spm" : true, "elements_spm_max_visible_payment_methods" : false, "elements_disable_link_email_otp" : false, - "cbc_in_link_popup" : false, + "cbc_in_link_popup" : true, "elements_enable_external_payment_method_picpay" : false, "elements_enable_external_payment_method_planpay" : false, "elements_enable_external_payment_method_samsung_pay" : false, "elements_enable_external_payment_method_truelayer" : false, + "elements_enable_link_in_ece_personalization" : false, "elements_enable_passive_captcha" : true, "elements_disable_paypal_express" : false, "elements_disable_recurring_express_checkout_button_amazon_pay" : false, @@ -299,30 +174,22 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_payu" : false, "elements_disable_express_checkout_button_amazon_pay" : false, "elements_enable_external_payment_method_venmo" : false, + "disable_payment_element_if_required_billing_config" : false, + "link_set_active_field_true" : true, "elements_enable_external_payment_method_mondu" : false, "elements_enable_external_payment_method_paydirekt" : false, "elements_stop_move_focus_to_first_errored_field" : true, "elements_enable_external_payment_method_online_banking_slovakia" : false, "elements_enable_external_payment_method_interac" : false, - "link_new_learn_more_modal_enabled" : false, + "link_new_learn_more_modal_enabled" : true, "use_link_views" : false, "elements_enable_external_payment_method_mybank" : false }, - "external_payment_method_data" : null, - "unactivated_payment_method_types" : [ - "cashapp", - "amazon_pay", - "us_bank_account" - ], - "lpm_promotions" : null, - "merchant_country" : "US", - "paypal_express_config" : { - "client_id" : null, - "paypal_merchant_id" : null - }, - "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", - "customer" : null, + "merchant_logo_url" : null, + "session_id" : "elements_session_1fFLrZzRFuY", "account_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_currency" : "usd", "card_brand_choice" : { "eligible" : false, "preferred_networks" : [ @@ -332,20 +199,170 @@ x-content-type-options: nosniff "cartes_bancaires" : false } }, - "customer_error" : null, - "order" : null, + "shipping_address_settings" : { + "autocomplete_allowed" : false + }, + "external_payment_method_data" : null, + "meta_pay_signed_container_context" : null, + "apple_pay_preference" : "enabled", + "lpm_promotions" : null, + "merchant_country" : "US", + "google_pay_preference" : "enabled", + "paypal_express_config" : { + "client_id" : null, + "paypal_merchant_id" : null + }, + "experiments_data" : { + "arb_id" : "0fc033e3-1700-4d0a-a1f7-a60e8e166b3d", + "experiment_metadata" : { + "seed" : "f141acec06c73601adc1c212d38a020b85a1cdd62a3e46835373aeaf676a9090" + }, + "experiment_assignments" : { + "elements_merchant_ui_api_srv" : "control", + "link_popup_webview_option_ios" : "control", + "ocs_buyer_xp_elements_lpm_holdback" : "control" + } + }, "legacy_customer" : null, + "link_settings" : { + "link_enable_webauthn_for_link_popup" : false, + "link_no_code_default_values_recall" : true, + "link_payment_session_context" : null, + "link_consumer_incentive" : null, + "link_default_opt_in" : "NONE", + "link_elements_pageload_sign_up_disabled" : false, + "link_crypto_onramp_bank_upsell" : false, + "link_funding_sources" : [ + + ], + "link_disabled_reasons" : { + "payment_element_payment_method_mode" : [ + "link_not_specified_in_payment_method_types" + ], + "payment_element_passthrough_mode" : [ + "automatic_payment_methods_enabled", + "link_not_enabled_on_payment_config", + "not_gated_into_enable_m2_passthrough_mode" + ] + }, + "link_supported_payment_methods" : [ + + ], + "link_elements_is_crypto_onramp" : false, + "link_payment_element_disabled_by_targeting" : false, + "link_popup_webview_option" : "shared", + "link_targeting_results" : { + "payment_element_passthrough_mode" : null + }, + "link_disable_email_otp" : false, + "link_local_storage_login_enabled" : false, + "link_enable_instant_debits_in_testmode" : false, + "link_global_holdback_on" : false, + "link_session_storage_login_enabled" : false, + "link_payment_element_enable_webauthn_login" : false, + "link_authenticated_change_event_enabled" : false, + "link_bank_onboarding_enabled" : false, + "link_hcaptcha_rqdata" : null, + "link_m2_default_integration_enabled" : false, + "link_financial_incentives_experiment_enabled" : false, + "link_passthrough_mode_enabled" : false, + "link_no_code_default_values_identification" : true, + "link_enable_email_otp_for_link_popup" : false, + "link_pay_button_element_enabled" : true, + "link_crypto_onramp_elements_logout_disabled" : false, + "link_mode" : null, + "link_no_code_default_values_usage" : true, + "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", + "link_crypto_onramp_force_cvc_reverification" : false, + "link_email_verification_login_enabled" : false, + "link_only_for_payment_method_types_enabled" : false, + "link_bank_incentives_enabled" : false, + "link_pm_killswitch_on_in_elements" : false + }, + "passive_captcha" : { + "site_key" : "20000000-ffff-ffff-ffff-000000000002", + "rqdata" : null + }, + "payment_method_specs" : [ + { + "async" : false, + "fields" : [ + + ], + "selector_icon" : { + "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light@3x-46eb8b8a4a252b78d7b4c3b96d4ed7ae.png", + "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light-22cdec0f5f5609554a34fa62fa583f23.svg" + }, + "type" : "amazon_pay", + "next_action_spec" : { + "confirm_response_status_specs" : { + "requires_action" : { + "type" : "redirect_to_url" + } + }, + "post_confirm_handling_pi_status_specs" : { + "requires_action" : { + "type" : "canceled" + }, + "succeeded" : { + "type" : "finished" + } + } + } + }, + { + "async" : false, + "type" : "card", + "fields" : [ + + ] + }, + { + "async" : false, + "fields" : [ + + ], + "type" : "cashapp", + "selector_icon" : { + "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp@3x-a89c5d8d0651cae2a511bb49a6be1cfc.png", + "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp-981164a833e417d28a8ac2684fda2324.svg" + } + } + ], + "prefill_selectors" : { + "default_values" : { + "email" : [ + + ], + "merchant_provides_default_values_on_update" : true + } + }, + "unactivated_payment_method_types" : [ + "cashapp", + "amazon_pay", + "us_bank_account" + ], + "unverified_payment_methods_on_domain" : [ + "apple_pay" + ], + "order" : null, "link_purchase_protections_data" : { "type" : null, "is_eligible" : false }, - "merchant_logo_url" : null, + "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", + "customer" : null, + "klarna_express_config" : { + "klarna_mid" : null + }, + "business_name" : "CI Stuff", "ordered_payment_method_types_and_wallets" : [ "card", "apple_pay", "cashapp", - "amazon_pay", "google_pay", + "amazon_pay", "us_bank_account" - ] + ], + "customer_error" : null } \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdate/0001_get_v1_elements_sessions.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdate/0001_get_v1_elements_sessions.tail index 0b589d64ad6..a969a774d26 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdate/0001_get_v1_elements_sessions.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdate/0001_get_v1_elements_sessions.tail @@ -1,22 +1,23 @@ GET -https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?client_default_payment_method=pm_1PiS2zFY0qyl6XeWlMKBbYVV&deferred_intent%5Bmode%5D=setup&deferred_intent%5Bsetup_future_usage%5D=off_session&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ +https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?deferred_intent%5Bmode%5D=setup&deferred_intent%5Bsetup_future_usage%5D=off_session&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ 200 application/json -access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE +access-control-allow-methods: GET, HEAD, PUT, PATCH, POST, DELETE content-security-policy: report-uri https://q.stripe.com/csp-report?p=v1%2Felements%2Fsessions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Server: nginx Cache-Control: no-cache, no-store reporting-endpoints: coop="https://q.stripe.com/coop-report?s=ocs-bapi-srv" +x-wc: A Strict-Transport-Security: max-age=63072000; includeSubDomains; preload cross-origin-opener-policy-report-only: same-origin; report-to="coop" Access-Control-Allow-Origin: * x-stripe-routing-context-priority-tier: api-testmode x-stripe-priority-routing-enabled: true report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=ocs-bapi-srv"}],"include_subdomains":true} -request-id: req_quipptABt20EtI -Content-Length: 14278 +request-id: req_539onVCNyBAwD7 +Content-Length: 14470 Vary: Origin -Date: Wed, 31 Jul 2024 02:14:18 GMT +Date: Wed, 16 Oct 2024 16:40:29 GMT stripe-version: 2020-08-27 access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required access-control-max-age: 300 @@ -25,128 +26,6 @@ Content-Type: application/json x-content-type-options: nosniff { - "merchant_currency" : "usd", - "meta_pay_signed_container_context" : null, - "link_settings" : { - "link_enable_webauthn_for_link_popup" : false, - "link_no_code_default_values_recall" : false, - "link_default_opt_in" : "NONE", - "link_elements_pageload_sign_up_disabled" : false, - "link_funding_sources_onboarding_unavailable_from_holdback" : [ - - ], - "link_crypto_onramp_bank_upsell" : false, - "link_funding_sources" : [ - - ], - "link_disabled_reasons" : { - "payment_element_payment_method_mode" : [ - "link_not_specified_in_payment_method_types" - ], - "payment_element_passthrough_mode" : [ - "automatic_payment_methods_enabled", - "link_not_enabled_on_payment_config", - "not_gated_into_enable_m2_passthrough_mode" - ] - }, - "link_elements_is_crypto_onramp" : false, - "link_payment_element_disabled_by_targeting" : false, - "link_popup_webview_option" : "shared", - "link_targeting_results" : { - "payment_element_passthrough_mode" : null - }, - "link_disable_email_otp" : false, - "link_local_storage_login_enabled" : false, - "link_enable_instant_debits_in_testmode" : false, - "link_global_holdback_on" : false, - "link_session_storage_login_enabled" : false, - "link_payment_element_enable_webauthn_login" : false, - "link_payment_method_nicknames" : false, - "link_authenticated_change_event_enabled" : false, - "link_bank_onboarding_enabled" : false, - "link_hcaptcha_rqdata" : null, - "link_m2_default_integration_enabled" : false, - "link_financial_incentives_experiment_enabled" : false, - "link_passthrough_mode_enabled" : false, - "link_no_code_default_values_identification" : true, - "link_enable_email_otp_for_link_popup" : false, - "link_pay_button_element_enabled" : true, - "link_crypto_onramp_elements_logout_disabled" : false, - "link_mode" : null, - "link_no_code_default_values_usage" : false, - "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", - "link_crypto_onramp_force_cvc_reverification" : false, - "link_email_verification_login_enabled" : false, - "link_only_for_payment_method_types_enabled" : false, - "link_bank_incentives_enabled" : false, - "link_funding_sources_onboarding_enabled" : [ - - ], - "link_pm_killswitch_on_in_elements" : false - }, - "passive_captcha" : { - "site_key" : "20000000-ffff-ffff-ffff-000000000002", - "rqdata" : null - }, - "payment_method_specs" : [ - { - "async" : false, - "fields" : [ - - ], - "selector_icon" : { - "dark_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_dark@3x-3861df0768196df1a8ed7ed2a9d44d9b.png", - "dark_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_dark-e41f361095e9579a113d8e461ebbe594.svg", - "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light@3x-46eb8b8a4a252b78d7b4c3b96d4ed7ae.png", - "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light-22cdec0f5f5609554a34fa62fa583f23.svg" - }, - "type" : "amazon_pay", - "next_action_spec" : { - "confirm_response_status_specs" : { - "requires_action" : { - "type" : "redirect_to_url" - } - }, - "post_confirm_handling_pi_status_specs" : { - "requires_action" : { - "type" : "canceled" - }, - "succeeded" : { - "type" : "finished" - } - } - } - }, - { - "async" : false, - "type" : "card", - "fields" : [ - - ] - }, - { - "async" : false, - "fields" : [ - - ], - "type" : "cashapp", - "selector_icon" : { - "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp@3x-a89c5d8d0651cae2a511bb49a6be1cfc.png", - "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp-981164a833e417d28a8ac2684fda2324.svg" - } - } - ], - "session_id" : "elements_session_1duo4UU2VTk", - "shipping_address_settings" : { - "autocomplete_allowed" : false - }, - "business_name" : "CI Stuff", - "unverified_payment_methods_on_domain" : [ - "apple_pay" - ], - "apple_pay_preference" : "enabled", - "google_pay_preference" : "enabled", - "merchant_id" : "acct_1G6m1pFY0qyl6XeW", "payment_method_preference" : { "country_code" : "US", "object" : "payment_method_preference", @@ -158,25 +37,20 @@ x-content-type-options: nosniff "us_bank_account" ] }, - "experiments_data" : { - "arb_id" : "d09294c6-994b-49e8-affb-f180b56de67b", - "experiment_assignments" : { - "elements_merchant_ui_api_srv" : "control", - "link_popup_webview_option_ios" : "control" - } - }, + "capability_enabled_card_networks" : [ + "cartes_bancaires" + ], "flags" : { "elements_enable_external_payment_method_wallets_india" : false, "elements_enable_external_payment_method_check" : false, "elements_enable_external_payment_method_fonix" : false, "elements_enable_external_payment_method_au_pay" : false, - "elements_enable_invalid_country_for_pm_error" : false, + "elements_enable_invalid_country_for_pm_error" : true, "elements_enable_external_payment_method_ebt_snap" : false, "elements_enable_external_payment_method_v_pay" : false, + "elements_enable_link_in_passthrough_ece" : true, "elements_enable_passive_hcaptcha_in_payment_method_creation" : true, "legacy_confirmation_tokens" : false, - "link_purchase_protections_enabled" : false, - "enable_third_party_recurring_express_checkout_element" : false, "elements_enable_external_payment_method_swish" : false, "elements_enable_external_payment_method_online_banking_poland" : false, "elements_enable_read_allow_redisplay" : false, @@ -186,15 +60,15 @@ x-content-type-options: nosniff "elements_enable_express_checkout_button_demo_pay" : false, "elements_enable_external_payment_method_tabby" : false, "elements_enable_mx_card_installments" : false, - "link_payment_method_nicknames" : true, + "elements_disable_link_global_holdback_lookup" : false, "elements_enable_external_payment_method_bpay" : false, "elements_enable_external_payment_method_laybuy" : false, "elements_enable_external_payment_method_bluecode" : false, "elements_enable_external_payment_method_grabpay_later" : false, + "elements_disable_klarna_ece_crossborder_validation" : false, "elements_disable_payment_element_card_country_zip_validations" : false, "elements_enable_external_payment_method_billie" : false, "elements_enable_external_payment_method_postfinance" : false, - "elements_enable_use_last_used_payment_method" : false, "elements_enable_external_payment_method_scalapay" : false, "elements_enable_external_payment_method_famipay" : false, "elements_enable_save_for_future_payments_pre_check" : false, @@ -204,12 +78,15 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pay_easy" : false, "elements_enable_external_payment_method_sequra" : false, "elements_spm_set_as_default" : true, - "elements_write_sfu_into_confirm_request" : false, + "payment_element_link_modal_preload_killswitch" : false, "elements_enable_external_payment_method_paidy" : false, "elements_enable_write_allow_redisplay" : false, "elements_enable_external_payment_method_online_banking_thailand" : false, "elements_enable_external_payment_method_momo" : false, "elements_enable_external_payment_method_payrexx" : false, + "elements_appearance_payment_accordion_overrides" : false, + "elements_enable_cb_apple_pay_for_connect_platforms" : true, + "link_purchase_protections_rollout" : false, "elements_enable_external_payment_method_walley" : false, "elements_enable_external_payment_method_mb_way" : false, "elements_enable_external_payment_method_rabbitline_pay" : false, @@ -220,23 +97,23 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pledg" : false, "elements_enable_klarna_unified_offer" : true, "elements_enable_external_payment_method_postepay" : false, + "elements_enable_19_digit_pans" : false, "elements_enable_external_payment_method_aplazo" : false, "elements_enable_external_payment_method_dapp" : false, - "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_atone" : false, "elements_enable_external_payment_method_dankort" : false, "elements_enable_external_payment_method_fawry" : false, "elements_enable_external_payment_method_payconiq" : false, - "elements_enable_external_payment_method_wechat_mobile" : false, + "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_paysafecard" : false, "elements_enable_external_payment_method_eftpos_australia" : false, + "elements_enable_external_payment_method_wechat_mobile" : false, "elements_spm_messages" : false, "elements_enable_external_payment_method_azupay" : false, "ece_apple_pay_payment_request_passthrough" : false, "elements_enable_external_payment_method_online_banking_czech_republic" : false, "elements_enable_external_payment_method_aplazame" : false, "elements_enable_external_payment_method_rakuten_pay" : false, - "elements_luxe_qr_ui_on_web_enabled" : false, "paypal_express_checkout_recurring_support" : false, "elements_enable_external_payment_method_paypo" : false, "elements_enable_external_payment_method_netbanking" : false, @@ -246,33 +123,30 @@ x-content-type-options: nosniff "financial_connections_enable_deferred_intent_flow" : true, "elements_enable_external_payment_method_hands_in" : false, "elements_enable_external_payment_method_younitedpay" : false, - "elements_enable_passive_captcha_on_payment_intent_update" : true, "elements_enable_br_card_installments" : false, "elements_enable_external_payment_method_atome" : false, "elements_enable_external_payment_method_mercado_pago" : false, "elements_enable_external_payment_method_amazon_pay" : false, "elements_enable_external_payment_method_line_pay" : false, "elements_enable_external_payment_method_paytm" : false, - "elements_enable_outer_action_show_upe_wallet" : true, "elements_enable_external_payment_method_catch" : false, "elements_enable_external_payment_method_skrill" : false, "elements_enable_external_payment_method_paypay" : false, + "elements_enable_klarna_express_checkout" : false, "elements_enable_external_payment_method_ratepay" : false, "elements_enable_external_payment_method_sezzle" : false, "elements_enable_external_payment_method_bankaxept" : false, "elements_enable_external_payment_method_satispay" : false, "elements_enable_external_payment_method_dbarai" : false, "elements_enable_external_payment_method_titres_restaurant" : false, + "elements_link_global_holdback_rollout" : false, "elements_enable_external_payment_method_coinbase_pay" : false, "elements_enable_external_payment_method_trustly" : false, - "elements_enable_save_last_used_payment_method" : true, "elements_enable_external_payment_method_kbc" : false, "elements_enable_external_payment_method_bizum" : false, "elements_enable_external_payment_method_gcash" : false, "elements_enable_card_brand_choice_payment_element_link" : true, "elements_enable_external_payment_method_payit" : false, - "elements_enable_payment_element_postal_validation" : true, - "link_doi_ungated_behavior_rollout" : true, "elements_enable_blik" : true, "elements_enable_south_korea_market_underlying_pms" : false, "elements_enable_external_payment_method_girocard" : false, @@ -286,11 +160,12 @@ x-content-type-options: nosniff "elements_enable_link_spm" : true, "elements_spm_max_visible_payment_methods" : false, "elements_disable_link_email_otp" : false, - "cbc_in_link_popup" : false, + "cbc_in_link_popup" : true, "elements_enable_external_payment_method_picpay" : false, "elements_enable_external_payment_method_planpay" : false, "elements_enable_external_payment_method_samsung_pay" : false, "elements_enable_external_payment_method_truelayer" : false, + "elements_enable_link_in_ece_personalization" : false, "elements_enable_passive_captcha" : true, "elements_disable_paypal_express" : false, "elements_disable_recurring_express_checkout_button_amazon_pay" : false, @@ -299,30 +174,22 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_payu" : false, "elements_disable_express_checkout_button_amazon_pay" : false, "elements_enable_external_payment_method_venmo" : false, + "disable_payment_element_if_required_billing_config" : false, + "link_set_active_field_true" : true, "elements_enable_external_payment_method_mondu" : false, "elements_enable_external_payment_method_paydirekt" : false, "elements_stop_move_focus_to_first_errored_field" : true, "elements_enable_external_payment_method_online_banking_slovakia" : false, "elements_enable_external_payment_method_interac" : false, - "link_new_learn_more_modal_enabled" : false, + "link_new_learn_more_modal_enabled" : true, "use_link_views" : false, "elements_enable_external_payment_method_mybank" : false }, - "external_payment_method_data" : null, - "unactivated_payment_method_types" : [ - "cashapp", - "amazon_pay", - "us_bank_account" - ], - "lpm_promotions" : null, - "merchant_country" : "US", - "paypal_express_config" : { - "client_id" : null, - "paypal_merchant_id" : null - }, - "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", - "customer" : null, + "merchant_logo_url" : null, + "session_id" : "elements_session_1KwpS4WUYZx", "account_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_currency" : "usd", "card_brand_choice" : { "eligible" : false, "preferred_networks" : [ @@ -332,14 +199,163 @@ x-content-type-options: nosniff "cartes_bancaires" : true } }, - "customer_error" : null, - "order" : null, + "shipping_address_settings" : { + "autocomplete_allowed" : false + }, + "external_payment_method_data" : null, + "meta_pay_signed_container_context" : null, + "apple_pay_preference" : "enabled", + "lpm_promotions" : null, + "merchant_country" : "US", + "google_pay_preference" : "enabled", + "paypal_express_config" : { + "client_id" : null, + "paypal_merchant_id" : null + }, + "experiments_data" : { + "arb_id" : "7e9e0fb2-1554-4583-9b92-6d5e7e454ab6", + "experiment_metadata" : { + "seed" : "f141acec06c73601adc1c212d38a020b85a1cdd62a3e46835373aeaf676a9090" + }, + "experiment_assignments" : { + "elements_merchant_ui_api_srv" : "control", + "link_popup_webview_option_ios" : "control", + "ocs_buyer_xp_elements_lpm_holdback" : "control" + } + }, "legacy_customer" : null, + "link_settings" : { + "link_enable_webauthn_for_link_popup" : false, + "link_no_code_default_values_recall" : true, + "link_payment_session_context" : null, + "link_consumer_incentive" : null, + "link_default_opt_in" : "NONE", + "link_elements_pageload_sign_up_disabled" : false, + "link_crypto_onramp_bank_upsell" : false, + "link_funding_sources" : [ + + ], + "link_disabled_reasons" : { + "payment_element_payment_method_mode" : [ + "link_not_specified_in_payment_method_types" + ], + "payment_element_passthrough_mode" : [ + "automatic_payment_methods_enabled", + "link_not_enabled_on_payment_config", + "not_gated_into_enable_m2_passthrough_mode" + ] + }, + "link_supported_payment_methods" : [ + + ], + "link_elements_is_crypto_onramp" : false, + "link_payment_element_disabled_by_targeting" : false, + "link_popup_webview_option" : "shared", + "link_targeting_results" : { + "payment_element_passthrough_mode" : null + }, + "link_disable_email_otp" : false, + "link_local_storage_login_enabled" : false, + "link_enable_instant_debits_in_testmode" : false, + "link_global_holdback_on" : false, + "link_session_storage_login_enabled" : false, + "link_payment_element_enable_webauthn_login" : false, + "link_authenticated_change_event_enabled" : false, + "link_bank_onboarding_enabled" : false, + "link_hcaptcha_rqdata" : null, + "link_m2_default_integration_enabled" : false, + "link_financial_incentives_experiment_enabled" : false, + "link_passthrough_mode_enabled" : false, + "link_no_code_default_values_identification" : true, + "link_enable_email_otp_for_link_popup" : false, + "link_pay_button_element_enabled" : true, + "link_crypto_onramp_elements_logout_disabled" : false, + "link_mode" : null, + "link_no_code_default_values_usage" : true, + "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", + "link_crypto_onramp_force_cvc_reverification" : false, + "link_email_verification_login_enabled" : false, + "link_only_for_payment_method_types_enabled" : false, + "link_bank_incentives_enabled" : false, + "link_pm_killswitch_on_in_elements" : false + }, + "passive_captcha" : { + "site_key" : "20000000-ffff-ffff-ffff-000000000002", + "rqdata" : null + }, + "payment_method_specs" : [ + { + "async" : false, + "fields" : [ + + ], + "selector_icon" : { + "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light@3x-46eb8b8a4a252b78d7b4c3b96d4ed7ae.png", + "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light-22cdec0f5f5609554a34fa62fa583f23.svg" + }, + "type" : "amazon_pay", + "next_action_spec" : { + "confirm_response_status_specs" : { + "requires_action" : { + "type" : "redirect_to_url" + } + }, + "post_confirm_handling_pi_status_specs" : { + "requires_action" : { + "type" : "canceled" + }, + "succeeded" : { + "type" : "finished" + } + } + } + }, + { + "async" : false, + "type" : "card", + "fields" : [ + + ] + }, + { + "async" : false, + "fields" : [ + + ], + "type" : "cashapp", + "selector_icon" : { + "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp@3x-a89c5d8d0651cae2a511bb49a6be1cfc.png", + "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp-981164a833e417d28a8ac2684fda2324.svg" + } + } + ], + "prefill_selectors" : { + "default_values" : { + "email" : [ + + ], + "merchant_provides_default_values_on_update" : true + } + }, + "unactivated_payment_method_types" : [ + "cashapp", + "amazon_pay", + "us_bank_account" + ], + "unverified_payment_methods_on_domain" : [ + "apple_pay" + ], + "order" : null, "link_purchase_protections_data" : { "type" : null, "is_eligible" : false }, - "merchant_logo_url" : null, + "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", + "customer" : null, + "klarna_express_config" : { + "klarna_mid" : null + }, + "business_name" : "CI Stuff", "ordered_payment_method_types_and_wallets" : [ "card", "apple_pay", @@ -347,5 +363,6 @@ x-content-type-options: nosniff "google_pay", "amazon_pay", "us_bank_account" - ] + ], + "customer_error" : null } \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdate/0002_get_v1_elements_sessions.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdate/0002_get_v1_elements_sessions.tail index 7643f1c84af..cf69728b8ac 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdate/0002_get_v1_elements_sessions.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdate/0002_get_v1_elements_sessions.tail @@ -1,22 +1,23 @@ GET -https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?client_default_payment_method=pm_1PiS2zFY0qyl6XeWlMKBbYVV&deferred_intent%5Bamount%5D=100&deferred_intent%5Bcapture_method%5D=automatic&deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=payment&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ +https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?deferred_intent%5Bamount%5D=100&deferred_intent%5Bcapture_method%5D=automatic&deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=payment&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ 200 application/json -access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE +access-control-allow-methods: GET, HEAD, PUT, PATCH, POST, DELETE content-security-policy: report-uri https://q.stripe.com/csp-report?p=v1%2Felements%2Fsessions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Server: nginx Cache-Control: no-cache, no-store reporting-endpoints: coop="https://q.stripe.com/coop-report?s=ocs-bapi-srv" +x-wc: A Strict-Transport-Security: max-age=63072000; includeSubDomains; preload cross-origin-opener-policy-report-only: same-origin; report-to="coop" Access-Control-Allow-Origin: * x-stripe-routing-context-priority-tier: api-testmode x-stripe-priority-routing-enabled: true report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=ocs-bapi-srv"}],"include_subdomains":true} -request-id: req_paWK5danmvinJ3 -Content-Length: 14413 +request-id: req_1dPlhUZvzlu7vJ +Content-Length: 14471 Vary: Origin -Date: Wed, 31 Jul 2024 02:14:19 GMT +Date: Wed, 16 Oct 2024 16:40:30 GMT stripe-version: 2020-08-27 access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required access-control-max-age: 300 @@ -25,128 +26,6 @@ Content-Type: application/json x-content-type-options: nosniff { - "merchant_currency" : "usd", - "meta_pay_signed_container_context" : null, - "link_settings" : { - "link_enable_webauthn_for_link_popup" : false, - "link_no_code_default_values_recall" : true, - "link_default_opt_in" : "NONE", - "link_elements_pageload_sign_up_disabled" : false, - "link_funding_sources_onboarding_unavailable_from_holdback" : [ - - ], - "link_crypto_onramp_bank_upsell" : false, - "link_funding_sources" : [ - - ], - "link_disabled_reasons" : { - "payment_element_payment_method_mode" : [ - "link_not_specified_in_payment_method_types" - ], - "payment_element_passthrough_mode" : [ - "automatic_payment_methods_enabled", - "link_not_enabled_on_payment_config", - "not_gated_into_enable_m2_passthrough_mode" - ] - }, - "link_elements_is_crypto_onramp" : false, - "link_payment_element_disabled_by_targeting" : false, - "link_popup_webview_option" : "shared", - "link_targeting_results" : { - "payment_element_passthrough_mode" : null - }, - "link_disable_email_otp" : false, - "link_local_storage_login_enabled" : false, - "link_enable_instant_debits_in_testmode" : false, - "link_global_holdback_on" : false, - "link_session_storage_login_enabled" : false, - "link_payment_element_enable_webauthn_login" : false, - "link_payment_method_nicknames" : false, - "link_authenticated_change_event_enabled" : false, - "link_bank_onboarding_enabled" : false, - "link_hcaptcha_rqdata" : null, - "link_m2_default_integration_enabled" : false, - "link_financial_incentives_experiment_enabled" : false, - "link_passthrough_mode_enabled" : false, - "link_no_code_default_values_identification" : true, - "link_enable_email_otp_for_link_popup" : false, - "link_pay_button_element_enabled" : true, - "link_crypto_onramp_elements_logout_disabled" : false, - "link_mode" : null, - "link_no_code_default_values_usage" : true, - "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", - "link_crypto_onramp_force_cvc_reverification" : false, - "link_email_verification_login_enabled" : false, - "link_only_for_payment_method_types_enabled" : false, - "link_bank_incentives_enabled" : false, - "link_funding_sources_onboarding_enabled" : [ - - ], - "link_pm_killswitch_on_in_elements" : false - }, - "passive_captcha" : { - "site_key" : "20000000-ffff-ffff-ffff-000000000002", - "rqdata" : null - }, - "payment_method_specs" : [ - { - "async" : false, - "fields" : [ - - ], - "selector_icon" : { - "dark_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_dark@3x-3861df0768196df1a8ed7ed2a9d44d9b.png", - "dark_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_dark-e41f361095e9579a113d8e461ebbe594.svg", - "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light@3x-46eb8b8a4a252b78d7b4c3b96d4ed7ae.png", - "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light-22cdec0f5f5609554a34fa62fa583f23.svg" - }, - "type" : "amazon_pay", - "next_action_spec" : { - "confirm_response_status_specs" : { - "requires_action" : { - "type" : "redirect_to_url" - } - }, - "post_confirm_handling_pi_status_specs" : { - "requires_action" : { - "type" : "canceled" - }, - "succeeded" : { - "type" : "finished" - } - } - } - }, - { - "async" : false, - "type" : "card", - "fields" : [ - - ] - }, - { - "async" : false, - "fields" : [ - - ], - "type" : "cashapp", - "selector_icon" : { - "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp@3x-a89c5d8d0651cae2a511bb49a6be1cfc.png", - "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp-981164a833e417d28a8ac2684fda2324.svg" - } - } - ], - "session_id" : "elements_session_1hrPcToSKVH", - "shipping_address_settings" : { - "autocomplete_allowed" : false - }, - "business_name" : "CI Stuff", - "unverified_payment_methods_on_domain" : [ - "apple_pay" - ], - "apple_pay_preference" : "enabled", - "google_pay_preference" : "enabled", - "merchant_id" : "acct_1G6m1pFY0qyl6XeW", "payment_method_preference" : { "country_code" : "US", "object" : "payment_method_preference", @@ -158,33 +37,20 @@ x-content-type-options: nosniff "us_bank_account" ] }, - "prefill_selectors" : { - "default_values" : { - "email" : [ - - ], - "merchant_provides_default_values_on_update" : true - } - }, - "experiments_data" : { - "arb_id" : "adf30372-89b0-4f31-9774-71c68d5b05ce", - "experiment_assignments" : { - "elements_merchant_ui_api_srv" : "control", - "link_popup_webview_option_ios" : "control" - } - }, + "capability_enabled_card_networks" : [ + "cartes_bancaires" + ], "flags" : { "elements_enable_external_payment_method_wallets_india" : false, "elements_enable_external_payment_method_check" : false, "elements_enable_external_payment_method_fonix" : false, "elements_enable_external_payment_method_au_pay" : false, - "elements_enable_invalid_country_for_pm_error" : false, + "elements_enable_invalid_country_for_pm_error" : true, "elements_enable_external_payment_method_ebt_snap" : false, "elements_enable_external_payment_method_v_pay" : false, + "elements_enable_link_in_passthrough_ece" : true, "elements_enable_passive_hcaptcha_in_payment_method_creation" : true, "legacy_confirmation_tokens" : false, - "link_purchase_protections_enabled" : false, - "enable_third_party_recurring_express_checkout_element" : false, "elements_enable_external_payment_method_swish" : false, "elements_enable_external_payment_method_online_banking_poland" : false, "elements_enable_read_allow_redisplay" : false, @@ -194,15 +60,15 @@ x-content-type-options: nosniff "elements_enable_express_checkout_button_demo_pay" : false, "elements_enable_external_payment_method_tabby" : false, "elements_enable_mx_card_installments" : false, - "link_payment_method_nicknames" : true, + "elements_disable_link_global_holdback_lookup" : false, "elements_enable_external_payment_method_bpay" : false, "elements_enable_external_payment_method_laybuy" : false, "elements_enable_external_payment_method_bluecode" : false, "elements_enable_external_payment_method_grabpay_later" : false, + "elements_disable_klarna_ece_crossborder_validation" : false, "elements_disable_payment_element_card_country_zip_validations" : false, "elements_enable_external_payment_method_billie" : false, "elements_enable_external_payment_method_postfinance" : false, - "elements_enable_use_last_used_payment_method" : false, "elements_enable_external_payment_method_scalapay" : false, "elements_enable_external_payment_method_famipay" : false, "elements_enable_save_for_future_payments_pre_check" : false, @@ -212,12 +78,15 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pay_easy" : false, "elements_enable_external_payment_method_sequra" : false, "elements_spm_set_as_default" : true, - "elements_write_sfu_into_confirm_request" : false, + "payment_element_link_modal_preload_killswitch" : false, "elements_enable_external_payment_method_paidy" : false, "elements_enable_write_allow_redisplay" : false, "elements_enable_external_payment_method_online_banking_thailand" : false, "elements_enable_external_payment_method_momo" : false, "elements_enable_external_payment_method_payrexx" : false, + "elements_appearance_payment_accordion_overrides" : false, + "elements_enable_cb_apple_pay_for_connect_platforms" : true, + "link_purchase_protections_rollout" : false, "elements_enable_external_payment_method_walley" : false, "elements_enable_external_payment_method_mb_way" : false, "elements_enable_external_payment_method_rabbitline_pay" : false, @@ -228,23 +97,23 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pledg" : false, "elements_enable_klarna_unified_offer" : true, "elements_enable_external_payment_method_postepay" : false, + "elements_enable_19_digit_pans" : false, "elements_enable_external_payment_method_aplazo" : false, "elements_enable_external_payment_method_dapp" : false, - "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_atone" : false, "elements_enable_external_payment_method_dankort" : false, "elements_enable_external_payment_method_fawry" : false, "elements_enable_external_payment_method_payconiq" : false, - "elements_enable_external_payment_method_wechat_mobile" : false, + "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_paysafecard" : false, "elements_enable_external_payment_method_eftpos_australia" : false, + "elements_enable_external_payment_method_wechat_mobile" : false, "elements_spm_messages" : false, "elements_enable_external_payment_method_azupay" : false, "ece_apple_pay_payment_request_passthrough" : false, "elements_enable_external_payment_method_online_banking_czech_republic" : false, "elements_enable_external_payment_method_aplazame" : false, "elements_enable_external_payment_method_rakuten_pay" : false, - "elements_luxe_qr_ui_on_web_enabled" : false, "paypal_express_checkout_recurring_support" : false, "elements_enable_external_payment_method_paypo" : false, "elements_enable_external_payment_method_netbanking" : false, @@ -254,33 +123,30 @@ x-content-type-options: nosniff "financial_connections_enable_deferred_intent_flow" : true, "elements_enable_external_payment_method_hands_in" : false, "elements_enable_external_payment_method_younitedpay" : false, - "elements_enable_passive_captcha_on_payment_intent_update" : true, "elements_enable_br_card_installments" : false, "elements_enable_external_payment_method_atome" : false, "elements_enable_external_payment_method_mercado_pago" : false, "elements_enable_external_payment_method_amazon_pay" : false, "elements_enable_external_payment_method_line_pay" : false, "elements_enable_external_payment_method_paytm" : false, - "elements_enable_outer_action_show_upe_wallet" : true, "elements_enable_external_payment_method_catch" : false, "elements_enable_external_payment_method_skrill" : false, "elements_enable_external_payment_method_paypay" : false, + "elements_enable_klarna_express_checkout" : false, "elements_enable_external_payment_method_ratepay" : false, "elements_enable_external_payment_method_sezzle" : false, "elements_enable_external_payment_method_bankaxept" : false, "elements_enable_external_payment_method_satispay" : false, "elements_enable_external_payment_method_dbarai" : false, "elements_enable_external_payment_method_titres_restaurant" : false, + "elements_link_global_holdback_rollout" : false, "elements_enable_external_payment_method_coinbase_pay" : false, "elements_enable_external_payment_method_trustly" : false, - "elements_enable_save_last_used_payment_method" : true, "elements_enable_external_payment_method_kbc" : false, "elements_enable_external_payment_method_bizum" : false, "elements_enable_external_payment_method_gcash" : false, "elements_enable_card_brand_choice_payment_element_link" : true, "elements_enable_external_payment_method_payit" : false, - "elements_enable_payment_element_postal_validation" : true, - "link_doi_ungated_behavior_rollout" : true, "elements_enable_blik" : true, "elements_enable_south_korea_market_underlying_pms" : false, "elements_enable_external_payment_method_girocard" : false, @@ -294,11 +160,12 @@ x-content-type-options: nosniff "elements_enable_link_spm" : true, "elements_spm_max_visible_payment_methods" : false, "elements_disable_link_email_otp" : false, - "cbc_in_link_popup" : false, + "cbc_in_link_popup" : true, "elements_enable_external_payment_method_picpay" : false, "elements_enable_external_payment_method_planpay" : false, "elements_enable_external_payment_method_samsung_pay" : false, "elements_enable_external_payment_method_truelayer" : false, + "elements_enable_link_in_ece_personalization" : false, "elements_enable_passive_captcha" : true, "elements_disable_paypal_express" : false, "elements_disable_recurring_express_checkout_button_amazon_pay" : false, @@ -307,30 +174,22 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_payu" : false, "elements_disable_express_checkout_button_amazon_pay" : false, "elements_enable_external_payment_method_venmo" : false, + "disable_payment_element_if_required_billing_config" : false, + "link_set_active_field_true" : true, "elements_enable_external_payment_method_mondu" : false, "elements_enable_external_payment_method_paydirekt" : false, "elements_stop_move_focus_to_first_errored_field" : true, "elements_enable_external_payment_method_online_banking_slovakia" : false, "elements_enable_external_payment_method_interac" : false, - "link_new_learn_more_modal_enabled" : false, + "link_new_learn_more_modal_enabled" : true, "use_link_views" : false, "elements_enable_external_payment_method_mybank" : false }, - "external_payment_method_data" : null, - "unactivated_payment_method_types" : [ - "cashapp", - "amazon_pay", - "us_bank_account" - ], - "lpm_promotions" : null, - "merchant_country" : "US", - "paypal_express_config" : { - "client_id" : null, - "paypal_merchant_id" : null - }, - "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", - "customer" : null, + "merchant_logo_url" : null, + "session_id" : "elements_session_1IkBGN9ZAzh", "account_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_currency" : "usd", "card_brand_choice" : { "eligible" : false, "preferred_networks" : [ @@ -340,14 +199,163 @@ x-content-type-options: nosniff "cartes_bancaires" : false } }, - "customer_error" : null, - "order" : null, + "shipping_address_settings" : { + "autocomplete_allowed" : false + }, + "external_payment_method_data" : null, + "meta_pay_signed_container_context" : null, + "apple_pay_preference" : "enabled", + "lpm_promotions" : null, + "merchant_country" : "US", + "google_pay_preference" : "enabled", + "paypal_express_config" : { + "client_id" : null, + "paypal_merchant_id" : null + }, + "experiments_data" : { + "arb_id" : "1e5eef68-9d35-4694-8541-3aa466cb2f72", + "experiment_metadata" : { + "seed" : "f141acec06c73601adc1c212d38a020b85a1cdd62a3e46835373aeaf676a9090" + }, + "experiment_assignments" : { + "elements_merchant_ui_api_srv" : "control", + "link_popup_webview_option_ios" : "control", + "ocs_buyer_xp_elements_lpm_holdback" : "control" + } + }, "legacy_customer" : null, + "link_settings" : { + "link_enable_webauthn_for_link_popup" : false, + "link_no_code_default_values_recall" : true, + "link_payment_session_context" : null, + "link_consumer_incentive" : null, + "link_default_opt_in" : "NONE", + "link_elements_pageload_sign_up_disabled" : false, + "link_crypto_onramp_bank_upsell" : false, + "link_funding_sources" : [ + + ], + "link_disabled_reasons" : { + "payment_element_payment_method_mode" : [ + "link_not_specified_in_payment_method_types" + ], + "payment_element_passthrough_mode" : [ + "automatic_payment_methods_enabled", + "link_not_enabled_on_payment_config", + "not_gated_into_enable_m2_passthrough_mode" + ] + }, + "link_supported_payment_methods" : [ + + ], + "link_elements_is_crypto_onramp" : false, + "link_payment_element_disabled_by_targeting" : false, + "link_popup_webview_option" : "shared", + "link_targeting_results" : { + "payment_element_passthrough_mode" : null + }, + "link_disable_email_otp" : false, + "link_local_storage_login_enabled" : false, + "link_enable_instant_debits_in_testmode" : false, + "link_global_holdback_on" : false, + "link_session_storage_login_enabled" : false, + "link_payment_element_enable_webauthn_login" : false, + "link_authenticated_change_event_enabled" : false, + "link_bank_onboarding_enabled" : false, + "link_hcaptcha_rqdata" : null, + "link_m2_default_integration_enabled" : false, + "link_financial_incentives_experiment_enabled" : false, + "link_passthrough_mode_enabled" : false, + "link_no_code_default_values_identification" : true, + "link_enable_email_otp_for_link_popup" : false, + "link_pay_button_element_enabled" : true, + "link_crypto_onramp_elements_logout_disabled" : false, + "link_mode" : null, + "link_no_code_default_values_usage" : true, + "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", + "link_crypto_onramp_force_cvc_reverification" : false, + "link_email_verification_login_enabled" : false, + "link_only_for_payment_method_types_enabled" : false, + "link_bank_incentives_enabled" : false, + "link_pm_killswitch_on_in_elements" : false + }, + "passive_captcha" : { + "site_key" : "20000000-ffff-ffff-ffff-000000000002", + "rqdata" : null + }, + "payment_method_specs" : [ + { + "async" : false, + "fields" : [ + + ], + "selector_icon" : { + "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light@3x-46eb8b8a4a252b78d7b4c3b96d4ed7ae.png", + "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light-22cdec0f5f5609554a34fa62fa583f23.svg" + }, + "type" : "amazon_pay", + "next_action_spec" : { + "confirm_response_status_specs" : { + "requires_action" : { + "type" : "redirect_to_url" + } + }, + "post_confirm_handling_pi_status_specs" : { + "requires_action" : { + "type" : "canceled" + }, + "succeeded" : { + "type" : "finished" + } + } + } + }, + { + "async" : false, + "type" : "card", + "fields" : [ + + ] + }, + { + "async" : false, + "fields" : [ + + ], + "type" : "cashapp", + "selector_icon" : { + "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp@3x-a89c5d8d0651cae2a511bb49a6be1cfc.png", + "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp-981164a833e417d28a8ac2684fda2324.svg" + } + } + ], + "prefill_selectors" : { + "default_values" : { + "email" : [ + + ], + "merchant_provides_default_values_on_update" : true + } + }, + "unactivated_payment_method_types" : [ + "cashapp", + "amazon_pay", + "us_bank_account" + ], + "unverified_payment_methods_on_domain" : [ + "apple_pay" + ], + "order" : null, "link_purchase_protections_data" : { "type" : null, "is_eligible" : false }, - "merchant_logo_url" : null, + "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", + "customer" : null, + "klarna_express_config" : { + "klarna_mid" : null + }, + "business_name" : "CI Stuff", "ordered_payment_method_types_and_wallets" : [ "card", "apple_pay", @@ -355,5 +363,6 @@ x-content-type-options: nosniff "google_pay", "amazon_pay", "us_bank_account" - ] + ], + "customer_error" : null } \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdateFails/0000_get_v1_elements_sessions.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdateFails/0000_get_v1_elements_sessions.tail index a0568f9e8cb..878491dac99 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdateFails/0000_get_v1_elements_sessions.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdateFails/0000_get_v1_elements_sessions.tail @@ -1,22 +1,23 @@ GET -https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?client_default_payment_method=pm_1PiS2zFY0qyl6XeWlMKBbYVV&deferred_intent%5Bamount%5D=1000&deferred_intent%5Bcapture_method%5D=automatic&deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=payment&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ +https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?deferred_intent%5Bamount%5D=1000&deferred_intent%5Bcapture_method%5D=automatic&deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=payment&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ 200 application/json -access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE +access-control-allow-methods: GET, HEAD, PUT, PATCH, POST, DELETE content-security-policy: report-uri https://q.stripe.com/csp-report?p=v1%2Felements%2Fsessions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Server: nginx Cache-Control: no-cache, no-store reporting-endpoints: coop="https://q.stripe.com/coop-report?s=ocs-bapi-srv" +x-wc: A Strict-Transport-Security: max-age=63072000; includeSubDomains; preload cross-origin-opener-policy-report-only: same-origin; report-to="coop" Access-Control-Allow-Origin: * x-stripe-routing-context-priority-tier: api-testmode x-stripe-priority-routing-enabled: true report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=ocs-bapi-srv"}],"include_subdomains":true} -request-id: req_0MoHbV5XiKBsth -Content-Length: 14279 +request-id: req_UAqlnpYB3gL8Db +Content-Length: 14471 Vary: Origin -Date: Wed, 31 Jul 2024 02:14:19 GMT +Date: Wed, 16 Oct 2024 16:36:59 GMT stripe-version: 2020-08-27 access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required access-control-max-age: 300 @@ -25,158 +26,31 @@ Content-Type: application/json x-content-type-options: nosniff { - "merchant_currency" : "usd", - "meta_pay_signed_container_context" : null, - "link_settings" : { - "link_enable_webauthn_for_link_popup" : false, - "link_no_code_default_values_recall" : false, - "link_default_opt_in" : "NONE", - "link_elements_pageload_sign_up_disabled" : false, - "link_funding_sources_onboarding_unavailable_from_holdback" : [ - - ], - "link_crypto_onramp_bank_upsell" : false, - "link_funding_sources" : [ - - ], - "link_disabled_reasons" : { - "payment_element_payment_method_mode" : [ - "link_not_specified_in_payment_method_types" - ], - "payment_element_passthrough_mode" : [ - "automatic_payment_methods_enabled", - "link_not_enabled_on_payment_config", - "not_gated_into_enable_m2_passthrough_mode" - ] - }, - "link_elements_is_crypto_onramp" : false, - "link_payment_element_disabled_by_targeting" : false, - "link_popup_webview_option" : "shared", - "link_targeting_results" : { - "payment_element_passthrough_mode" : null - }, - "link_disable_email_otp" : false, - "link_local_storage_login_enabled" : false, - "link_enable_instant_debits_in_testmode" : false, - "link_global_holdback_on" : false, - "link_session_storage_login_enabled" : false, - "link_payment_element_enable_webauthn_login" : false, - "link_payment_method_nicknames" : false, - "link_authenticated_change_event_enabled" : false, - "link_bank_onboarding_enabled" : false, - "link_hcaptcha_rqdata" : null, - "link_m2_default_integration_enabled" : false, - "link_financial_incentives_experiment_enabled" : false, - "link_passthrough_mode_enabled" : false, - "link_no_code_default_values_identification" : true, - "link_enable_email_otp_for_link_popup" : false, - "link_pay_button_element_enabled" : true, - "link_crypto_onramp_elements_logout_disabled" : false, - "link_mode" : null, - "link_no_code_default_values_usage" : false, - "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", - "link_crypto_onramp_force_cvc_reverification" : false, - "link_email_verification_login_enabled" : false, - "link_only_for_payment_method_types_enabled" : false, - "link_bank_incentives_enabled" : false, - "link_funding_sources_onboarding_enabled" : [ - - ], - "link_pm_killswitch_on_in_elements" : false - }, - "passive_captcha" : { - "site_key" : "20000000-ffff-ffff-ffff-000000000002", - "rqdata" : null - }, - "payment_method_specs" : [ - { - "async" : false, - "fields" : [ - - ], - "selector_icon" : { - "dark_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_dark@3x-3861df0768196df1a8ed7ed2a9d44d9b.png", - "dark_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_dark-e41f361095e9579a113d8e461ebbe594.svg", - "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light@3x-46eb8b8a4a252b78d7b4c3b96d4ed7ae.png", - "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light-22cdec0f5f5609554a34fa62fa583f23.svg" - }, - "type" : "amazon_pay", - "next_action_spec" : { - "confirm_response_status_specs" : { - "requires_action" : { - "type" : "redirect_to_url" - } - }, - "post_confirm_handling_pi_status_specs" : { - "requires_action" : { - "type" : "canceled" - }, - "succeeded" : { - "type" : "finished" - } - } - } - }, - { - "async" : false, - "type" : "card", - "fields" : [ - - ] - }, - { - "async" : false, - "fields" : [ - - ], - "type" : "cashapp", - "selector_icon" : { - "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp@3x-a89c5d8d0651cae2a511bb49a6be1cfc.png", - "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp-981164a833e417d28a8ac2684fda2324.svg" - } - } - ], - "session_id" : "elements_session_175J465S2h5", - "shipping_address_settings" : { - "autocomplete_allowed" : false - }, - "business_name" : "CI Stuff", - "unverified_payment_methods_on_domain" : [ - "apple_pay" - ], - "apple_pay_preference" : "enabled", - "google_pay_preference" : "enabled", - "merchant_id" : "acct_1G6m1pFY0qyl6XeW", "payment_method_preference" : { "country_code" : "US", "object" : "payment_method_preference", "type" : "deferred_intent", "ordered_payment_method_types" : [ "card", - "amazon_pay", "cashapp", + "amazon_pay", "us_bank_account" ] }, - "experiments_data" : { - "arb_id" : "99dfb2f9-dbfd-44a4-bdce-318641ecb9d4", - "experiment_assignments" : { - "elements_merchant_ui_api_srv" : "control", - "link_popup_webview_option_ios" : "control" - } - }, + "capability_enabled_card_networks" : [ + "cartes_bancaires" + ], "flags" : { "elements_enable_external_payment_method_wallets_india" : false, "elements_enable_external_payment_method_check" : false, "elements_enable_external_payment_method_fonix" : false, "elements_enable_external_payment_method_au_pay" : false, - "elements_enable_invalid_country_for_pm_error" : false, + "elements_enable_invalid_country_for_pm_error" : true, "elements_enable_external_payment_method_ebt_snap" : false, "elements_enable_external_payment_method_v_pay" : false, + "elements_enable_link_in_passthrough_ece" : true, "elements_enable_passive_hcaptcha_in_payment_method_creation" : true, "legacy_confirmation_tokens" : false, - "link_purchase_protections_enabled" : false, - "enable_third_party_recurring_express_checkout_element" : false, "elements_enable_external_payment_method_swish" : false, "elements_enable_external_payment_method_online_banking_poland" : false, "elements_enable_read_allow_redisplay" : false, @@ -186,15 +60,15 @@ x-content-type-options: nosniff "elements_enable_express_checkout_button_demo_pay" : false, "elements_enable_external_payment_method_tabby" : false, "elements_enable_mx_card_installments" : false, - "link_payment_method_nicknames" : true, + "elements_disable_link_global_holdback_lookup" : false, "elements_enable_external_payment_method_bpay" : false, "elements_enable_external_payment_method_laybuy" : false, "elements_enable_external_payment_method_bluecode" : false, "elements_enable_external_payment_method_grabpay_later" : false, + "elements_disable_klarna_ece_crossborder_validation" : false, "elements_disable_payment_element_card_country_zip_validations" : false, "elements_enable_external_payment_method_billie" : false, "elements_enable_external_payment_method_postfinance" : false, - "elements_enable_use_last_used_payment_method" : false, "elements_enable_external_payment_method_scalapay" : false, "elements_enable_external_payment_method_famipay" : false, "elements_enable_save_for_future_payments_pre_check" : false, @@ -204,12 +78,15 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pay_easy" : false, "elements_enable_external_payment_method_sequra" : false, "elements_spm_set_as_default" : true, - "elements_write_sfu_into_confirm_request" : false, + "payment_element_link_modal_preload_killswitch" : false, "elements_enable_external_payment_method_paidy" : false, "elements_enable_write_allow_redisplay" : false, "elements_enable_external_payment_method_online_banking_thailand" : false, "elements_enable_external_payment_method_momo" : false, "elements_enable_external_payment_method_payrexx" : false, + "elements_appearance_payment_accordion_overrides" : false, + "elements_enable_cb_apple_pay_for_connect_platforms" : true, + "link_purchase_protections_rollout" : false, "elements_enable_external_payment_method_walley" : false, "elements_enable_external_payment_method_mb_way" : false, "elements_enable_external_payment_method_rabbitline_pay" : false, @@ -220,23 +97,23 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pledg" : false, "elements_enable_klarna_unified_offer" : true, "elements_enable_external_payment_method_postepay" : false, + "elements_enable_19_digit_pans" : false, "elements_enable_external_payment_method_aplazo" : false, "elements_enable_external_payment_method_dapp" : false, - "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_atone" : false, "elements_enable_external_payment_method_dankort" : false, "elements_enable_external_payment_method_fawry" : false, "elements_enable_external_payment_method_payconiq" : false, - "elements_enable_external_payment_method_wechat_mobile" : false, + "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_paysafecard" : false, "elements_enable_external_payment_method_eftpos_australia" : false, + "elements_enable_external_payment_method_wechat_mobile" : false, "elements_spm_messages" : false, "elements_enable_external_payment_method_azupay" : false, "ece_apple_pay_payment_request_passthrough" : false, "elements_enable_external_payment_method_online_banking_czech_republic" : false, "elements_enable_external_payment_method_aplazame" : false, "elements_enable_external_payment_method_rakuten_pay" : false, - "elements_luxe_qr_ui_on_web_enabled" : false, "paypal_express_checkout_recurring_support" : false, "elements_enable_external_payment_method_paypo" : false, "elements_enable_external_payment_method_netbanking" : false, @@ -246,33 +123,30 @@ x-content-type-options: nosniff "financial_connections_enable_deferred_intent_flow" : true, "elements_enable_external_payment_method_hands_in" : false, "elements_enable_external_payment_method_younitedpay" : false, - "elements_enable_passive_captcha_on_payment_intent_update" : true, "elements_enable_br_card_installments" : false, "elements_enable_external_payment_method_atome" : false, "elements_enable_external_payment_method_mercado_pago" : false, "elements_enable_external_payment_method_amazon_pay" : false, "elements_enable_external_payment_method_line_pay" : false, "elements_enable_external_payment_method_paytm" : false, - "elements_enable_outer_action_show_upe_wallet" : true, "elements_enable_external_payment_method_catch" : false, "elements_enable_external_payment_method_skrill" : false, "elements_enable_external_payment_method_paypay" : false, + "elements_enable_klarna_express_checkout" : false, "elements_enable_external_payment_method_ratepay" : false, "elements_enable_external_payment_method_sezzle" : false, "elements_enable_external_payment_method_bankaxept" : false, "elements_enable_external_payment_method_satispay" : false, "elements_enable_external_payment_method_dbarai" : false, "elements_enable_external_payment_method_titres_restaurant" : false, + "elements_link_global_holdback_rollout" : false, "elements_enable_external_payment_method_coinbase_pay" : false, "elements_enable_external_payment_method_trustly" : false, - "elements_enable_save_last_used_payment_method" : true, "elements_enable_external_payment_method_kbc" : false, "elements_enable_external_payment_method_bizum" : false, "elements_enable_external_payment_method_gcash" : false, "elements_enable_card_brand_choice_payment_element_link" : true, "elements_enable_external_payment_method_payit" : false, - "elements_enable_payment_element_postal_validation" : true, - "link_doi_ungated_behavior_rollout" : true, "elements_enable_blik" : true, "elements_enable_south_korea_market_underlying_pms" : false, "elements_enable_external_payment_method_girocard" : false, @@ -286,11 +160,12 @@ x-content-type-options: nosniff "elements_enable_link_spm" : true, "elements_spm_max_visible_payment_methods" : false, "elements_disable_link_email_otp" : false, - "cbc_in_link_popup" : false, + "cbc_in_link_popup" : true, "elements_enable_external_payment_method_picpay" : false, "elements_enable_external_payment_method_planpay" : false, "elements_enable_external_payment_method_samsung_pay" : false, "elements_enable_external_payment_method_truelayer" : false, + "elements_enable_link_in_ece_personalization" : false, "elements_enable_passive_captcha" : true, "elements_disable_paypal_express" : false, "elements_disable_recurring_express_checkout_button_amazon_pay" : false, @@ -299,30 +174,22 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_payu" : false, "elements_disable_express_checkout_button_amazon_pay" : false, "elements_enable_external_payment_method_venmo" : false, + "disable_payment_element_if_required_billing_config" : false, + "link_set_active_field_true" : true, "elements_enable_external_payment_method_mondu" : false, "elements_enable_external_payment_method_paydirekt" : false, "elements_stop_move_focus_to_first_errored_field" : true, "elements_enable_external_payment_method_online_banking_slovakia" : false, "elements_enable_external_payment_method_interac" : false, - "link_new_learn_more_modal_enabled" : false, + "link_new_learn_more_modal_enabled" : true, "use_link_views" : false, "elements_enable_external_payment_method_mybank" : false }, - "external_payment_method_data" : null, - "unactivated_payment_method_types" : [ - "amazon_pay", - "cashapp", - "us_bank_account" - ], - "lpm_promotions" : null, - "merchant_country" : "US", - "paypal_express_config" : { - "client_id" : null, - "paypal_merchant_id" : null - }, - "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", - "customer" : null, + "merchant_logo_url" : null, + "session_id" : "elements_session_1ciY3LWzXck", "account_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_currency" : "usd", "card_brand_choice" : { "eligible" : false, "preferred_networks" : [ @@ -332,20 +199,170 @@ x-content-type-options: nosniff "cartes_bancaires" : false } }, - "customer_error" : null, - "order" : null, + "shipping_address_settings" : { + "autocomplete_allowed" : false + }, + "external_payment_method_data" : null, + "meta_pay_signed_container_context" : null, + "apple_pay_preference" : "enabled", + "lpm_promotions" : null, + "merchant_country" : "US", + "google_pay_preference" : "enabled", + "paypal_express_config" : { + "client_id" : null, + "paypal_merchant_id" : null + }, + "experiments_data" : { + "arb_id" : "6ba473e5-1fe2-4693-a575-62f8e59eae9d", + "experiment_metadata" : { + "seed" : "f141acec06c73601adc1c212d38a020b85a1cdd62a3e46835373aeaf676a9090" + }, + "experiment_assignments" : { + "elements_merchant_ui_api_srv" : "control", + "link_popup_webview_option_ios" : "control", + "ocs_buyer_xp_elements_lpm_holdback" : "control" + } + }, "legacy_customer" : null, + "link_settings" : { + "link_enable_webauthn_for_link_popup" : false, + "link_no_code_default_values_recall" : true, + "link_payment_session_context" : null, + "link_consumer_incentive" : null, + "link_default_opt_in" : "NONE", + "link_elements_pageload_sign_up_disabled" : false, + "link_crypto_onramp_bank_upsell" : false, + "link_funding_sources" : [ + + ], + "link_disabled_reasons" : { + "payment_element_payment_method_mode" : [ + "link_not_specified_in_payment_method_types" + ], + "payment_element_passthrough_mode" : [ + "automatic_payment_methods_enabled", + "link_not_enabled_on_payment_config", + "not_gated_into_enable_m2_passthrough_mode" + ] + }, + "link_supported_payment_methods" : [ + + ], + "link_elements_is_crypto_onramp" : false, + "link_payment_element_disabled_by_targeting" : false, + "link_popup_webview_option" : "shared", + "link_targeting_results" : { + "payment_element_passthrough_mode" : null + }, + "link_disable_email_otp" : false, + "link_local_storage_login_enabled" : false, + "link_enable_instant_debits_in_testmode" : false, + "link_global_holdback_on" : false, + "link_session_storage_login_enabled" : false, + "link_payment_element_enable_webauthn_login" : false, + "link_authenticated_change_event_enabled" : false, + "link_bank_onboarding_enabled" : false, + "link_hcaptcha_rqdata" : null, + "link_m2_default_integration_enabled" : false, + "link_financial_incentives_experiment_enabled" : false, + "link_passthrough_mode_enabled" : false, + "link_no_code_default_values_identification" : true, + "link_enable_email_otp_for_link_popup" : false, + "link_pay_button_element_enabled" : true, + "link_crypto_onramp_elements_logout_disabled" : false, + "link_mode" : null, + "link_no_code_default_values_usage" : true, + "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", + "link_crypto_onramp_force_cvc_reverification" : false, + "link_email_verification_login_enabled" : false, + "link_only_for_payment_method_types_enabled" : false, + "link_bank_incentives_enabled" : false, + "link_pm_killswitch_on_in_elements" : false + }, + "passive_captcha" : { + "site_key" : "20000000-ffff-ffff-ffff-000000000002", + "rqdata" : null + }, + "payment_method_specs" : [ + { + "async" : false, + "fields" : [ + + ], + "selector_icon" : { + "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light@3x-46eb8b8a4a252b78d7b4c3b96d4ed7ae.png", + "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light-22cdec0f5f5609554a34fa62fa583f23.svg" + }, + "type" : "amazon_pay", + "next_action_spec" : { + "confirm_response_status_specs" : { + "requires_action" : { + "type" : "redirect_to_url" + } + }, + "post_confirm_handling_pi_status_specs" : { + "requires_action" : { + "type" : "canceled" + }, + "succeeded" : { + "type" : "finished" + } + } + } + }, + { + "async" : false, + "type" : "card", + "fields" : [ + + ] + }, + { + "async" : false, + "fields" : [ + + ], + "type" : "cashapp", + "selector_icon" : { + "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp@3x-a89c5d8d0651cae2a511bb49a6be1cfc.png", + "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp-981164a833e417d28a8ac2684fda2324.svg" + } + } + ], + "prefill_selectors" : { + "default_values" : { + "email" : [ + + ], + "merchant_provides_default_values_on_update" : true + } + }, + "unactivated_payment_method_types" : [ + "cashapp", + "amazon_pay", + "us_bank_account" + ], + "unverified_payment_methods_on_domain" : [ + "apple_pay" + ], + "order" : null, "link_purchase_protections_data" : { "type" : null, "is_eligible" : false }, - "merchant_logo_url" : null, + "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", + "customer" : null, + "klarna_express_config" : { + "klarna_mid" : null + }, + "business_name" : "CI Stuff", "ordered_payment_method_types_and_wallets" : [ "card", "apple_pay", - "amazon_pay", "cashapp", + "amazon_pay", "google_pay", "us_bank_account" - ] + ], + "customer_error" : null } \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdateFails/0001_get_v1_elements_sessions.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdateFails/0001_get_v1_elements_sessions.tail index 225d8fc6423..28707c31b96 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdateFails/0001_get_v1_elements_sessions.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdateFails/0001_get_v1_elements_sessions.tail @@ -1,22 +1,23 @@ GET -https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?client_default_payment_method=pm_1PiS2zFY0qyl6XeWlMKBbYVV&deferred_intent%5Bcurrency%5D=Invalid%20currency&deferred_intent%5Bmode%5D=setup&deferred_intent%5Bsetup_future_usage%5D=off_session&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ +https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?deferred_intent%5Bcurrency%5D=Invalid%20currency&deferred_intent%5Bmode%5D=setup&deferred_intent%5Bsetup_future_usage%5D=off_session&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ 400 application/json -access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE +access-control-allow-methods: GET, HEAD, PUT, PATCH, POST, DELETE content-security-policy: report-uri https://q.stripe.com/csp-report?p=v1%2Felements%2Fsessions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Server: nginx Cache-Control: no-cache, no-store reporting-endpoints: coop="https://q.stripe.com/coop-report?s=ocs-bapi-srv" +x-wc: A Strict-Transport-Security: max-age=63072000; includeSubDomains; preload cross-origin-opener-policy-report-only: same-origin; report-to="coop" Access-Control-Allow-Origin: * x-stripe-routing-context-priority-tier: api-testmode x-stripe-priority-routing-enabled: true report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=ocs-bapi-srv"}],"include_subdomains":true} -request-id: req_mUVrVZxU3gRQCz +request-id: req_eAhfRsR0jTSf59 Content-Length: 1044 Vary: Origin -Date: Wed, 31 Jul 2024 02:14:19 GMT +Date: Wed, 16 Oct 2024 16:36:59 GMT stripe-version: 2020-08-27 access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required access-control-max-age: 300 @@ -29,6 +30,6 @@ x-content-type-options: nosniff "param" : "deferred_intent[currency]", "message" : "Invalid currency: invalid currency. Stripe currently supports these currencies: usd, aed, afn, all, amd, ang, aoa, ars, aud, awg, azn, bam, bbd, bdt, bgn, bhd, bif, bmd, bnd, bob, brl, bsd, bwp, byn, bzd, cad, cdf, chf, clp, cny, cop, crc, cve, czk, djf, dkk, dop, dzd, egp, etb, eur, fjd, fkp, gbp, gel, gip, gmd, gnf, gtq, gyd, hkd, hnl, hrk, htg, huf, idr, ils, inr, isk, jmd, jod, jpy, kes, kgs, khr, kmf, krw, kwd, kyd, kzt, lak, lbp, lkr, lrd, lsl, mad, mdl, mga, mkd, mmk, mnt, mop, mur, mvr, mwk, mxn, myr, mzn, nad, ngn, nio, nok, npr, nzd, omr, pab, pen, pgk, php, pkr, pln, pyg, qar, ron, rsd, rub, rwf, sar, sbd, scr, sek, sgd, shp, sle, sos, srd, std, szl, thb, tjs, tnd, top, try, ttd, twd, tzs, uah, ugx, uyu, uzs, vnd, vuv, wst, xaf, xcd, xof, xpf, yer, zar, zmw, usdc, btn, ghs, eek, lvl, svc, vef, ltl, sll, mro", "type" : "invalid_request_error", - "request_log_url" : "https:\/\/dashboard.stripe.com\/test\/logs\/req_mUVrVZxU3gRQCz?t=1722392059" + "request_log_url" : "https:\/\/dashboard.stripe.com\/test\/logs\/req_eAhfRsR0jTSf59?t=1729096619" } } \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdateFails/0002_get_v1_elements_sessions.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdateFails/0002_get_v1_elements_sessions.tail index a6dd18a05ac..478f664cc31 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdateFails/0002_get_v1_elements_sessions.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdateFails/0002_get_v1_elements_sessions.tail @@ -1,22 +1,23 @@ GET -https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?client_default_payment_method=pm_1PiS2zFY0qyl6XeWlMKBbYVV&deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=setup&deferred_intent%5Bsetup_future_usage%5D=off_session&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ +https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=setup&deferred_intent%5Bsetup_future_usage%5D=off_session&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ 200 application/json -access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE +access-control-allow-methods: GET, HEAD, PUT, PATCH, POST, DELETE content-security-policy: report-uri https://q.stripe.com/csp-report?p=v1%2Felements%2Fsessions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Server: nginx Cache-Control: no-cache, no-store reporting-endpoints: coop="https://q.stripe.com/coop-report?s=ocs-bapi-srv" +x-wc: A Strict-Transport-Security: max-age=63072000; includeSubDomains; preload cross-origin-opener-policy-report-only: same-origin; report-to="coop" Access-Control-Allow-Origin: * x-stripe-routing-context-priority-tier: api-testmode x-stripe-priority-routing-enabled: true report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=ocs-bapi-srv"}],"include_subdomains":true} -request-id: req_5Kl3f2M8kv5jwM -Content-Length: 14279 +request-id: req_pHd4r7zA7bfwZp +Content-Length: 14471 Vary: Origin -Date: Wed, 31 Jul 2024 02:14:20 GMT +Date: Wed, 16 Oct 2024 16:37:00 GMT stripe-version: 2020-08-27 access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required access-control-max-age: 300 @@ -25,128 +26,6 @@ Content-Type: application/json x-content-type-options: nosniff { - "merchant_currency" : "usd", - "meta_pay_signed_container_context" : null, - "link_settings" : { - "link_enable_webauthn_for_link_popup" : false, - "link_no_code_default_values_recall" : false, - "link_default_opt_in" : "NONE", - "link_elements_pageload_sign_up_disabled" : false, - "link_funding_sources_onboarding_unavailable_from_holdback" : [ - - ], - "link_crypto_onramp_bank_upsell" : false, - "link_funding_sources" : [ - - ], - "link_disabled_reasons" : { - "payment_element_payment_method_mode" : [ - "link_not_specified_in_payment_method_types" - ], - "payment_element_passthrough_mode" : [ - "automatic_payment_methods_enabled", - "link_not_enabled_on_payment_config", - "not_gated_into_enable_m2_passthrough_mode" - ] - }, - "link_elements_is_crypto_onramp" : false, - "link_payment_element_disabled_by_targeting" : false, - "link_popup_webview_option" : "shared", - "link_targeting_results" : { - "payment_element_passthrough_mode" : null - }, - "link_disable_email_otp" : false, - "link_local_storage_login_enabled" : false, - "link_enable_instant_debits_in_testmode" : false, - "link_global_holdback_on" : false, - "link_session_storage_login_enabled" : false, - "link_payment_element_enable_webauthn_login" : false, - "link_payment_method_nicknames" : false, - "link_authenticated_change_event_enabled" : false, - "link_bank_onboarding_enabled" : false, - "link_hcaptcha_rqdata" : null, - "link_m2_default_integration_enabled" : false, - "link_financial_incentives_experiment_enabled" : false, - "link_passthrough_mode_enabled" : false, - "link_no_code_default_values_identification" : false, - "link_enable_email_otp_for_link_popup" : false, - "link_pay_button_element_enabled" : true, - "link_crypto_onramp_elements_logout_disabled" : false, - "link_mode" : null, - "link_no_code_default_values_usage" : true, - "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", - "link_crypto_onramp_force_cvc_reverification" : false, - "link_email_verification_login_enabled" : false, - "link_only_for_payment_method_types_enabled" : false, - "link_bank_incentives_enabled" : false, - "link_funding_sources_onboarding_enabled" : [ - - ], - "link_pm_killswitch_on_in_elements" : false - }, - "passive_captcha" : { - "site_key" : "20000000-ffff-ffff-ffff-000000000002", - "rqdata" : null - }, - "payment_method_specs" : [ - { - "async" : false, - "fields" : [ - - ], - "selector_icon" : { - "dark_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_dark@3x-3861df0768196df1a8ed7ed2a9d44d9b.png", - "dark_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_dark-e41f361095e9579a113d8e461ebbe594.svg", - "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light@3x-46eb8b8a4a252b78d7b4c3b96d4ed7ae.png", - "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light-22cdec0f5f5609554a34fa62fa583f23.svg" - }, - "type" : "amazon_pay", - "next_action_spec" : { - "confirm_response_status_specs" : { - "requires_action" : { - "type" : "redirect_to_url" - } - }, - "post_confirm_handling_pi_status_specs" : { - "requires_action" : { - "type" : "canceled" - }, - "succeeded" : { - "type" : "finished" - } - } - } - }, - { - "async" : false, - "type" : "card", - "fields" : [ - - ] - }, - { - "async" : false, - "fields" : [ - - ], - "type" : "cashapp", - "selector_icon" : { - "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp@3x-a89c5d8d0651cae2a511bb49a6be1cfc.png", - "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp-981164a833e417d28a8ac2684fda2324.svg" - } - } - ], - "session_id" : "elements_session_1qNScHZd3Xb", - "shipping_address_settings" : { - "autocomplete_allowed" : false - }, - "business_name" : "CI Stuff", - "unverified_payment_methods_on_domain" : [ - "apple_pay" - ], - "apple_pay_preference" : "enabled", - "google_pay_preference" : "enabled", - "merchant_id" : "acct_1G6m1pFY0qyl6XeW", "payment_method_preference" : { "country_code" : "US", "object" : "payment_method_preference", @@ -158,25 +37,20 @@ x-content-type-options: nosniff "us_bank_account" ] }, - "experiments_data" : { - "arb_id" : "c41012b1-7449-4eec-9605-b888089356fe", - "experiment_assignments" : { - "elements_merchant_ui_api_srv" : "control", - "link_popup_webview_option_ios" : "control" - } - }, + "capability_enabled_card_networks" : [ + "cartes_bancaires" + ], "flags" : { "elements_enable_external_payment_method_wallets_india" : false, "elements_enable_external_payment_method_check" : false, "elements_enable_external_payment_method_fonix" : false, "elements_enable_external_payment_method_au_pay" : false, - "elements_enable_invalid_country_for_pm_error" : false, + "elements_enable_invalid_country_for_pm_error" : true, "elements_enable_external_payment_method_ebt_snap" : false, "elements_enable_external_payment_method_v_pay" : false, + "elements_enable_link_in_passthrough_ece" : true, "elements_enable_passive_hcaptcha_in_payment_method_creation" : true, "legacy_confirmation_tokens" : false, - "link_purchase_protections_enabled" : false, - "enable_third_party_recurring_express_checkout_element" : false, "elements_enable_external_payment_method_swish" : false, "elements_enable_external_payment_method_online_banking_poland" : false, "elements_enable_read_allow_redisplay" : false, @@ -186,15 +60,15 @@ x-content-type-options: nosniff "elements_enable_express_checkout_button_demo_pay" : false, "elements_enable_external_payment_method_tabby" : false, "elements_enable_mx_card_installments" : false, - "link_payment_method_nicknames" : true, + "elements_disable_link_global_holdback_lookup" : false, "elements_enable_external_payment_method_bpay" : false, "elements_enable_external_payment_method_laybuy" : false, "elements_enable_external_payment_method_bluecode" : false, "elements_enable_external_payment_method_grabpay_later" : false, + "elements_disable_klarna_ece_crossborder_validation" : false, "elements_disable_payment_element_card_country_zip_validations" : false, "elements_enable_external_payment_method_billie" : false, "elements_enable_external_payment_method_postfinance" : false, - "elements_enable_use_last_used_payment_method" : false, "elements_enable_external_payment_method_scalapay" : false, "elements_enable_external_payment_method_famipay" : false, "elements_enable_save_for_future_payments_pre_check" : false, @@ -204,12 +78,15 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pay_easy" : false, "elements_enable_external_payment_method_sequra" : false, "elements_spm_set_as_default" : true, - "elements_write_sfu_into_confirm_request" : false, + "payment_element_link_modal_preload_killswitch" : false, "elements_enable_external_payment_method_paidy" : false, "elements_enable_write_allow_redisplay" : false, "elements_enable_external_payment_method_online_banking_thailand" : false, "elements_enable_external_payment_method_momo" : false, "elements_enable_external_payment_method_payrexx" : false, + "elements_appearance_payment_accordion_overrides" : false, + "elements_enable_cb_apple_pay_for_connect_platforms" : true, + "link_purchase_protections_rollout" : false, "elements_enable_external_payment_method_walley" : false, "elements_enable_external_payment_method_mb_way" : false, "elements_enable_external_payment_method_rabbitline_pay" : false, @@ -220,23 +97,23 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pledg" : false, "elements_enable_klarna_unified_offer" : true, "elements_enable_external_payment_method_postepay" : false, + "elements_enable_19_digit_pans" : false, "elements_enable_external_payment_method_aplazo" : false, "elements_enable_external_payment_method_dapp" : false, - "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_atone" : false, "elements_enable_external_payment_method_dankort" : false, "elements_enable_external_payment_method_fawry" : false, "elements_enable_external_payment_method_payconiq" : false, - "elements_enable_external_payment_method_wechat_mobile" : false, + "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_paysafecard" : false, "elements_enable_external_payment_method_eftpos_australia" : false, + "elements_enable_external_payment_method_wechat_mobile" : false, "elements_spm_messages" : false, "elements_enable_external_payment_method_azupay" : false, "ece_apple_pay_payment_request_passthrough" : false, "elements_enable_external_payment_method_online_banking_czech_republic" : false, "elements_enable_external_payment_method_aplazame" : false, "elements_enable_external_payment_method_rakuten_pay" : false, - "elements_luxe_qr_ui_on_web_enabled" : false, "paypal_express_checkout_recurring_support" : false, "elements_enable_external_payment_method_paypo" : false, "elements_enable_external_payment_method_netbanking" : false, @@ -246,33 +123,30 @@ x-content-type-options: nosniff "financial_connections_enable_deferred_intent_flow" : true, "elements_enable_external_payment_method_hands_in" : false, "elements_enable_external_payment_method_younitedpay" : false, - "elements_enable_passive_captcha_on_payment_intent_update" : true, "elements_enable_br_card_installments" : false, "elements_enable_external_payment_method_atome" : false, "elements_enable_external_payment_method_mercado_pago" : false, "elements_enable_external_payment_method_amazon_pay" : false, "elements_enable_external_payment_method_line_pay" : false, "elements_enable_external_payment_method_paytm" : false, - "elements_enable_outer_action_show_upe_wallet" : true, "elements_enable_external_payment_method_catch" : false, "elements_enable_external_payment_method_skrill" : false, "elements_enable_external_payment_method_paypay" : false, + "elements_enable_klarna_express_checkout" : false, "elements_enable_external_payment_method_ratepay" : false, "elements_enable_external_payment_method_sezzle" : false, "elements_enable_external_payment_method_bankaxept" : false, "elements_enable_external_payment_method_satispay" : false, "elements_enable_external_payment_method_dbarai" : false, "elements_enable_external_payment_method_titres_restaurant" : false, + "elements_link_global_holdback_rollout" : false, "elements_enable_external_payment_method_coinbase_pay" : false, "elements_enable_external_payment_method_trustly" : false, - "elements_enable_save_last_used_payment_method" : true, "elements_enable_external_payment_method_kbc" : false, "elements_enable_external_payment_method_bizum" : false, "elements_enable_external_payment_method_gcash" : false, "elements_enable_card_brand_choice_payment_element_link" : true, "elements_enable_external_payment_method_payit" : false, - "elements_enable_payment_element_postal_validation" : true, - "link_doi_ungated_behavior_rollout" : true, "elements_enable_blik" : true, "elements_enable_south_korea_market_underlying_pms" : false, "elements_enable_external_payment_method_girocard" : false, @@ -286,11 +160,12 @@ x-content-type-options: nosniff "elements_enable_link_spm" : true, "elements_spm_max_visible_payment_methods" : false, "elements_disable_link_email_otp" : false, - "cbc_in_link_popup" : false, + "cbc_in_link_popup" : true, "elements_enable_external_payment_method_picpay" : false, "elements_enable_external_payment_method_planpay" : false, "elements_enable_external_payment_method_samsung_pay" : false, "elements_enable_external_payment_method_truelayer" : false, + "elements_enable_link_in_ece_personalization" : false, "elements_enable_passive_captcha" : true, "elements_disable_paypal_express" : false, "elements_disable_recurring_express_checkout_button_amazon_pay" : false, @@ -299,30 +174,22 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_payu" : false, "elements_disable_express_checkout_button_amazon_pay" : false, "elements_enable_external_payment_method_venmo" : false, + "disable_payment_element_if_required_billing_config" : false, + "link_set_active_field_true" : true, "elements_enable_external_payment_method_mondu" : false, "elements_enable_external_payment_method_paydirekt" : false, "elements_stop_move_focus_to_first_errored_field" : true, "elements_enable_external_payment_method_online_banking_slovakia" : false, "elements_enable_external_payment_method_interac" : false, - "link_new_learn_more_modal_enabled" : false, + "link_new_learn_more_modal_enabled" : true, "use_link_views" : false, "elements_enable_external_payment_method_mybank" : false }, - "external_payment_method_data" : null, - "unactivated_payment_method_types" : [ - "cashapp", - "amazon_pay", - "us_bank_account" - ], - "lpm_promotions" : null, - "merchant_country" : "US", - "paypal_express_config" : { - "client_id" : null, - "paypal_merchant_id" : null - }, - "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", - "customer" : null, + "merchant_logo_url" : null, + "session_id" : "elements_session_1KBzJLLCLJz", "account_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_currency" : "usd", "card_brand_choice" : { "eligible" : false, "preferred_networks" : [ @@ -332,14 +199,163 @@ x-content-type-options: nosniff "cartes_bancaires" : false } }, - "customer_error" : null, - "order" : null, + "shipping_address_settings" : { + "autocomplete_allowed" : false + }, + "external_payment_method_data" : null, + "meta_pay_signed_container_context" : null, + "apple_pay_preference" : "enabled", + "lpm_promotions" : null, + "merchant_country" : "US", + "google_pay_preference" : "enabled", + "paypal_express_config" : { + "client_id" : null, + "paypal_merchant_id" : null + }, + "experiments_data" : { + "arb_id" : "951dea70-1dd0-41bb-b572-3e74332b6657", + "experiment_metadata" : { + "seed" : "f141acec06c73601adc1c212d38a020b85a1cdd62a3e46835373aeaf676a9090" + }, + "experiment_assignments" : { + "elements_merchant_ui_api_srv" : "control", + "link_popup_webview_option_ios" : "control", + "ocs_buyer_xp_elements_lpm_holdback" : "control" + } + }, "legacy_customer" : null, + "link_settings" : { + "link_enable_webauthn_for_link_popup" : false, + "link_no_code_default_values_recall" : true, + "link_payment_session_context" : null, + "link_consumer_incentive" : null, + "link_default_opt_in" : "NONE", + "link_elements_pageload_sign_up_disabled" : false, + "link_crypto_onramp_bank_upsell" : false, + "link_funding_sources" : [ + + ], + "link_disabled_reasons" : { + "payment_element_payment_method_mode" : [ + "link_not_specified_in_payment_method_types" + ], + "payment_element_passthrough_mode" : [ + "automatic_payment_methods_enabled", + "link_not_enabled_on_payment_config", + "not_gated_into_enable_m2_passthrough_mode" + ] + }, + "link_supported_payment_methods" : [ + + ], + "link_elements_is_crypto_onramp" : false, + "link_payment_element_disabled_by_targeting" : false, + "link_popup_webview_option" : "shared", + "link_targeting_results" : { + "payment_element_passthrough_mode" : null + }, + "link_disable_email_otp" : false, + "link_local_storage_login_enabled" : false, + "link_enable_instant_debits_in_testmode" : false, + "link_global_holdback_on" : false, + "link_session_storage_login_enabled" : false, + "link_payment_element_enable_webauthn_login" : false, + "link_authenticated_change_event_enabled" : false, + "link_bank_onboarding_enabled" : false, + "link_hcaptcha_rqdata" : null, + "link_m2_default_integration_enabled" : false, + "link_financial_incentives_experiment_enabled" : false, + "link_passthrough_mode_enabled" : false, + "link_no_code_default_values_identification" : true, + "link_enable_email_otp_for_link_popup" : false, + "link_pay_button_element_enabled" : true, + "link_crypto_onramp_elements_logout_disabled" : false, + "link_mode" : null, + "link_no_code_default_values_usage" : true, + "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", + "link_crypto_onramp_force_cvc_reverification" : false, + "link_email_verification_login_enabled" : false, + "link_only_for_payment_method_types_enabled" : false, + "link_bank_incentives_enabled" : false, + "link_pm_killswitch_on_in_elements" : false + }, + "passive_captcha" : { + "site_key" : "20000000-ffff-ffff-ffff-000000000002", + "rqdata" : null + }, + "payment_method_specs" : [ + { + "async" : false, + "fields" : [ + + ], + "selector_icon" : { + "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light@3x-46eb8b8a4a252b78d7b4c3b96d4ed7ae.png", + "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light-22cdec0f5f5609554a34fa62fa583f23.svg" + }, + "type" : "amazon_pay", + "next_action_spec" : { + "confirm_response_status_specs" : { + "requires_action" : { + "type" : "redirect_to_url" + } + }, + "post_confirm_handling_pi_status_specs" : { + "requires_action" : { + "type" : "canceled" + }, + "succeeded" : { + "type" : "finished" + } + } + } + }, + { + "async" : false, + "type" : "card", + "fields" : [ + + ] + }, + { + "async" : false, + "fields" : [ + + ], + "type" : "cashapp", + "selector_icon" : { + "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp@3x-a89c5d8d0651cae2a511bb49a6be1cfc.png", + "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp-981164a833e417d28a8ac2684fda2324.svg" + } + } + ], + "prefill_selectors" : { + "default_values" : { + "email" : [ + + ], + "merchant_provides_default_values_on_update" : true + } + }, + "unactivated_payment_method_types" : [ + "cashapp", + "amazon_pay", + "us_bank_account" + ], + "unverified_payment_methods_on_domain" : [ + "apple_pay" + ], + "order" : null, "link_purchase_protections_data" : { "type" : null, "is_eligible" : false }, - "merchant_logo_url" : null, + "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", + "customer" : null, + "klarna_express_config" : { + "klarna_mid" : null + }, + "business_name" : "CI Stuff", "ordered_payment_method_types_and_wallets" : [ "card", "apple_pay", @@ -347,5 +363,6 @@ x-content-type-options: nosniff "google_pay", "amazon_pay", "us_bank_account" - ] + ], + "customer_error" : null } \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdateIgnoresInFlightUpdate/0000_get_v1_elements_sessions.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdateIgnoresInFlightUpdate/0000_get_v1_elements_sessions.tail index 4d08006b568..8b98ddae7f6 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdateIgnoresInFlightUpdate/0000_get_v1_elements_sessions.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdateIgnoresInFlightUpdate/0000_get_v1_elements_sessions.tail @@ -1,22 +1,23 @@ GET -https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?client_default_payment_method=pm_1PiS2zFY0qyl6XeWlMKBbYVV&deferred_intent%5Bamount%5D=1000&deferred_intent%5Bcapture_method%5D=automatic&deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=payment&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ +https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?deferred_intent%5Bamount%5D=1000&deferred_intent%5Bcapture_method%5D=automatic&deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=payment&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ 200 application/json -access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE +access-control-allow-methods: GET, HEAD, PUT, PATCH, POST, DELETE content-security-policy: report-uri https://q.stripe.com/csp-report?p=v1%2Felements%2Fsessions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Server: nginx Cache-Control: no-cache, no-store reporting-endpoints: coop="https://q.stripe.com/coop-report?s=ocs-bapi-srv" +x-wc: A Strict-Transport-Security: max-age=63072000; includeSubDomains; preload cross-origin-opener-policy-report-only: same-origin; report-to="coop" Access-Control-Allow-Origin: * x-stripe-routing-context-priority-tier: api-testmode x-stripe-priority-routing-enabled: true report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=ocs-bapi-srv"}],"include_subdomains":true} -request-id: req_w0TghwPmQVAMub -Content-Length: 14279 +request-id: req_oSIUT1jfofGTDB +Content-Length: 14471 Vary: Origin -Date: Wed, 31 Jul 2024 02:14:20 GMT +Date: Wed, 16 Oct 2024 16:41:03 GMT stripe-version: 2020-08-27 access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required access-control-max-age: 300 @@ -25,128 +26,6 @@ Content-Type: application/json x-content-type-options: nosniff { - "merchant_currency" : "usd", - "meta_pay_signed_container_context" : null, - "link_settings" : { - "link_enable_webauthn_for_link_popup" : false, - "link_no_code_default_values_recall" : false, - "link_default_opt_in" : "NONE", - "link_elements_pageload_sign_up_disabled" : false, - "link_funding_sources_onboarding_unavailable_from_holdback" : [ - - ], - "link_crypto_onramp_bank_upsell" : false, - "link_funding_sources" : [ - - ], - "link_disabled_reasons" : { - "payment_element_payment_method_mode" : [ - "link_not_specified_in_payment_method_types" - ], - "payment_element_passthrough_mode" : [ - "automatic_payment_methods_enabled", - "link_not_enabled_on_payment_config", - "not_gated_into_enable_m2_passthrough_mode" - ] - }, - "link_elements_is_crypto_onramp" : false, - "link_payment_element_disabled_by_targeting" : false, - "link_popup_webview_option" : "shared", - "link_targeting_results" : { - "payment_element_passthrough_mode" : null - }, - "link_disable_email_otp" : false, - "link_local_storage_login_enabled" : false, - "link_enable_instant_debits_in_testmode" : false, - "link_global_holdback_on" : false, - "link_session_storage_login_enabled" : false, - "link_payment_element_enable_webauthn_login" : false, - "link_payment_method_nicknames" : false, - "link_authenticated_change_event_enabled" : false, - "link_bank_onboarding_enabled" : false, - "link_hcaptcha_rqdata" : null, - "link_m2_default_integration_enabled" : false, - "link_financial_incentives_experiment_enabled" : false, - "link_passthrough_mode_enabled" : false, - "link_no_code_default_values_identification" : false, - "link_enable_email_otp_for_link_popup" : false, - "link_pay_button_element_enabled" : true, - "link_crypto_onramp_elements_logout_disabled" : false, - "link_mode" : null, - "link_no_code_default_values_usage" : true, - "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", - "link_crypto_onramp_force_cvc_reverification" : false, - "link_email_verification_login_enabled" : false, - "link_only_for_payment_method_types_enabled" : false, - "link_bank_incentives_enabled" : false, - "link_funding_sources_onboarding_enabled" : [ - - ], - "link_pm_killswitch_on_in_elements" : false - }, - "passive_captcha" : { - "site_key" : "20000000-ffff-ffff-ffff-000000000002", - "rqdata" : null - }, - "payment_method_specs" : [ - { - "async" : false, - "fields" : [ - - ], - "selector_icon" : { - "dark_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_dark@3x-3861df0768196df1a8ed7ed2a9d44d9b.png", - "dark_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_dark-e41f361095e9579a113d8e461ebbe594.svg", - "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light@3x-46eb8b8a4a252b78d7b4c3b96d4ed7ae.png", - "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light-22cdec0f5f5609554a34fa62fa583f23.svg" - }, - "type" : "amazon_pay", - "next_action_spec" : { - "confirm_response_status_specs" : { - "requires_action" : { - "type" : "redirect_to_url" - } - }, - "post_confirm_handling_pi_status_specs" : { - "requires_action" : { - "type" : "canceled" - }, - "succeeded" : { - "type" : "finished" - } - } - } - }, - { - "async" : false, - "type" : "card", - "fields" : [ - - ] - }, - { - "async" : false, - "fields" : [ - - ], - "type" : "cashapp", - "selector_icon" : { - "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp@3x-a89c5d8d0651cae2a511bb49a6be1cfc.png", - "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp-981164a833e417d28a8ac2684fda2324.svg" - } - } - ], - "session_id" : "elements_session_1IbHq1haMRX", - "shipping_address_settings" : { - "autocomplete_allowed" : false - }, - "business_name" : "CI Stuff", - "unverified_payment_methods_on_domain" : [ - "apple_pay" - ], - "apple_pay_preference" : "enabled", - "google_pay_preference" : "enabled", - "merchant_id" : "acct_1G6m1pFY0qyl6XeW", "payment_method_preference" : { "country_code" : "US", "object" : "payment_method_preference", @@ -158,25 +37,20 @@ x-content-type-options: nosniff "us_bank_account" ] }, - "experiments_data" : { - "arb_id" : "898c5db5-5ffd-4c7f-b31f-299ee3a1bec2", - "experiment_assignments" : { - "elements_merchant_ui_api_srv" : "control", - "link_popup_webview_option_ios" : "control" - } - }, + "capability_enabled_card_networks" : [ + "cartes_bancaires" + ], "flags" : { "elements_enable_external_payment_method_wallets_india" : false, "elements_enable_external_payment_method_check" : false, "elements_enable_external_payment_method_fonix" : false, "elements_enable_external_payment_method_au_pay" : false, - "elements_enable_invalid_country_for_pm_error" : false, + "elements_enable_invalid_country_for_pm_error" : true, "elements_enable_external_payment_method_ebt_snap" : false, "elements_enable_external_payment_method_v_pay" : false, + "elements_enable_link_in_passthrough_ece" : true, "elements_enable_passive_hcaptcha_in_payment_method_creation" : true, "legacy_confirmation_tokens" : false, - "link_purchase_protections_enabled" : false, - "enable_third_party_recurring_express_checkout_element" : false, "elements_enable_external_payment_method_swish" : false, "elements_enable_external_payment_method_online_banking_poland" : false, "elements_enable_read_allow_redisplay" : false, @@ -186,15 +60,15 @@ x-content-type-options: nosniff "elements_enable_express_checkout_button_demo_pay" : false, "elements_enable_external_payment_method_tabby" : false, "elements_enable_mx_card_installments" : false, - "link_payment_method_nicknames" : true, + "elements_disable_link_global_holdback_lookup" : false, "elements_enable_external_payment_method_bpay" : false, "elements_enable_external_payment_method_laybuy" : false, "elements_enable_external_payment_method_bluecode" : false, "elements_enable_external_payment_method_grabpay_later" : false, + "elements_disable_klarna_ece_crossborder_validation" : false, "elements_disable_payment_element_card_country_zip_validations" : false, "elements_enable_external_payment_method_billie" : false, "elements_enable_external_payment_method_postfinance" : false, - "elements_enable_use_last_used_payment_method" : false, "elements_enable_external_payment_method_scalapay" : false, "elements_enable_external_payment_method_famipay" : false, "elements_enable_save_for_future_payments_pre_check" : false, @@ -204,12 +78,15 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pay_easy" : false, "elements_enable_external_payment_method_sequra" : false, "elements_spm_set_as_default" : true, - "elements_write_sfu_into_confirm_request" : false, + "payment_element_link_modal_preload_killswitch" : false, "elements_enable_external_payment_method_paidy" : false, "elements_enable_write_allow_redisplay" : false, "elements_enable_external_payment_method_online_banking_thailand" : false, "elements_enable_external_payment_method_momo" : false, "elements_enable_external_payment_method_payrexx" : false, + "elements_appearance_payment_accordion_overrides" : false, + "elements_enable_cb_apple_pay_for_connect_platforms" : true, + "link_purchase_protections_rollout" : false, "elements_enable_external_payment_method_walley" : false, "elements_enable_external_payment_method_mb_way" : false, "elements_enable_external_payment_method_rabbitline_pay" : false, @@ -220,23 +97,23 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pledg" : false, "elements_enable_klarna_unified_offer" : true, "elements_enable_external_payment_method_postepay" : false, + "elements_enable_19_digit_pans" : false, "elements_enable_external_payment_method_aplazo" : false, "elements_enable_external_payment_method_dapp" : false, - "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_atone" : false, "elements_enable_external_payment_method_dankort" : false, "elements_enable_external_payment_method_fawry" : false, "elements_enable_external_payment_method_payconiq" : false, - "elements_enable_external_payment_method_wechat_mobile" : false, + "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_paysafecard" : false, "elements_enable_external_payment_method_eftpos_australia" : false, + "elements_enable_external_payment_method_wechat_mobile" : false, "elements_spm_messages" : false, "elements_enable_external_payment_method_azupay" : false, "ece_apple_pay_payment_request_passthrough" : false, "elements_enable_external_payment_method_online_banking_czech_republic" : false, "elements_enable_external_payment_method_aplazame" : false, "elements_enable_external_payment_method_rakuten_pay" : false, - "elements_luxe_qr_ui_on_web_enabled" : false, "paypal_express_checkout_recurring_support" : false, "elements_enable_external_payment_method_paypo" : false, "elements_enable_external_payment_method_netbanking" : false, @@ -246,33 +123,30 @@ x-content-type-options: nosniff "financial_connections_enable_deferred_intent_flow" : true, "elements_enable_external_payment_method_hands_in" : false, "elements_enable_external_payment_method_younitedpay" : false, - "elements_enable_passive_captcha_on_payment_intent_update" : true, "elements_enable_br_card_installments" : false, "elements_enable_external_payment_method_atome" : false, "elements_enable_external_payment_method_mercado_pago" : false, "elements_enable_external_payment_method_amazon_pay" : false, "elements_enable_external_payment_method_line_pay" : false, "elements_enable_external_payment_method_paytm" : false, - "elements_enable_outer_action_show_upe_wallet" : true, "elements_enable_external_payment_method_catch" : false, "elements_enable_external_payment_method_skrill" : false, "elements_enable_external_payment_method_paypay" : false, + "elements_enable_klarna_express_checkout" : false, "elements_enable_external_payment_method_ratepay" : false, "elements_enable_external_payment_method_sezzle" : false, "elements_enable_external_payment_method_bankaxept" : false, "elements_enable_external_payment_method_satispay" : false, "elements_enable_external_payment_method_dbarai" : false, "elements_enable_external_payment_method_titres_restaurant" : false, + "elements_link_global_holdback_rollout" : false, "elements_enable_external_payment_method_coinbase_pay" : false, "elements_enable_external_payment_method_trustly" : false, - "elements_enable_save_last_used_payment_method" : true, "elements_enable_external_payment_method_kbc" : false, "elements_enable_external_payment_method_bizum" : false, "elements_enable_external_payment_method_gcash" : false, "elements_enable_card_brand_choice_payment_element_link" : true, "elements_enable_external_payment_method_payit" : false, - "elements_enable_payment_element_postal_validation" : true, - "link_doi_ungated_behavior_rollout" : true, "elements_enable_blik" : true, "elements_enable_south_korea_market_underlying_pms" : false, "elements_enable_external_payment_method_girocard" : false, @@ -286,11 +160,12 @@ x-content-type-options: nosniff "elements_enable_link_spm" : true, "elements_spm_max_visible_payment_methods" : false, "elements_disable_link_email_otp" : false, - "cbc_in_link_popup" : false, + "cbc_in_link_popup" : true, "elements_enable_external_payment_method_picpay" : false, "elements_enable_external_payment_method_planpay" : false, "elements_enable_external_payment_method_samsung_pay" : false, "elements_enable_external_payment_method_truelayer" : false, + "elements_enable_link_in_ece_personalization" : false, "elements_enable_passive_captcha" : true, "elements_disable_paypal_express" : false, "elements_disable_recurring_express_checkout_button_amazon_pay" : false, @@ -299,30 +174,22 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_payu" : false, "elements_disable_express_checkout_button_amazon_pay" : false, "elements_enable_external_payment_method_venmo" : false, + "disable_payment_element_if_required_billing_config" : false, + "link_set_active_field_true" : true, "elements_enable_external_payment_method_mondu" : false, "elements_enable_external_payment_method_paydirekt" : false, "elements_stop_move_focus_to_first_errored_field" : true, "elements_enable_external_payment_method_online_banking_slovakia" : false, "elements_enable_external_payment_method_interac" : false, - "link_new_learn_more_modal_enabled" : false, + "link_new_learn_more_modal_enabled" : true, "use_link_views" : false, "elements_enable_external_payment_method_mybank" : false }, - "external_payment_method_data" : null, - "unactivated_payment_method_types" : [ - "cashapp", - "amazon_pay", - "us_bank_account" - ], - "lpm_promotions" : null, - "merchant_country" : "US", - "paypal_express_config" : { - "client_id" : null, - "paypal_merchant_id" : null - }, - "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", - "customer" : null, + "merchant_logo_url" : null, + "session_id" : "elements_session_1TiX6Cxn31P", "account_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_currency" : "usd", "card_brand_choice" : { "eligible" : false, "preferred_networks" : [ @@ -332,20 +199,170 @@ x-content-type-options: nosniff "cartes_bancaires" : false } }, - "customer_error" : null, - "order" : null, + "shipping_address_settings" : { + "autocomplete_allowed" : false + }, + "external_payment_method_data" : null, + "meta_pay_signed_container_context" : null, + "apple_pay_preference" : "enabled", + "lpm_promotions" : null, + "merchant_country" : "US", + "google_pay_preference" : "enabled", + "paypal_express_config" : { + "client_id" : null, + "paypal_merchant_id" : null + }, + "experiments_data" : { + "arb_id" : "c7c428bb-b032-443e-a314-bd2132cc9d6b", + "experiment_metadata" : { + "seed" : "f141acec06c73601adc1c212d38a020b85a1cdd62a3e46835373aeaf676a9090" + }, + "experiment_assignments" : { + "elements_merchant_ui_api_srv" : "control", + "link_popup_webview_option_ios" : "control", + "ocs_buyer_xp_elements_lpm_holdback" : "control" + } + }, "legacy_customer" : null, + "link_settings" : { + "link_enable_webauthn_for_link_popup" : false, + "link_no_code_default_values_recall" : true, + "link_payment_session_context" : null, + "link_consumer_incentive" : null, + "link_default_opt_in" : "NONE", + "link_elements_pageload_sign_up_disabled" : false, + "link_crypto_onramp_bank_upsell" : false, + "link_funding_sources" : [ + + ], + "link_disabled_reasons" : { + "payment_element_payment_method_mode" : [ + "link_not_specified_in_payment_method_types" + ], + "payment_element_passthrough_mode" : [ + "automatic_payment_methods_enabled", + "link_not_enabled_on_payment_config", + "not_gated_into_enable_m2_passthrough_mode" + ] + }, + "link_supported_payment_methods" : [ + + ], + "link_elements_is_crypto_onramp" : false, + "link_payment_element_disabled_by_targeting" : false, + "link_popup_webview_option" : "shared", + "link_targeting_results" : { + "payment_element_passthrough_mode" : null + }, + "link_disable_email_otp" : false, + "link_local_storage_login_enabled" : false, + "link_enable_instant_debits_in_testmode" : false, + "link_global_holdback_on" : false, + "link_session_storage_login_enabled" : false, + "link_payment_element_enable_webauthn_login" : false, + "link_authenticated_change_event_enabled" : false, + "link_bank_onboarding_enabled" : false, + "link_hcaptcha_rqdata" : null, + "link_m2_default_integration_enabled" : false, + "link_financial_incentives_experiment_enabled" : false, + "link_passthrough_mode_enabled" : false, + "link_no_code_default_values_identification" : true, + "link_enable_email_otp_for_link_popup" : false, + "link_pay_button_element_enabled" : true, + "link_crypto_onramp_elements_logout_disabled" : false, + "link_mode" : null, + "link_no_code_default_values_usage" : true, + "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", + "link_crypto_onramp_force_cvc_reverification" : false, + "link_email_verification_login_enabled" : false, + "link_only_for_payment_method_types_enabled" : false, + "link_bank_incentives_enabled" : false, + "link_pm_killswitch_on_in_elements" : false + }, + "passive_captcha" : { + "site_key" : "20000000-ffff-ffff-ffff-000000000002", + "rqdata" : null + }, + "payment_method_specs" : [ + { + "async" : false, + "fields" : [ + + ], + "selector_icon" : { + "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light@3x-46eb8b8a4a252b78d7b4c3b96d4ed7ae.png", + "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light-22cdec0f5f5609554a34fa62fa583f23.svg" + }, + "type" : "amazon_pay", + "next_action_spec" : { + "confirm_response_status_specs" : { + "requires_action" : { + "type" : "redirect_to_url" + } + }, + "post_confirm_handling_pi_status_specs" : { + "requires_action" : { + "type" : "canceled" + }, + "succeeded" : { + "type" : "finished" + } + } + } + }, + { + "async" : false, + "type" : "card", + "fields" : [ + + ] + }, + { + "async" : false, + "fields" : [ + + ], + "type" : "cashapp", + "selector_icon" : { + "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp@3x-a89c5d8d0651cae2a511bb49a6be1cfc.png", + "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp-981164a833e417d28a8ac2684fda2324.svg" + } + } + ], + "prefill_selectors" : { + "default_values" : { + "email" : [ + + ], + "merchant_provides_default_values_on_update" : true + } + }, + "unactivated_payment_method_types" : [ + "cashapp", + "amazon_pay", + "us_bank_account" + ], + "unverified_payment_methods_on_domain" : [ + "apple_pay" + ], + "order" : null, "link_purchase_protections_data" : { "type" : null, "is_eligible" : false }, - "merchant_logo_url" : null, + "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", + "customer" : null, + "klarna_express_config" : { + "klarna_mid" : null + }, + "business_name" : "CI Stuff", "ordered_payment_method_types_and_wallets" : [ "card", "apple_pay", "cashapp", - "google_pay", "amazon_pay", + "google_pay", "us_bank_account" - ] + ], + "customer_error" : null } \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdateIgnoresInFlightUpdate/0001_get_v1_elements_sessions.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdateIgnoresInFlightUpdate/0001_get_v1_elements_sessions.tail index 04c960a0f00..1f6cb9fe606 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdateIgnoresInFlightUpdate/0001_get_v1_elements_sessions.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdateIgnoresInFlightUpdate/0001_get_v1_elements_sessions.tail @@ -1,22 +1,23 @@ GET -https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?client_default_payment_method=pm_1PiS2zFY0qyl6XeWlMKBbYVV&deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=setup&deferred_intent%5Bsetup_future_usage%5D=off_session&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ +https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=setup&deferred_intent%5Bsetup_future_usage%5D=off_session&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ 200 application/json -access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE +access-control-allow-methods: GET, HEAD, PUT, PATCH, POST, DELETE content-security-policy: report-uri https://q.stripe.com/csp-report?p=v1%2Felements%2Fsessions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Server: nginx Cache-Control: no-cache, no-store reporting-endpoints: coop="https://q.stripe.com/coop-report?s=ocs-bapi-srv" +x-wc: A Strict-Transport-Security: max-age=63072000; includeSubDomains; preload cross-origin-opener-policy-report-only: same-origin; report-to="coop" Access-Control-Allow-Origin: * x-stripe-routing-context-priority-tier: api-testmode x-stripe-priority-routing-enabled: true report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=ocs-bapi-srv"}],"include_subdomains":true} -request-id: req_g9LQKqNMx5sKDw -Content-Length: 14413 +request-id: req_LqTgcrSga78YHJ +Content-Length: 14471 Vary: Origin -Date: Wed, 31 Jul 2024 02:14:21 GMT +Date: Wed, 16 Oct 2024 16:41:03 GMT stripe-version: 2020-08-27 access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required access-control-max-age: 300 @@ -25,128 +26,6 @@ Content-Type: application/json x-content-type-options: nosniff { - "merchant_currency" : "usd", - "meta_pay_signed_container_context" : null, - "link_settings" : { - "link_enable_webauthn_for_link_popup" : false, - "link_no_code_default_values_recall" : true, - "link_default_opt_in" : "NONE", - "link_elements_pageload_sign_up_disabled" : false, - "link_funding_sources_onboarding_unavailable_from_holdback" : [ - - ], - "link_crypto_onramp_bank_upsell" : false, - "link_funding_sources" : [ - - ], - "link_disabled_reasons" : { - "payment_element_payment_method_mode" : [ - "link_not_specified_in_payment_method_types" - ], - "payment_element_passthrough_mode" : [ - "automatic_payment_methods_enabled", - "link_not_enabled_on_payment_config", - "not_gated_into_enable_m2_passthrough_mode" - ] - }, - "link_elements_is_crypto_onramp" : false, - "link_payment_element_disabled_by_targeting" : false, - "link_popup_webview_option" : "shared", - "link_targeting_results" : { - "payment_element_passthrough_mode" : null - }, - "link_disable_email_otp" : false, - "link_local_storage_login_enabled" : false, - "link_enable_instant_debits_in_testmode" : false, - "link_global_holdback_on" : false, - "link_session_storage_login_enabled" : false, - "link_payment_element_enable_webauthn_login" : false, - "link_payment_method_nicknames" : false, - "link_authenticated_change_event_enabled" : false, - "link_bank_onboarding_enabled" : false, - "link_hcaptcha_rqdata" : null, - "link_m2_default_integration_enabled" : false, - "link_financial_incentives_experiment_enabled" : false, - "link_passthrough_mode_enabled" : false, - "link_no_code_default_values_identification" : true, - "link_enable_email_otp_for_link_popup" : false, - "link_pay_button_element_enabled" : true, - "link_crypto_onramp_elements_logout_disabled" : false, - "link_mode" : null, - "link_no_code_default_values_usage" : true, - "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", - "link_crypto_onramp_force_cvc_reverification" : false, - "link_email_verification_login_enabled" : false, - "link_only_for_payment_method_types_enabled" : false, - "link_bank_incentives_enabled" : false, - "link_funding_sources_onboarding_enabled" : [ - - ], - "link_pm_killswitch_on_in_elements" : false - }, - "passive_captcha" : { - "site_key" : "20000000-ffff-ffff-ffff-000000000002", - "rqdata" : null - }, - "payment_method_specs" : [ - { - "async" : false, - "fields" : [ - - ], - "selector_icon" : { - "dark_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_dark@3x-3861df0768196df1a8ed7ed2a9d44d9b.png", - "dark_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_dark-e41f361095e9579a113d8e461ebbe594.svg", - "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light@3x-46eb8b8a4a252b78d7b4c3b96d4ed7ae.png", - "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light-22cdec0f5f5609554a34fa62fa583f23.svg" - }, - "type" : "amazon_pay", - "next_action_spec" : { - "confirm_response_status_specs" : { - "requires_action" : { - "type" : "redirect_to_url" - } - }, - "post_confirm_handling_pi_status_specs" : { - "requires_action" : { - "type" : "canceled" - }, - "succeeded" : { - "type" : "finished" - } - } - } - }, - { - "async" : false, - "type" : "card", - "fields" : [ - - ] - }, - { - "async" : false, - "fields" : [ - - ], - "type" : "cashapp", - "selector_icon" : { - "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp@3x-a89c5d8d0651cae2a511bb49a6be1cfc.png", - "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp-981164a833e417d28a8ac2684fda2324.svg" - } - } - ], - "session_id" : "elements_session_17AqJygK1TW", - "shipping_address_settings" : { - "autocomplete_allowed" : false - }, - "business_name" : "CI Stuff", - "unverified_payment_methods_on_domain" : [ - "apple_pay" - ], - "apple_pay_preference" : "enabled", - "google_pay_preference" : "enabled", - "merchant_id" : "acct_1G6m1pFY0qyl6XeW", "payment_method_preference" : { "country_code" : "US", "object" : "payment_method_preference", @@ -158,33 +37,20 @@ x-content-type-options: nosniff "us_bank_account" ] }, - "prefill_selectors" : { - "default_values" : { - "email" : [ - - ], - "merchant_provides_default_values_on_update" : true - } - }, - "experiments_data" : { - "arb_id" : "e9ab2143-9d8e-4b12-9496-ad15128dd5a6", - "experiment_assignments" : { - "elements_merchant_ui_api_srv" : "control", - "link_popup_webview_option_ios" : "control" - } - }, + "capability_enabled_card_networks" : [ + "cartes_bancaires" + ], "flags" : { "elements_enable_external_payment_method_wallets_india" : false, "elements_enable_external_payment_method_check" : false, "elements_enable_external_payment_method_fonix" : false, "elements_enable_external_payment_method_au_pay" : false, - "elements_enable_invalid_country_for_pm_error" : false, + "elements_enable_invalid_country_for_pm_error" : true, "elements_enable_external_payment_method_ebt_snap" : false, "elements_enable_external_payment_method_v_pay" : false, + "elements_enable_link_in_passthrough_ece" : true, "elements_enable_passive_hcaptcha_in_payment_method_creation" : true, "legacy_confirmation_tokens" : false, - "link_purchase_protections_enabled" : false, - "enable_third_party_recurring_express_checkout_element" : false, "elements_enable_external_payment_method_swish" : false, "elements_enable_external_payment_method_online_banking_poland" : false, "elements_enable_read_allow_redisplay" : false, @@ -194,15 +60,15 @@ x-content-type-options: nosniff "elements_enable_express_checkout_button_demo_pay" : false, "elements_enable_external_payment_method_tabby" : false, "elements_enable_mx_card_installments" : false, - "link_payment_method_nicknames" : true, + "elements_disable_link_global_holdback_lookup" : false, "elements_enable_external_payment_method_bpay" : false, "elements_enable_external_payment_method_laybuy" : false, "elements_enable_external_payment_method_bluecode" : false, "elements_enable_external_payment_method_grabpay_later" : false, + "elements_disable_klarna_ece_crossborder_validation" : false, "elements_disable_payment_element_card_country_zip_validations" : false, "elements_enable_external_payment_method_billie" : false, "elements_enable_external_payment_method_postfinance" : false, - "elements_enable_use_last_used_payment_method" : false, "elements_enable_external_payment_method_scalapay" : false, "elements_enable_external_payment_method_famipay" : false, "elements_enable_save_for_future_payments_pre_check" : false, @@ -212,12 +78,15 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pay_easy" : false, "elements_enable_external_payment_method_sequra" : false, "elements_spm_set_as_default" : true, - "elements_write_sfu_into_confirm_request" : false, + "payment_element_link_modal_preload_killswitch" : false, "elements_enable_external_payment_method_paidy" : false, "elements_enable_write_allow_redisplay" : false, "elements_enable_external_payment_method_online_banking_thailand" : false, "elements_enable_external_payment_method_momo" : false, "elements_enable_external_payment_method_payrexx" : false, + "elements_appearance_payment_accordion_overrides" : false, + "elements_enable_cb_apple_pay_for_connect_platforms" : true, + "link_purchase_protections_rollout" : false, "elements_enable_external_payment_method_walley" : false, "elements_enable_external_payment_method_mb_way" : false, "elements_enable_external_payment_method_rabbitline_pay" : false, @@ -228,23 +97,23 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pledg" : false, "elements_enable_klarna_unified_offer" : true, "elements_enable_external_payment_method_postepay" : false, + "elements_enable_19_digit_pans" : false, "elements_enable_external_payment_method_aplazo" : false, "elements_enable_external_payment_method_dapp" : false, - "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_atone" : false, "elements_enable_external_payment_method_dankort" : false, "elements_enable_external_payment_method_fawry" : false, "elements_enable_external_payment_method_payconiq" : false, - "elements_enable_external_payment_method_wechat_mobile" : false, + "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_paysafecard" : false, "elements_enable_external_payment_method_eftpos_australia" : false, + "elements_enable_external_payment_method_wechat_mobile" : false, "elements_spm_messages" : false, "elements_enable_external_payment_method_azupay" : false, "ece_apple_pay_payment_request_passthrough" : false, "elements_enable_external_payment_method_online_banking_czech_republic" : false, "elements_enable_external_payment_method_aplazame" : false, "elements_enable_external_payment_method_rakuten_pay" : false, - "elements_luxe_qr_ui_on_web_enabled" : false, "paypal_express_checkout_recurring_support" : false, "elements_enable_external_payment_method_paypo" : false, "elements_enable_external_payment_method_netbanking" : false, @@ -254,33 +123,30 @@ x-content-type-options: nosniff "financial_connections_enable_deferred_intent_flow" : true, "elements_enable_external_payment_method_hands_in" : false, "elements_enable_external_payment_method_younitedpay" : false, - "elements_enable_passive_captcha_on_payment_intent_update" : true, "elements_enable_br_card_installments" : false, "elements_enable_external_payment_method_atome" : false, "elements_enable_external_payment_method_mercado_pago" : false, "elements_enable_external_payment_method_amazon_pay" : false, "elements_enable_external_payment_method_line_pay" : false, "elements_enable_external_payment_method_paytm" : false, - "elements_enable_outer_action_show_upe_wallet" : true, "elements_enable_external_payment_method_catch" : false, "elements_enable_external_payment_method_skrill" : false, "elements_enable_external_payment_method_paypay" : false, + "elements_enable_klarna_express_checkout" : false, "elements_enable_external_payment_method_ratepay" : false, "elements_enable_external_payment_method_sezzle" : false, "elements_enable_external_payment_method_bankaxept" : false, "elements_enable_external_payment_method_satispay" : false, "elements_enable_external_payment_method_dbarai" : false, "elements_enable_external_payment_method_titres_restaurant" : false, + "elements_link_global_holdback_rollout" : false, "elements_enable_external_payment_method_coinbase_pay" : false, "elements_enable_external_payment_method_trustly" : false, - "elements_enable_save_last_used_payment_method" : true, "elements_enable_external_payment_method_kbc" : false, "elements_enable_external_payment_method_bizum" : false, "elements_enable_external_payment_method_gcash" : false, "elements_enable_card_brand_choice_payment_element_link" : true, "elements_enable_external_payment_method_payit" : false, - "elements_enable_payment_element_postal_validation" : true, - "link_doi_ungated_behavior_rollout" : true, "elements_enable_blik" : true, "elements_enable_south_korea_market_underlying_pms" : false, "elements_enable_external_payment_method_girocard" : false, @@ -294,11 +160,12 @@ x-content-type-options: nosniff "elements_enable_link_spm" : true, "elements_spm_max_visible_payment_methods" : false, "elements_disable_link_email_otp" : false, - "cbc_in_link_popup" : false, + "cbc_in_link_popup" : true, "elements_enable_external_payment_method_picpay" : false, "elements_enable_external_payment_method_planpay" : false, "elements_enable_external_payment_method_samsung_pay" : false, "elements_enable_external_payment_method_truelayer" : false, + "elements_enable_link_in_ece_personalization" : false, "elements_enable_passive_captcha" : true, "elements_disable_paypal_express" : false, "elements_disable_recurring_express_checkout_button_amazon_pay" : false, @@ -307,30 +174,22 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_payu" : false, "elements_disable_express_checkout_button_amazon_pay" : false, "elements_enable_external_payment_method_venmo" : false, + "disable_payment_element_if_required_billing_config" : false, + "link_set_active_field_true" : true, "elements_enable_external_payment_method_mondu" : false, "elements_enable_external_payment_method_paydirekt" : false, "elements_stop_move_focus_to_first_errored_field" : true, "elements_enable_external_payment_method_online_banking_slovakia" : false, "elements_enable_external_payment_method_interac" : false, - "link_new_learn_more_modal_enabled" : false, + "link_new_learn_more_modal_enabled" : true, "use_link_views" : false, "elements_enable_external_payment_method_mybank" : false }, - "external_payment_method_data" : null, - "unactivated_payment_method_types" : [ - "cashapp", - "amazon_pay", - "us_bank_account" - ], - "lpm_promotions" : null, - "merchant_country" : "US", - "paypal_express_config" : { - "client_id" : null, - "paypal_merchant_id" : null - }, - "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", - "customer" : null, + "merchant_logo_url" : null, + "session_id" : "elements_session_1vVSsEfQ7dA", "account_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_currency" : "usd", "card_brand_choice" : { "eligible" : false, "preferred_networks" : [ @@ -340,14 +199,163 @@ x-content-type-options: nosniff "cartes_bancaires" : false } }, - "customer_error" : null, - "order" : null, + "shipping_address_settings" : { + "autocomplete_allowed" : false + }, + "external_payment_method_data" : null, + "meta_pay_signed_container_context" : null, + "apple_pay_preference" : "enabled", + "lpm_promotions" : null, + "merchant_country" : "US", + "google_pay_preference" : "enabled", + "paypal_express_config" : { + "client_id" : null, + "paypal_merchant_id" : null + }, + "experiments_data" : { + "arb_id" : "f2179bdf-786d-4c2a-9ce9-85c85fbfe039", + "experiment_metadata" : { + "seed" : "f141acec06c73601adc1c212d38a020b85a1cdd62a3e46835373aeaf676a9090" + }, + "experiment_assignments" : { + "elements_merchant_ui_api_srv" : "control", + "link_popup_webview_option_ios" : "control", + "ocs_buyer_xp_elements_lpm_holdback" : "control" + } + }, "legacy_customer" : null, + "link_settings" : { + "link_enable_webauthn_for_link_popup" : false, + "link_no_code_default_values_recall" : true, + "link_payment_session_context" : null, + "link_consumer_incentive" : null, + "link_default_opt_in" : "NONE", + "link_elements_pageload_sign_up_disabled" : false, + "link_crypto_onramp_bank_upsell" : false, + "link_funding_sources" : [ + + ], + "link_disabled_reasons" : { + "payment_element_payment_method_mode" : [ + "link_not_specified_in_payment_method_types" + ], + "payment_element_passthrough_mode" : [ + "automatic_payment_methods_enabled", + "link_not_enabled_on_payment_config", + "not_gated_into_enable_m2_passthrough_mode" + ] + }, + "link_supported_payment_methods" : [ + + ], + "link_elements_is_crypto_onramp" : false, + "link_payment_element_disabled_by_targeting" : false, + "link_popup_webview_option" : "shared", + "link_targeting_results" : { + "payment_element_passthrough_mode" : null + }, + "link_disable_email_otp" : false, + "link_local_storage_login_enabled" : false, + "link_enable_instant_debits_in_testmode" : false, + "link_global_holdback_on" : false, + "link_session_storage_login_enabled" : false, + "link_payment_element_enable_webauthn_login" : false, + "link_authenticated_change_event_enabled" : false, + "link_bank_onboarding_enabled" : false, + "link_hcaptcha_rqdata" : null, + "link_m2_default_integration_enabled" : false, + "link_financial_incentives_experiment_enabled" : false, + "link_passthrough_mode_enabled" : false, + "link_no_code_default_values_identification" : true, + "link_enable_email_otp_for_link_popup" : false, + "link_pay_button_element_enabled" : true, + "link_crypto_onramp_elements_logout_disabled" : false, + "link_mode" : null, + "link_no_code_default_values_usage" : true, + "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", + "link_crypto_onramp_force_cvc_reverification" : false, + "link_email_verification_login_enabled" : false, + "link_only_for_payment_method_types_enabled" : false, + "link_bank_incentives_enabled" : false, + "link_pm_killswitch_on_in_elements" : false + }, + "passive_captcha" : { + "site_key" : "20000000-ffff-ffff-ffff-000000000002", + "rqdata" : null + }, + "payment_method_specs" : [ + { + "async" : false, + "fields" : [ + + ], + "selector_icon" : { + "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light@3x-46eb8b8a4a252b78d7b4c3b96d4ed7ae.png", + "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light-22cdec0f5f5609554a34fa62fa583f23.svg" + }, + "type" : "amazon_pay", + "next_action_spec" : { + "confirm_response_status_specs" : { + "requires_action" : { + "type" : "redirect_to_url" + } + }, + "post_confirm_handling_pi_status_specs" : { + "requires_action" : { + "type" : "canceled" + }, + "succeeded" : { + "type" : "finished" + } + } + } + }, + { + "async" : false, + "type" : "card", + "fields" : [ + + ] + }, + { + "async" : false, + "fields" : [ + + ], + "type" : "cashapp", + "selector_icon" : { + "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp@3x-a89c5d8d0651cae2a511bb49a6be1cfc.png", + "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp-981164a833e417d28a8ac2684fda2324.svg" + } + } + ], + "prefill_selectors" : { + "default_values" : { + "email" : [ + + ], + "merchant_provides_default_values_on_update" : true + } + }, + "unactivated_payment_method_types" : [ + "cashapp", + "amazon_pay", + "us_bank_account" + ], + "unverified_payment_methods_on_domain" : [ + "apple_pay" + ], + "order" : null, "link_purchase_protections_data" : { "type" : null, "is_eligible" : false }, - "merchant_logo_url" : null, + "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", + "customer" : null, + "klarna_express_config" : { + "klarna_mid" : null + }, + "business_name" : "CI Stuff", "ordered_payment_method_types_and_wallets" : [ "card", "apple_pay", @@ -355,5 +363,6 @@ x-content-type-options: nosniff "google_pay", "amazon_pay", "us_bank_account" - ] + ], + "customer_error" : null } \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdateIgnoresInFlightUpdate/0002_get_v1_elements_sessions.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdateIgnoresInFlightUpdate/0002_get_v1_elements_sessions.tail index b02cf4c0101..bbad4d46b7c 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdateIgnoresInFlightUpdate/0002_get_v1_elements_sessions.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetAPITest/testUpdateIgnoresInFlightUpdate/0002_get_v1_elements_sessions.tail @@ -1,22 +1,23 @@ GET -https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?client_default_payment_method=pm_1PiS2zFY0qyl6XeWlMKBbYVV&deferred_intent%5Bamount%5D=1000&deferred_intent%5Bcapture_method%5D=automatic&deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=payment&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ +https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?deferred_intent%5Bamount%5D=1000&deferred_intent%5Bcapture_method%5D=automatic&deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=payment&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ 200 application/json -access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE +access-control-allow-methods: GET, HEAD, PUT, PATCH, POST, DELETE content-security-policy: report-uri https://q.stripe.com/csp-report?p=v1%2Felements%2Fsessions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Server: nginx Cache-Control: no-cache, no-store reporting-endpoints: coop="https://q.stripe.com/coop-report?s=ocs-bapi-srv" +x-wc: A Strict-Transport-Security: max-age=63072000; includeSubDomains; preload cross-origin-opener-policy-report-only: same-origin; report-to="coop" Access-Control-Allow-Origin: * x-stripe-routing-context-priority-tier: api-testmode x-stripe-priority-routing-enabled: true report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=ocs-bapi-srv"}],"include_subdomains":true} -request-id: req_FhHptwDSTA7LBa -Content-Length: 14279 +request-id: req_m0ocGNaimS8lYB +Content-Length: 14471 Vary: Origin -Date: Wed, 31 Jul 2024 02:14:21 GMT +Date: Wed, 16 Oct 2024 16:41:03 GMT stripe-version: 2020-08-27 access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required access-control-max-age: 300 @@ -25,158 +26,31 @@ Content-Type: application/json x-content-type-options: nosniff { - "merchant_currency" : "usd", - "meta_pay_signed_container_context" : null, - "link_settings" : { - "link_enable_webauthn_for_link_popup" : false, - "link_no_code_default_values_recall" : false, - "link_default_opt_in" : "NONE", - "link_elements_pageload_sign_up_disabled" : false, - "link_funding_sources_onboarding_unavailable_from_holdback" : [ - - ], - "link_crypto_onramp_bank_upsell" : false, - "link_funding_sources" : [ - - ], - "link_disabled_reasons" : { - "payment_element_payment_method_mode" : [ - "link_not_specified_in_payment_method_types" - ], - "payment_element_passthrough_mode" : [ - "automatic_payment_methods_enabled", - "link_not_enabled_on_payment_config", - "not_gated_into_enable_m2_passthrough_mode" - ] - }, - "link_elements_is_crypto_onramp" : false, - "link_payment_element_disabled_by_targeting" : false, - "link_popup_webview_option" : "shared", - "link_targeting_results" : { - "payment_element_passthrough_mode" : null - }, - "link_disable_email_otp" : false, - "link_local_storage_login_enabled" : false, - "link_enable_instant_debits_in_testmode" : false, - "link_global_holdback_on" : false, - "link_session_storage_login_enabled" : false, - "link_payment_element_enable_webauthn_login" : false, - "link_payment_method_nicknames" : false, - "link_authenticated_change_event_enabled" : false, - "link_bank_onboarding_enabled" : false, - "link_hcaptcha_rqdata" : null, - "link_m2_default_integration_enabled" : false, - "link_financial_incentives_experiment_enabled" : false, - "link_passthrough_mode_enabled" : false, - "link_no_code_default_values_identification" : false, - "link_enable_email_otp_for_link_popup" : false, - "link_pay_button_element_enabled" : true, - "link_crypto_onramp_elements_logout_disabled" : false, - "link_mode" : null, - "link_no_code_default_values_usage" : true, - "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", - "link_crypto_onramp_force_cvc_reverification" : false, - "link_email_verification_login_enabled" : false, - "link_only_for_payment_method_types_enabled" : false, - "link_bank_incentives_enabled" : false, - "link_funding_sources_onboarding_enabled" : [ - - ], - "link_pm_killswitch_on_in_elements" : false - }, - "passive_captcha" : { - "site_key" : "20000000-ffff-ffff-ffff-000000000002", - "rqdata" : null - }, - "payment_method_specs" : [ - { - "async" : false, - "fields" : [ - - ], - "selector_icon" : { - "dark_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_dark@3x-3861df0768196df1a8ed7ed2a9d44d9b.png", - "dark_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_dark-e41f361095e9579a113d8e461ebbe594.svg", - "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light@3x-46eb8b8a4a252b78d7b4c3b96d4ed7ae.png", - "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light-22cdec0f5f5609554a34fa62fa583f23.svg" - }, - "type" : "amazon_pay", - "next_action_spec" : { - "confirm_response_status_specs" : { - "requires_action" : { - "type" : "redirect_to_url" - } - }, - "post_confirm_handling_pi_status_specs" : { - "requires_action" : { - "type" : "canceled" - }, - "succeeded" : { - "type" : "finished" - } - } - } - }, - { - "async" : false, - "type" : "card", - "fields" : [ - - ] - }, - { - "async" : false, - "fields" : [ - - ], - "type" : "cashapp", - "selector_icon" : { - "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp@3x-a89c5d8d0651cae2a511bb49a6be1cfc.png", - "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp-981164a833e417d28a8ac2684fda2324.svg" - } - } - ], - "session_id" : "elements_session_1QjCOq0aJVe", - "shipping_address_settings" : { - "autocomplete_allowed" : false - }, - "business_name" : "CI Stuff", - "unverified_payment_methods_on_domain" : [ - "apple_pay" - ], - "apple_pay_preference" : "enabled", - "google_pay_preference" : "enabled", - "merchant_id" : "acct_1G6m1pFY0qyl6XeW", "payment_method_preference" : { "country_code" : "US", "object" : "payment_method_preference", "type" : "deferred_intent", "ordered_payment_method_types" : [ "card", - "cashapp", "amazon_pay", + "cashapp", "us_bank_account" ] }, - "experiments_data" : { - "arb_id" : "82ab6274-81c8-4648-b78f-d2ee7086bc03", - "experiment_assignments" : { - "elements_merchant_ui_api_srv" : "control", - "link_popup_webview_option_ios" : "control" - } - }, + "capability_enabled_card_networks" : [ + "cartes_bancaires" + ], "flags" : { "elements_enable_external_payment_method_wallets_india" : false, "elements_enable_external_payment_method_check" : false, "elements_enable_external_payment_method_fonix" : false, "elements_enable_external_payment_method_au_pay" : false, - "elements_enable_invalid_country_for_pm_error" : false, + "elements_enable_invalid_country_for_pm_error" : true, "elements_enable_external_payment_method_ebt_snap" : false, "elements_enable_external_payment_method_v_pay" : false, + "elements_enable_link_in_passthrough_ece" : true, "elements_enable_passive_hcaptcha_in_payment_method_creation" : true, "legacy_confirmation_tokens" : false, - "link_purchase_protections_enabled" : false, - "enable_third_party_recurring_express_checkout_element" : false, "elements_enable_external_payment_method_swish" : false, "elements_enable_external_payment_method_online_banking_poland" : false, "elements_enable_read_allow_redisplay" : false, @@ -186,15 +60,15 @@ x-content-type-options: nosniff "elements_enable_express_checkout_button_demo_pay" : false, "elements_enable_external_payment_method_tabby" : false, "elements_enable_mx_card_installments" : false, - "link_payment_method_nicknames" : true, + "elements_disable_link_global_holdback_lookup" : false, "elements_enable_external_payment_method_bpay" : false, "elements_enable_external_payment_method_laybuy" : false, "elements_enable_external_payment_method_bluecode" : false, "elements_enable_external_payment_method_grabpay_later" : false, + "elements_disable_klarna_ece_crossborder_validation" : false, "elements_disable_payment_element_card_country_zip_validations" : false, "elements_enable_external_payment_method_billie" : false, "elements_enable_external_payment_method_postfinance" : false, - "elements_enable_use_last_used_payment_method" : false, "elements_enable_external_payment_method_scalapay" : false, "elements_enable_external_payment_method_famipay" : false, "elements_enable_save_for_future_payments_pre_check" : false, @@ -204,12 +78,15 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pay_easy" : false, "elements_enable_external_payment_method_sequra" : false, "elements_spm_set_as_default" : true, - "elements_write_sfu_into_confirm_request" : false, + "payment_element_link_modal_preload_killswitch" : false, "elements_enable_external_payment_method_paidy" : false, "elements_enable_write_allow_redisplay" : false, "elements_enable_external_payment_method_online_banking_thailand" : false, "elements_enable_external_payment_method_momo" : false, "elements_enable_external_payment_method_payrexx" : false, + "elements_appearance_payment_accordion_overrides" : false, + "elements_enable_cb_apple_pay_for_connect_platforms" : true, + "link_purchase_protections_rollout" : false, "elements_enable_external_payment_method_walley" : false, "elements_enable_external_payment_method_mb_way" : false, "elements_enable_external_payment_method_rabbitline_pay" : false, @@ -220,23 +97,23 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pledg" : false, "elements_enable_klarna_unified_offer" : true, "elements_enable_external_payment_method_postepay" : false, + "elements_enable_19_digit_pans" : false, "elements_enable_external_payment_method_aplazo" : false, "elements_enable_external_payment_method_dapp" : false, - "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_atone" : false, "elements_enable_external_payment_method_dankort" : false, "elements_enable_external_payment_method_fawry" : false, "elements_enable_external_payment_method_payconiq" : false, - "elements_enable_external_payment_method_wechat_mobile" : false, + "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_paysafecard" : false, "elements_enable_external_payment_method_eftpos_australia" : false, + "elements_enable_external_payment_method_wechat_mobile" : false, "elements_spm_messages" : false, "elements_enable_external_payment_method_azupay" : false, "ece_apple_pay_payment_request_passthrough" : false, "elements_enable_external_payment_method_online_banking_czech_republic" : false, "elements_enable_external_payment_method_aplazame" : false, "elements_enable_external_payment_method_rakuten_pay" : false, - "elements_luxe_qr_ui_on_web_enabled" : false, "paypal_express_checkout_recurring_support" : false, "elements_enable_external_payment_method_paypo" : false, "elements_enable_external_payment_method_netbanking" : false, @@ -246,33 +123,30 @@ x-content-type-options: nosniff "financial_connections_enable_deferred_intent_flow" : true, "elements_enable_external_payment_method_hands_in" : false, "elements_enable_external_payment_method_younitedpay" : false, - "elements_enable_passive_captcha_on_payment_intent_update" : true, "elements_enable_br_card_installments" : false, "elements_enable_external_payment_method_atome" : false, "elements_enable_external_payment_method_mercado_pago" : false, "elements_enable_external_payment_method_amazon_pay" : false, "elements_enable_external_payment_method_line_pay" : false, "elements_enable_external_payment_method_paytm" : false, - "elements_enable_outer_action_show_upe_wallet" : true, "elements_enable_external_payment_method_catch" : false, "elements_enable_external_payment_method_skrill" : false, "elements_enable_external_payment_method_paypay" : false, + "elements_enable_klarna_express_checkout" : false, "elements_enable_external_payment_method_ratepay" : false, "elements_enable_external_payment_method_sezzle" : false, "elements_enable_external_payment_method_bankaxept" : false, "elements_enable_external_payment_method_satispay" : false, "elements_enable_external_payment_method_dbarai" : false, "elements_enable_external_payment_method_titres_restaurant" : false, + "elements_link_global_holdback_rollout" : false, "elements_enable_external_payment_method_coinbase_pay" : false, "elements_enable_external_payment_method_trustly" : false, - "elements_enable_save_last_used_payment_method" : true, "elements_enable_external_payment_method_kbc" : false, "elements_enable_external_payment_method_bizum" : false, "elements_enable_external_payment_method_gcash" : false, "elements_enable_card_brand_choice_payment_element_link" : true, "elements_enable_external_payment_method_payit" : false, - "elements_enable_payment_element_postal_validation" : true, - "link_doi_ungated_behavior_rollout" : true, "elements_enable_blik" : true, "elements_enable_south_korea_market_underlying_pms" : false, "elements_enable_external_payment_method_girocard" : false, @@ -286,11 +160,12 @@ x-content-type-options: nosniff "elements_enable_link_spm" : true, "elements_spm_max_visible_payment_methods" : false, "elements_disable_link_email_otp" : false, - "cbc_in_link_popup" : false, + "cbc_in_link_popup" : true, "elements_enable_external_payment_method_picpay" : false, "elements_enable_external_payment_method_planpay" : false, "elements_enable_external_payment_method_samsung_pay" : false, "elements_enable_external_payment_method_truelayer" : false, + "elements_enable_link_in_ece_personalization" : false, "elements_enable_passive_captcha" : true, "elements_disable_paypal_express" : false, "elements_disable_recurring_express_checkout_button_amazon_pay" : false, @@ -299,30 +174,22 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_payu" : false, "elements_disable_express_checkout_button_amazon_pay" : false, "elements_enable_external_payment_method_venmo" : false, + "disable_payment_element_if_required_billing_config" : false, + "link_set_active_field_true" : true, "elements_enable_external_payment_method_mondu" : false, "elements_enable_external_payment_method_paydirekt" : false, "elements_stop_move_focus_to_first_errored_field" : true, "elements_enable_external_payment_method_online_banking_slovakia" : false, "elements_enable_external_payment_method_interac" : false, - "link_new_learn_more_modal_enabled" : false, + "link_new_learn_more_modal_enabled" : true, "use_link_views" : false, "elements_enable_external_payment_method_mybank" : false }, - "external_payment_method_data" : null, - "unactivated_payment_method_types" : [ - "cashapp", - "amazon_pay", - "us_bank_account" - ], - "lpm_promotions" : null, - "merchant_country" : "US", - "paypal_express_config" : { - "client_id" : null, - "paypal_merchant_id" : null - }, - "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", - "customer" : null, + "merchant_logo_url" : null, + "session_id" : "elements_session_1MeSeC6Puz8", "account_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_currency" : "usd", "card_brand_choice" : { "eligible" : false, "preferred_networks" : [ @@ -332,20 +199,170 @@ x-content-type-options: nosniff "cartes_bancaires" : false } }, - "customer_error" : null, - "order" : null, + "shipping_address_settings" : { + "autocomplete_allowed" : false + }, + "external_payment_method_data" : null, + "meta_pay_signed_container_context" : null, + "apple_pay_preference" : "enabled", + "lpm_promotions" : null, + "merchant_country" : "US", + "google_pay_preference" : "enabled", + "paypal_express_config" : { + "client_id" : null, + "paypal_merchant_id" : null + }, + "experiments_data" : { + "arb_id" : "9cdddbbe-f3d8-4eb4-9e4d-f07ed8a42d70", + "experiment_metadata" : { + "seed" : "f141acec06c73601adc1c212d38a020b85a1cdd62a3e46835373aeaf676a9090" + }, + "experiment_assignments" : { + "elements_merchant_ui_api_srv" : "control", + "link_popup_webview_option_ios" : "control", + "ocs_buyer_xp_elements_lpm_holdback" : "control" + } + }, "legacy_customer" : null, + "link_settings" : { + "link_enable_webauthn_for_link_popup" : false, + "link_no_code_default_values_recall" : true, + "link_payment_session_context" : null, + "link_consumer_incentive" : null, + "link_default_opt_in" : "NONE", + "link_elements_pageload_sign_up_disabled" : false, + "link_crypto_onramp_bank_upsell" : false, + "link_funding_sources" : [ + + ], + "link_disabled_reasons" : { + "payment_element_payment_method_mode" : [ + "link_not_specified_in_payment_method_types" + ], + "payment_element_passthrough_mode" : [ + "automatic_payment_methods_enabled", + "link_not_enabled_on_payment_config", + "not_gated_into_enable_m2_passthrough_mode" + ] + }, + "link_supported_payment_methods" : [ + + ], + "link_elements_is_crypto_onramp" : false, + "link_payment_element_disabled_by_targeting" : false, + "link_popup_webview_option" : "shared", + "link_targeting_results" : { + "payment_element_passthrough_mode" : null + }, + "link_disable_email_otp" : false, + "link_local_storage_login_enabled" : false, + "link_enable_instant_debits_in_testmode" : false, + "link_global_holdback_on" : false, + "link_session_storage_login_enabled" : false, + "link_payment_element_enable_webauthn_login" : false, + "link_authenticated_change_event_enabled" : false, + "link_bank_onboarding_enabled" : false, + "link_hcaptcha_rqdata" : null, + "link_m2_default_integration_enabled" : false, + "link_financial_incentives_experiment_enabled" : false, + "link_passthrough_mode_enabled" : false, + "link_no_code_default_values_identification" : true, + "link_enable_email_otp_for_link_popup" : false, + "link_pay_button_element_enabled" : true, + "link_crypto_onramp_elements_logout_disabled" : false, + "link_mode" : null, + "link_no_code_default_values_usage" : true, + "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", + "link_crypto_onramp_force_cvc_reverification" : false, + "link_email_verification_login_enabled" : false, + "link_only_for_payment_method_types_enabled" : false, + "link_bank_incentives_enabled" : false, + "link_pm_killswitch_on_in_elements" : false + }, + "passive_captcha" : { + "site_key" : "20000000-ffff-ffff-ffff-000000000002", + "rqdata" : null + }, + "payment_method_specs" : [ + { + "async" : false, + "fields" : [ + + ], + "selector_icon" : { + "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light@3x-46eb8b8a4a252b78d7b4c3b96d4ed7ae.png", + "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light-22cdec0f5f5609554a34fa62fa583f23.svg" + }, + "type" : "amazon_pay", + "next_action_spec" : { + "confirm_response_status_specs" : { + "requires_action" : { + "type" : "redirect_to_url" + } + }, + "post_confirm_handling_pi_status_specs" : { + "requires_action" : { + "type" : "canceled" + }, + "succeeded" : { + "type" : "finished" + } + } + } + }, + { + "async" : false, + "type" : "card", + "fields" : [ + + ] + }, + { + "async" : false, + "fields" : [ + + ], + "type" : "cashapp", + "selector_icon" : { + "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp@3x-a89c5d8d0651cae2a511bb49a6be1cfc.png", + "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp-981164a833e417d28a8ac2684fda2324.svg" + } + } + ], + "prefill_selectors" : { + "default_values" : { + "email" : [ + + ], + "merchant_provides_default_values_on_update" : true + } + }, + "unactivated_payment_method_types" : [ + "amazon_pay", + "cashapp", + "us_bank_account" + ], + "unverified_payment_methods_on_domain" : [ + "apple_pay" + ], + "order" : null, "link_purchase_protections_data" : { "type" : null, "is_eligible" : false }, - "merchant_logo_url" : null, + "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", + "customer" : null, + "klarna_express_config" : { + "klarna_mid" : null + }, + "business_name" : "CI Stuff", "ordered_payment_method_types_and_wallets" : [ "card", "apple_pay", + "amazon_pay", "cashapp", "google_pay", - "amazon_pay", "us_bank_account" - ] + ], + "customer_error" : null } \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testLoadPerformance/0000_get_v1_elements_sessions.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testLoadPerformance/0000_get_v1_elements_sessions.tail index aa941b15ace..94bfdbba6f1 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testLoadPerformance/0000_get_v1_elements_sessions.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testLoadPerformance/0000_get_v1_elements_sessions.tail @@ -1,22 +1,23 @@ GET -https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?client_default_payment_method=pm_1PiS2zFY0qyl6XeWlMKBbYVV&deferred_intent%5Bamount%5D=1050&deferred_intent%5Bcapture_method%5D=automatic&deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=payment&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ +https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?deferred_intent%5Bamount%5D=1050&deferred_intent%5Bcapture_method%5D=automatic&deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=payment&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ 200 application/json -access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE +access-control-allow-methods: GET, HEAD, PUT, PATCH, POST, DELETE content-security-policy: report-uri https://q.stripe.com/csp-report?p=v1%2Felements%2Fsessions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Server: nginx Cache-Control: no-cache, no-store reporting-endpoints: coop="https://q.stripe.com/coop-report?s=ocs-bapi-srv" +x-wc: A Strict-Transport-Security: max-age=63072000; includeSubDomains; preload cross-origin-opener-policy-report-only: same-origin; report-to="coop" Access-Control-Allow-Origin: * x-stripe-routing-context-priority-tier: api-testmode x-stripe-priority-routing-enabled: true report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=ocs-bapi-srv"}],"include_subdomains":true} -request-id: req_OzQ9hBiIkcR1xk -Content-Length: 14415 +request-id: req_x3yMUHHJZGGBym +Content-Length: 14471 Vary: Origin -Date: Wed, 31 Jul 2024 02:14:33 GMT +Date: Wed, 16 Oct 2024 17:05:18 GMT stripe-version: 2020-08-27 access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required access-control-max-age: 300 @@ -25,166 +26,31 @@ Content-Type: application/json x-content-type-options: nosniff { - "merchant_currency" : "usd", - "meta_pay_signed_container_context" : null, - "link_settings" : { - "link_enable_webauthn_for_link_popup" : false, - "link_no_code_default_values_recall" : true, - "link_default_opt_in" : "NONE", - "link_elements_pageload_sign_up_disabled" : false, - "link_funding_sources_onboarding_unavailable_from_holdback" : [ - - ], - "link_crypto_onramp_bank_upsell" : false, - "link_funding_sources" : [ - - ], - "link_disabled_reasons" : { - "payment_element_payment_method_mode" : [ - "link_not_specified_in_payment_method_types" - ], - "payment_element_passthrough_mode" : [ - "automatic_payment_methods_enabled", - "link_not_enabled_on_payment_config", - "not_gated_into_enable_m2_passthrough_mode" - ] - }, - "link_elements_is_crypto_onramp" : false, - "link_payment_element_disabled_by_targeting" : false, - "link_popup_webview_option" : "shared", - "link_targeting_results" : { - "payment_element_passthrough_mode" : null - }, - "link_disable_email_otp" : false, - "link_local_storage_login_enabled" : false, - "link_enable_instant_debits_in_testmode" : false, - "link_global_holdback_on" : false, - "link_session_storage_login_enabled" : false, - "link_payment_element_enable_webauthn_login" : false, - "link_payment_method_nicknames" : false, - "link_authenticated_change_event_enabled" : false, - "link_bank_onboarding_enabled" : false, - "link_hcaptcha_rqdata" : null, - "link_m2_default_integration_enabled" : false, - "link_financial_incentives_experiment_enabled" : false, - "link_passthrough_mode_enabled" : false, - "link_no_code_default_values_identification" : false, - "link_enable_email_otp_for_link_popup" : false, - "link_pay_button_element_enabled" : true, - "link_crypto_onramp_elements_logout_disabled" : false, - "link_mode" : null, - "link_no_code_default_values_usage" : false, - "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", - "link_crypto_onramp_force_cvc_reverification" : false, - "link_email_verification_login_enabled" : false, - "link_only_for_payment_method_types_enabled" : false, - "link_bank_incentives_enabled" : false, - "link_funding_sources_onboarding_enabled" : [ - - ], - "link_pm_killswitch_on_in_elements" : false - }, - "passive_captcha" : { - "site_key" : "20000000-ffff-ffff-ffff-000000000002", - "rqdata" : null - }, - "payment_method_specs" : [ - { - "async" : false, - "fields" : [ - - ], - "selector_icon" : { - "dark_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_dark@3x-3861df0768196df1a8ed7ed2a9d44d9b.png", - "dark_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_dark-e41f361095e9579a113d8e461ebbe594.svg", - "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light@3x-46eb8b8a4a252b78d7b4c3b96d4ed7ae.png", - "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light-22cdec0f5f5609554a34fa62fa583f23.svg" - }, - "type" : "amazon_pay", - "next_action_spec" : { - "confirm_response_status_specs" : { - "requires_action" : { - "type" : "redirect_to_url" - } - }, - "post_confirm_handling_pi_status_specs" : { - "requires_action" : { - "type" : "canceled" - }, - "succeeded" : { - "type" : "finished" - } - } - } - }, - { - "async" : false, - "type" : "card", - "fields" : [ - - ] - }, - { - "async" : false, - "fields" : [ - - ], - "type" : "cashapp", - "selector_icon" : { - "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp@3x-a89c5d8d0651cae2a511bb49a6be1cfc.png", - "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp-981164a833e417d28a8ac2684fda2324.svg" - } - } - ], - "session_id" : "elements_session_1fkerEcrrLx", - "shipping_address_settings" : { - "autocomplete_allowed" : false - }, - "business_name" : "CI Stuff", - "unverified_payment_methods_on_domain" : [ - "apple_pay" - ], - "apple_pay_preference" : "enabled", - "google_pay_preference" : "enabled", - "merchant_id" : "acct_1G6m1pFY0qyl6XeW", "payment_method_preference" : { "country_code" : "US", "object" : "payment_method_preference", "type" : "deferred_intent", "ordered_payment_method_types" : [ "card", - "cashapp", "amazon_pay", + "cashapp", "us_bank_account" ] }, - "prefill_selectors" : { - "default_values" : { - "email" : [ - - ], - "merchant_provides_default_values_on_update" : true - } - }, - "experiments_data" : { - "arb_id" : "ab7011a2-06eb-457e-b233-4bcc74172c0a", - "experiment_assignments" : { - "elements_merchant_ui_api_srv" : "control", - "link_popup_webview_option_ios" : "control" - } - }, + "capability_enabled_card_networks" : [ + "cartes_bancaires" + ], "flags" : { "elements_enable_external_payment_method_wallets_india" : false, "elements_enable_external_payment_method_check" : false, "elements_enable_external_payment_method_fonix" : false, "elements_enable_external_payment_method_au_pay" : false, - "elements_enable_invalid_country_for_pm_error" : false, + "elements_enable_invalid_country_for_pm_error" : true, "elements_enable_external_payment_method_ebt_snap" : false, "elements_enable_external_payment_method_v_pay" : false, + "elements_enable_link_in_passthrough_ece" : true, "elements_enable_passive_hcaptcha_in_payment_method_creation" : true, "legacy_confirmation_tokens" : false, - "link_purchase_protections_enabled" : false, - "enable_third_party_recurring_express_checkout_element" : false, "elements_enable_external_payment_method_swish" : false, "elements_enable_external_payment_method_online_banking_poland" : false, "elements_enable_read_allow_redisplay" : false, @@ -194,15 +60,15 @@ x-content-type-options: nosniff "elements_enable_express_checkout_button_demo_pay" : false, "elements_enable_external_payment_method_tabby" : false, "elements_enable_mx_card_installments" : false, - "link_payment_method_nicknames" : true, + "elements_disable_link_global_holdback_lookup" : false, "elements_enable_external_payment_method_bpay" : false, "elements_enable_external_payment_method_laybuy" : false, "elements_enable_external_payment_method_bluecode" : false, "elements_enable_external_payment_method_grabpay_later" : false, + "elements_disable_klarna_ece_crossborder_validation" : false, "elements_disable_payment_element_card_country_zip_validations" : false, "elements_enable_external_payment_method_billie" : false, "elements_enable_external_payment_method_postfinance" : false, - "elements_enable_use_last_used_payment_method" : false, "elements_enable_external_payment_method_scalapay" : false, "elements_enable_external_payment_method_famipay" : false, "elements_enable_save_for_future_payments_pre_check" : false, @@ -212,12 +78,15 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pay_easy" : false, "elements_enable_external_payment_method_sequra" : false, "elements_spm_set_as_default" : true, - "elements_write_sfu_into_confirm_request" : false, + "payment_element_link_modal_preload_killswitch" : false, "elements_enable_external_payment_method_paidy" : false, "elements_enable_write_allow_redisplay" : false, "elements_enable_external_payment_method_online_banking_thailand" : false, "elements_enable_external_payment_method_momo" : false, "elements_enable_external_payment_method_payrexx" : false, + "elements_appearance_payment_accordion_overrides" : false, + "elements_enable_cb_apple_pay_for_connect_platforms" : true, + "link_purchase_protections_rollout" : false, "elements_enable_external_payment_method_walley" : false, "elements_enable_external_payment_method_mb_way" : false, "elements_enable_external_payment_method_rabbitline_pay" : false, @@ -228,23 +97,23 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pledg" : false, "elements_enable_klarna_unified_offer" : true, "elements_enable_external_payment_method_postepay" : false, + "elements_enable_19_digit_pans" : false, "elements_enable_external_payment_method_aplazo" : false, "elements_enable_external_payment_method_dapp" : false, - "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_atone" : false, "elements_enable_external_payment_method_dankort" : false, "elements_enable_external_payment_method_fawry" : false, "elements_enable_external_payment_method_payconiq" : false, - "elements_enable_external_payment_method_wechat_mobile" : false, + "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_paysafecard" : false, "elements_enable_external_payment_method_eftpos_australia" : false, + "elements_enable_external_payment_method_wechat_mobile" : false, "elements_spm_messages" : false, "elements_enable_external_payment_method_azupay" : false, "ece_apple_pay_payment_request_passthrough" : false, "elements_enable_external_payment_method_online_banking_czech_republic" : false, "elements_enable_external_payment_method_aplazame" : false, "elements_enable_external_payment_method_rakuten_pay" : false, - "elements_luxe_qr_ui_on_web_enabled" : false, "paypal_express_checkout_recurring_support" : false, "elements_enable_external_payment_method_paypo" : false, "elements_enable_external_payment_method_netbanking" : false, @@ -254,33 +123,30 @@ x-content-type-options: nosniff "financial_connections_enable_deferred_intent_flow" : true, "elements_enable_external_payment_method_hands_in" : false, "elements_enable_external_payment_method_younitedpay" : false, - "elements_enable_passive_captcha_on_payment_intent_update" : true, "elements_enable_br_card_installments" : false, "elements_enable_external_payment_method_atome" : false, "elements_enable_external_payment_method_mercado_pago" : false, "elements_enable_external_payment_method_amazon_pay" : false, "elements_enable_external_payment_method_line_pay" : false, "elements_enable_external_payment_method_paytm" : false, - "elements_enable_outer_action_show_upe_wallet" : true, "elements_enable_external_payment_method_catch" : false, "elements_enable_external_payment_method_skrill" : false, "elements_enable_external_payment_method_paypay" : false, + "elements_enable_klarna_express_checkout" : false, "elements_enable_external_payment_method_ratepay" : false, "elements_enable_external_payment_method_sezzle" : false, "elements_enable_external_payment_method_bankaxept" : false, "elements_enable_external_payment_method_satispay" : false, "elements_enable_external_payment_method_dbarai" : false, "elements_enable_external_payment_method_titres_restaurant" : false, + "elements_link_global_holdback_rollout" : false, "elements_enable_external_payment_method_coinbase_pay" : false, "elements_enable_external_payment_method_trustly" : false, - "elements_enable_save_last_used_payment_method" : true, "elements_enable_external_payment_method_kbc" : false, "elements_enable_external_payment_method_bizum" : false, "elements_enable_external_payment_method_gcash" : false, "elements_enable_card_brand_choice_payment_element_link" : true, "elements_enable_external_payment_method_payit" : false, - "elements_enable_payment_element_postal_validation" : true, - "link_doi_ungated_behavior_rollout" : true, "elements_enable_blik" : true, "elements_enable_south_korea_market_underlying_pms" : false, "elements_enable_external_payment_method_girocard" : false, @@ -294,11 +160,12 @@ x-content-type-options: nosniff "elements_enable_link_spm" : true, "elements_spm_max_visible_payment_methods" : false, "elements_disable_link_email_otp" : false, - "cbc_in_link_popup" : false, + "cbc_in_link_popup" : true, "elements_enable_external_payment_method_picpay" : false, "elements_enable_external_payment_method_planpay" : false, "elements_enable_external_payment_method_samsung_pay" : false, "elements_enable_external_payment_method_truelayer" : false, + "elements_enable_link_in_ece_personalization" : false, "elements_enable_passive_captcha" : true, "elements_disable_paypal_express" : false, "elements_disable_recurring_express_checkout_button_amazon_pay" : false, @@ -307,30 +174,22 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_payu" : false, "elements_disable_express_checkout_button_amazon_pay" : false, "elements_enable_external_payment_method_venmo" : false, + "disable_payment_element_if_required_billing_config" : false, + "link_set_active_field_true" : true, "elements_enable_external_payment_method_mondu" : false, "elements_enable_external_payment_method_paydirekt" : false, "elements_stop_move_focus_to_first_errored_field" : true, "elements_enable_external_payment_method_online_banking_slovakia" : false, "elements_enable_external_payment_method_interac" : false, - "link_new_learn_more_modal_enabled" : false, + "link_new_learn_more_modal_enabled" : true, "use_link_views" : false, "elements_enable_external_payment_method_mybank" : false }, - "external_payment_method_data" : null, - "unactivated_payment_method_types" : [ - "cashapp", - "amazon_pay", - "us_bank_account" - ], - "lpm_promotions" : null, - "merchant_country" : "US", - "paypal_express_config" : { - "client_id" : null, - "paypal_merchant_id" : null - }, - "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", - "customer" : null, + "merchant_logo_url" : null, + "session_id" : "elements_session_1A7DldCfBxY", "account_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_currency" : "usd", "card_brand_choice" : { "eligible" : false, "preferred_networks" : [ @@ -340,20 +199,170 @@ x-content-type-options: nosniff "cartes_bancaires" : false } }, - "customer_error" : null, - "order" : null, + "shipping_address_settings" : { + "autocomplete_allowed" : false + }, + "external_payment_method_data" : null, + "meta_pay_signed_container_context" : null, + "apple_pay_preference" : "enabled", + "lpm_promotions" : null, + "merchant_country" : "US", + "google_pay_preference" : "enabled", + "paypal_express_config" : { + "client_id" : null, + "paypal_merchant_id" : null + }, + "experiments_data" : { + "arb_id" : "93ec2c3b-21be-43be-9c54-c37652aeaaeb", + "experiment_metadata" : { + "seed" : "f141acec06c73601adc1c212d38a020b85a1cdd62a3e46835373aeaf676a9090" + }, + "experiment_assignments" : { + "elements_merchant_ui_api_srv" : "control", + "link_popup_webview_option_ios" : "control", + "ocs_buyer_xp_elements_lpm_holdback" : "control" + } + }, "legacy_customer" : null, + "link_settings" : { + "link_enable_webauthn_for_link_popup" : false, + "link_no_code_default_values_recall" : true, + "link_payment_session_context" : null, + "link_consumer_incentive" : null, + "link_default_opt_in" : "NONE", + "link_elements_pageload_sign_up_disabled" : false, + "link_crypto_onramp_bank_upsell" : false, + "link_funding_sources" : [ + + ], + "link_disabled_reasons" : { + "payment_element_payment_method_mode" : [ + "link_not_specified_in_payment_method_types" + ], + "payment_element_passthrough_mode" : [ + "automatic_payment_methods_enabled", + "link_not_enabled_on_payment_config", + "not_gated_into_enable_m2_passthrough_mode" + ] + }, + "link_supported_payment_methods" : [ + + ], + "link_elements_is_crypto_onramp" : false, + "link_payment_element_disabled_by_targeting" : false, + "link_popup_webview_option" : "shared", + "link_targeting_results" : { + "payment_element_passthrough_mode" : null + }, + "link_disable_email_otp" : false, + "link_local_storage_login_enabled" : false, + "link_enable_instant_debits_in_testmode" : false, + "link_global_holdback_on" : false, + "link_session_storage_login_enabled" : false, + "link_payment_element_enable_webauthn_login" : false, + "link_authenticated_change_event_enabled" : false, + "link_bank_onboarding_enabled" : false, + "link_hcaptcha_rqdata" : null, + "link_m2_default_integration_enabled" : false, + "link_financial_incentives_experiment_enabled" : false, + "link_passthrough_mode_enabled" : false, + "link_no_code_default_values_identification" : true, + "link_enable_email_otp_for_link_popup" : false, + "link_pay_button_element_enabled" : true, + "link_crypto_onramp_elements_logout_disabled" : false, + "link_mode" : null, + "link_no_code_default_values_usage" : true, + "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", + "link_crypto_onramp_force_cvc_reverification" : false, + "link_email_verification_login_enabled" : false, + "link_only_for_payment_method_types_enabled" : false, + "link_bank_incentives_enabled" : false, + "link_pm_killswitch_on_in_elements" : false + }, + "passive_captcha" : { + "site_key" : "20000000-ffff-ffff-ffff-000000000002", + "rqdata" : null + }, + "payment_method_specs" : [ + { + "async" : false, + "fields" : [ + + ], + "selector_icon" : { + "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light@3x-46eb8b8a4a252b78d7b4c3b96d4ed7ae.png", + "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light-22cdec0f5f5609554a34fa62fa583f23.svg" + }, + "type" : "amazon_pay", + "next_action_spec" : { + "confirm_response_status_specs" : { + "requires_action" : { + "type" : "redirect_to_url" + } + }, + "post_confirm_handling_pi_status_specs" : { + "requires_action" : { + "type" : "canceled" + }, + "succeeded" : { + "type" : "finished" + } + } + } + }, + { + "async" : false, + "type" : "card", + "fields" : [ + + ] + }, + { + "async" : false, + "fields" : [ + + ], + "type" : "cashapp", + "selector_icon" : { + "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp@3x-a89c5d8d0651cae2a511bb49a6be1cfc.png", + "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp-981164a833e417d28a8ac2684fda2324.svg" + } + } + ], + "prefill_selectors" : { + "default_values" : { + "email" : [ + + ], + "merchant_provides_default_values_on_update" : true + } + }, + "unactivated_payment_method_types" : [ + "amazon_pay", + "cashapp", + "us_bank_account" + ], + "unverified_payment_methods_on_domain" : [ + "apple_pay" + ], + "order" : null, "link_purchase_protections_data" : { "type" : null, "is_eligible" : false }, - "merchant_logo_url" : null, + "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", + "customer" : null, + "klarna_express_config" : { + "klarna_mid" : null + }, + "business_name" : "CI Stuff", "ordered_payment_method_types_and_wallets" : [ "card", "apple_pay", + "amazon_pay", "cashapp", "google_pay", - "amazon_pay", "us_bank_account" - ] + ], + "customer_error" : null } \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentFails/0000_get_v1_elements_sessions.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentFails/0000_get_v1_elements_sessions.tail index 9de62494185..98215be43c3 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentFails/0000_get_v1_elements_sessions.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentFails/0000_get_v1_elements_sessions.tail @@ -1,22 +1,23 @@ GET -https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?client_default_payment_method=pm_1PiS2zFY0qyl6XeWlMKBbYVV&deferred_intent%5Bamount%5D=1000&deferred_intent%5Bcapture_method%5D=automatic&deferred_intent%5Bcurrency%5D=FOO&deferred_intent%5Bmode%5D=payment&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ +https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?deferred_intent%5Bamount%5D=1000&deferred_intent%5Bcapture_method%5D=automatic&deferred_intent%5Bcurrency%5D=FOO&deferred_intent%5Bmode%5D=payment&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ 400 application/json -access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE +access-control-allow-methods: GET, HEAD, PUT, PATCH, POST, DELETE content-security-policy: report-uri https://q.stripe.com/csp-report?p=v1%2Felements%2Fsessions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Server: nginx Cache-Control: no-cache, no-store reporting-endpoints: coop="https://q.stripe.com/coop-report?s=ocs-bapi-srv" +x-wc: A Strict-Transport-Security: max-age=63072000; includeSubDomains; preload cross-origin-opener-policy-report-only: same-origin; report-to="coop" Access-Control-Allow-Origin: * x-stripe-routing-context-priority-tier: api-testmode x-stripe-priority-routing-enabled: true report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=ocs-bapi-srv"}],"include_subdomains":true} -request-id: req_qOv0wAVfPqPpMa +request-id: req_aoYgLCdEXKyBsY Content-Length: 1031 Vary: Origin -Date: Wed, 31 Jul 2024 02:14:33 GMT +Date: Wed, 16 Oct 2024 17:07:03 GMT stripe-version: 2020-08-27 access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required access-control-max-age: 300 @@ -29,6 +30,6 @@ x-content-type-options: nosniff "param" : "deferred_intent[currency]", "message" : "Invalid currency: foo. Stripe currently supports these currencies: usd, aed, afn, all, amd, ang, aoa, ars, aud, awg, azn, bam, bbd, bdt, bgn, bhd, bif, bmd, bnd, bob, brl, bsd, bwp, byn, bzd, cad, cdf, chf, clp, cny, cop, crc, cve, czk, djf, dkk, dop, dzd, egp, etb, eur, fjd, fkp, gbp, gel, gip, gmd, gnf, gtq, gyd, hkd, hnl, hrk, htg, huf, idr, ils, inr, isk, jmd, jod, jpy, kes, kgs, khr, kmf, krw, kwd, kyd, kzt, lak, lbp, lkr, lrd, lsl, mad, mdl, mga, mkd, mmk, mnt, mop, mur, mvr, mwk, mxn, myr, mzn, nad, ngn, nio, nok, npr, nzd, omr, pab, pen, pgk, php, pkr, pln, pyg, qar, ron, rsd, rub, rwf, sar, sbd, scr, sek, sgd, shp, sle, sos, srd, std, szl, thb, tjs, tnd, top, try, ttd, twd, tzs, uah, ugx, uyu, uzs, vnd, vuv, wst, xaf, xcd, xof, xpf, yer, zar, zmw, usdc, btn, ghs, eek, lvl, svc, vef, ltl, sll, mro", "type" : "invalid_request_error", - "request_log_url" : "https:\/\/dashboard.stripe.com\/test\/logs\/req_qOv0wAVfPqPpMa?t=1722392073" + "request_log_url" : "https:\/\/dashboard.stripe.com\/test\/logs\/req_aoYgLCdEXKyBsY?t=1729098423" } } \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentFails/0001_get_v1_elements_sessions.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentFails/0001_get_v1_elements_sessions.tail index f1d03d0effd..1087af73f83 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentFails/0001_get_v1_elements_sessions.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentFails/0001_get_v1_elements_sessions.tail @@ -1,22 +1,23 @@ GET -https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?client_default_payment_method=pm_1PiS2zFY0qyl6XeWlMKBbYVV&deferred_intent%5Bamount%5D=0&deferred_intent%5Bcapture_method%5D=automatic&deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=payment&deferred_intent%5Bpayment_method_types%5D%5B0%5D=card&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ +https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=setup&deferred_intent%5Bon_behalf_of%5D=foo&deferred_intent%5Bpayment_method_types%5D%5B0%5D=card&deferred_intent%5Bsetup_future_usage%5D=off_session&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ 400 application/json -access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE +access-control-allow-methods: GET, HEAD, PUT, PATCH, POST, DELETE content-security-policy: report-uri https://q.stripe.com/csp-report?p=v1%2Felements%2Fsessions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Server: nginx Cache-Control: no-cache, no-store reporting-endpoints: coop="https://q.stripe.com/coop-report?s=ocs-bapi-srv" +x-wc: A Strict-Transport-Security: max-age=63072000; includeSubDomains; preload cross-origin-opener-policy-report-only: same-origin; report-to="coop" Access-Control-Allow-Origin: * x-stripe-routing-context-priority-tier: api-testmode x-stripe-priority-routing-enabled: true report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=ocs-bapi-srv"}],"include_subdomains":true} -request-id: req_oRb8WSzi4Bsg7I -Content-Length: 393 +request-id: req_q2ahT2gGX2ExtL +Content-Length: 349 Vary: Origin -Date: Wed, 31 Jul 2024 02:14:33 GMT +Date: Wed, 16 Oct 2024 17:07:03 GMT stripe-version: 2020-08-27 access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required access-control-max-age: 300 @@ -26,11 +27,11 @@ x-content-type-options: nosniff { "error" : { - "code" : "parameter_invalid_integer", - "message" : "This value must be greater than or equal to 1.", - "param" : "deferred_intent.payment_method_types", - "request_log_url" : "https:\/\/dashboard.stripe.com\/test\/logs\/req_oRb8WSzi4Bsg7I?t=1722392073", + "code" : "resource_missing", + "message" : "No such on_behalf_of: 'foo'", + "param" : "deferred_intent[on_behalf_of]", + "request_log_url" : "https:\/\/dashboard.stripe.com\/test\/logs\/req_q2ahT2gGX2ExtL?t=1729098423", "type" : "invalid_request_error", - "doc_url" : "https:\/\/stripe.com\/docs\/error-codes\/parameter-invalid-integer" + "doc_url" : "https:\/\/stripe.com\/docs\/error-codes\/resource-missing" } } \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentFails/0002_get_v1_elements_sessions.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentFails/0002_get_v1_elements_sessions.tail index 882b68e40b9..a9074a2d851 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentFails/0002_get_v1_elements_sessions.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentFails/0002_get_v1_elements_sessions.tail @@ -1,22 +1,23 @@ GET -https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?client_default_payment_method=pm_1PiS2zFY0qyl6XeWlMKBbYVV&deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=setup&deferred_intent%5Bon_behalf_of%5D=foo&deferred_intent%5Bpayment_method_types%5D%5B0%5D=card&deferred_intent%5Bsetup_future_usage%5D=off_session&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ +https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=setup&deferred_intent%5Bpayment_method_types%5D%5B0%5D=card&deferred_intent%5Bpayment_method_types%5D%5B1%5D=foo&deferred_intent%5Bsetup_future_usage%5D=off_session&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ 400 application/json -access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE +access-control-allow-methods: GET, HEAD, PUT, PATCH, POST, DELETE content-security-policy: report-uri https://q.stripe.com/csp-report?p=v1%2Felements%2Fsessions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Server: nginx Cache-Control: no-cache, no-store reporting-endpoints: coop="https://q.stripe.com/coop-report?s=ocs-bapi-srv" +x-wc: A Strict-Transport-Security: max-age=63072000; includeSubDomains; preload cross-origin-opener-policy-report-only: same-origin; report-to="coop" Access-Control-Allow-Origin: * x-stripe-routing-context-priority-tier: api-testmode x-stripe-priority-routing-enabled: true report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=ocs-bapi-srv"}],"include_subdomains":true} -request-id: req_LHibTZnjhddWuI -Content-Length: 349 +request-id: req_B4f3pxRwxPmoPg +Content-Length: 301 Vary: Origin -Date: Wed, 31 Jul 2024 02:14:33 GMT +Date: Wed, 16 Oct 2024 17:07:03 GMT stripe-version: 2020-08-27 access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required access-control-max-age: 300 @@ -26,11 +27,9 @@ x-content-type-options: nosniff { "error" : { - "code" : "resource_missing", - "message" : "No such on_behalf_of: 'foo'", - "param" : "deferred_intent[on_behalf_of]", - "request_log_url" : "https:\/\/dashboard.stripe.com\/test\/logs\/req_LHibTZnjhddWuI?t=1722392073", + "param" : "deferred_intent.payment_method_types", + "message" : "The payment method type `foo` is not supported when creating a SetupIntent.", "type" : "invalid_request_error", - "doc_url" : "https:\/\/stripe.com\/docs\/error-codes\/resource-missing" + "request_log_url" : "https:\/\/dashboard.stripe.com\/test\/logs\/req_B4f3pxRwxPmoPg?t=1729098423" } } \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentFails/0003_get_v1_elements_sessions.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentFails/0003_get_v1_elements_sessions.tail deleted file mode 100644 index 110371aab92..00000000000 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentFails/0003_get_v1_elements_sessions.tail +++ /dev/null @@ -1,34 +0,0 @@ -GET -https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?client_default_payment_method=pm_1PiS2zFY0qyl6XeWlMKBbYVV&deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=setup&deferred_intent%5Bpayment_method_types%5D%5B0%5D=card&deferred_intent%5Bpayment_method_types%5D%5B1%5D=foo&deferred_intent%5Bsetup_future_usage%5D=off_session&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ -400 -application/json -access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE -content-security-policy: report-uri https://q.stripe.com/csp-report?p=v1%2Felements%2Fsessions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' -Server: nginx -Cache-Control: no-cache, no-store -reporting-endpoints: coop="https://q.stripe.com/coop-report?s=ocs-bapi-srv" -Strict-Transport-Security: max-age=63072000; includeSubDomains; preload -cross-origin-opener-policy-report-only: same-origin; report-to="coop" -Access-Control-Allow-Origin: * -x-stripe-routing-context-priority-tier: api-testmode -x-stripe-priority-routing-enabled: true -report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=ocs-bapi-srv"}],"include_subdomains":true} -request-id: req_EMt1hTezOWKiv3 -Content-Length: 226 -Vary: Origin -Date: Wed, 31 Jul 2024 02:14:33 GMT -stripe-version: 2020-08-27 -access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required -access-control-max-age: 300 -access-control-allow-credentials: true -Content-Type: application/json -x-content-type-options: nosniff - -{ - "error" : { - "param" : "deferred_intent.payment_method_types", - "message" : "", - "type" : "invalid_request_error", - "request_log_url" : "https:\/\/dashboard.stripe.com\/test\/logs\/req_EMt1hTezOWKiv3?t=1722392073" - } -} \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentSucceeds/0000_get_v1_elements_sessions.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentSucceeds/0000_get_v1_elements_sessions.tail index 3244cb5f904..3457cfceb7d 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentSucceeds/0000_get_v1_elements_sessions.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentSucceeds/0000_get_v1_elements_sessions.tail @@ -1,22 +1,23 @@ GET -https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?client_default_payment_method=pm_1PiS2zFY0qyl6XeWlMKBbYVV&deferred_intent%5Bamount%5D=1000&deferred_intent%5Bcapture_method%5D=automatic&deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=payment&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ +https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?deferred_intent%5Bamount%5D=1000&deferred_intent%5Bcapture_method%5D=automatic&deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=payment&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ 200 application/json -access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE +access-control-allow-methods: GET, HEAD, PUT, PATCH, POST, DELETE content-security-policy: report-uri https://q.stripe.com/csp-report?p=v1%2Felements%2Fsessions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Server: nginx Cache-Control: no-cache, no-store reporting-endpoints: coop="https://q.stripe.com/coop-report?s=ocs-bapi-srv" +x-wc: A Strict-Transport-Security: max-age=63072000; includeSubDomains; preload cross-origin-opener-policy-report-only: same-origin; report-to="coop" Access-Control-Allow-Origin: * x-stripe-routing-context-priority-tier: api-testmode x-stripe-priority-routing-enabled: true report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=ocs-bapi-srv"}],"include_subdomains":true} -request-id: req_CCLSgT9YXsM3B1 -Content-Length: 14279 +request-id: req_nVLIq7A0PkiwCC +Content-Length: 14471 Vary: Origin -Date: Wed, 31 Jul 2024 02:34:46 GMT +Date: Wed, 16 Oct 2024 17:07:29 GMT stripe-version: 2020-08-27 access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required access-control-max-age: 300 @@ -25,128 +26,6 @@ Content-Type: application/json x-content-type-options: nosniff { - "merchant_currency" : "usd", - "meta_pay_signed_container_context" : null, - "link_settings" : { - "link_enable_webauthn_for_link_popup" : false, - "link_no_code_default_values_recall" : false, - "link_default_opt_in" : "NONE", - "link_elements_pageload_sign_up_disabled" : false, - "link_funding_sources_onboarding_unavailable_from_holdback" : [ - - ], - "link_crypto_onramp_bank_upsell" : false, - "link_funding_sources" : [ - - ], - "link_disabled_reasons" : { - "payment_element_payment_method_mode" : [ - "link_not_specified_in_payment_method_types" - ], - "payment_element_passthrough_mode" : [ - "automatic_payment_methods_enabled", - "link_not_enabled_on_payment_config", - "not_gated_into_enable_m2_passthrough_mode" - ] - }, - "link_elements_is_crypto_onramp" : false, - "link_payment_element_disabled_by_targeting" : false, - "link_popup_webview_option" : "shared", - "link_targeting_results" : { - "payment_element_passthrough_mode" : null - }, - "link_disable_email_otp" : false, - "link_local_storage_login_enabled" : false, - "link_enable_instant_debits_in_testmode" : false, - "link_global_holdback_on" : false, - "link_session_storage_login_enabled" : false, - "link_payment_element_enable_webauthn_login" : false, - "link_payment_method_nicknames" : false, - "link_authenticated_change_event_enabled" : false, - "link_bank_onboarding_enabled" : false, - "link_hcaptcha_rqdata" : null, - "link_m2_default_integration_enabled" : false, - "link_financial_incentives_experiment_enabled" : false, - "link_passthrough_mode_enabled" : false, - "link_no_code_default_values_identification" : false, - "link_enable_email_otp_for_link_popup" : false, - "link_pay_button_element_enabled" : true, - "link_crypto_onramp_elements_logout_disabled" : false, - "link_mode" : null, - "link_no_code_default_values_usage" : true, - "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", - "link_crypto_onramp_force_cvc_reverification" : false, - "link_email_verification_login_enabled" : false, - "link_only_for_payment_method_types_enabled" : false, - "link_bank_incentives_enabled" : false, - "link_funding_sources_onboarding_enabled" : [ - - ], - "link_pm_killswitch_on_in_elements" : false - }, - "passive_captcha" : { - "site_key" : "20000000-ffff-ffff-ffff-000000000002", - "rqdata" : null - }, - "payment_method_specs" : [ - { - "async" : false, - "fields" : [ - - ], - "selector_icon" : { - "dark_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_dark@3x-3861df0768196df1a8ed7ed2a9d44d9b.png", - "dark_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_dark-e41f361095e9579a113d8e461ebbe594.svg", - "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light@3x-46eb8b8a4a252b78d7b4c3b96d4ed7ae.png", - "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light-22cdec0f5f5609554a34fa62fa583f23.svg" - }, - "type" : "amazon_pay", - "next_action_spec" : { - "confirm_response_status_specs" : { - "requires_action" : { - "type" : "redirect_to_url" - } - }, - "post_confirm_handling_pi_status_specs" : { - "requires_action" : { - "type" : "canceled" - }, - "succeeded" : { - "type" : "finished" - } - } - } - }, - { - "async" : false, - "type" : "card", - "fields" : [ - - ] - }, - { - "async" : false, - "fields" : [ - - ], - "type" : "cashapp", - "selector_icon" : { - "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp@3x-a89c5d8d0651cae2a511bb49a6be1cfc.png", - "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp-981164a833e417d28a8ac2684fda2324.svg" - } - } - ], - "session_id" : "elements_session_1cVY5glO7v5", - "shipping_address_settings" : { - "autocomplete_allowed" : false - }, - "business_name" : "CI Stuff", - "unverified_payment_methods_on_domain" : [ - "apple_pay" - ], - "apple_pay_preference" : "enabled", - "google_pay_preference" : "enabled", - "merchant_id" : "acct_1G6m1pFY0qyl6XeW", "payment_method_preference" : { "country_code" : "US", "object" : "payment_method_preference", @@ -158,25 +37,20 @@ x-content-type-options: nosniff "us_bank_account" ] }, - "experiments_data" : { - "arb_id" : "165110ce-b933-4975-8289-cce883be0627", - "experiment_assignments" : { - "elements_merchant_ui_api_srv" : "control", - "link_popup_webview_option_ios" : "control" - } - }, + "capability_enabled_card_networks" : [ + "cartes_bancaires" + ], "flags" : { "elements_enable_external_payment_method_wallets_india" : false, "elements_enable_external_payment_method_check" : false, "elements_enable_external_payment_method_fonix" : false, "elements_enable_external_payment_method_au_pay" : false, - "elements_enable_invalid_country_for_pm_error" : false, + "elements_enable_invalid_country_for_pm_error" : true, "elements_enable_external_payment_method_ebt_snap" : false, "elements_enable_external_payment_method_v_pay" : false, + "elements_enable_link_in_passthrough_ece" : true, "elements_enable_passive_hcaptcha_in_payment_method_creation" : true, "legacy_confirmation_tokens" : false, - "link_purchase_protections_enabled" : false, - "enable_third_party_recurring_express_checkout_element" : false, "elements_enable_external_payment_method_swish" : false, "elements_enable_external_payment_method_online_banking_poland" : false, "elements_enable_read_allow_redisplay" : false, @@ -186,15 +60,15 @@ x-content-type-options: nosniff "elements_enable_express_checkout_button_demo_pay" : false, "elements_enable_external_payment_method_tabby" : false, "elements_enable_mx_card_installments" : false, - "link_payment_method_nicknames" : true, + "elements_disable_link_global_holdback_lookup" : false, "elements_enable_external_payment_method_bpay" : false, "elements_enable_external_payment_method_laybuy" : false, "elements_enable_external_payment_method_bluecode" : false, "elements_enable_external_payment_method_grabpay_later" : false, + "elements_disable_klarna_ece_crossborder_validation" : false, "elements_disable_payment_element_card_country_zip_validations" : false, "elements_enable_external_payment_method_billie" : false, "elements_enable_external_payment_method_postfinance" : false, - "elements_enable_use_last_used_payment_method" : false, "elements_enable_external_payment_method_scalapay" : false, "elements_enable_external_payment_method_famipay" : false, "elements_enable_save_for_future_payments_pre_check" : false, @@ -204,12 +78,15 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pay_easy" : false, "elements_enable_external_payment_method_sequra" : false, "elements_spm_set_as_default" : true, - "elements_write_sfu_into_confirm_request" : false, + "payment_element_link_modal_preload_killswitch" : false, "elements_enable_external_payment_method_paidy" : false, "elements_enable_write_allow_redisplay" : false, "elements_enable_external_payment_method_online_banking_thailand" : false, "elements_enable_external_payment_method_momo" : false, "elements_enable_external_payment_method_payrexx" : false, + "elements_appearance_payment_accordion_overrides" : false, + "elements_enable_cb_apple_pay_for_connect_platforms" : true, + "link_purchase_protections_rollout" : false, "elements_enable_external_payment_method_walley" : false, "elements_enable_external_payment_method_mb_way" : false, "elements_enable_external_payment_method_rabbitline_pay" : false, @@ -220,23 +97,23 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pledg" : false, "elements_enable_klarna_unified_offer" : true, "elements_enable_external_payment_method_postepay" : false, + "elements_enable_19_digit_pans" : false, "elements_enable_external_payment_method_aplazo" : false, "elements_enable_external_payment_method_dapp" : false, - "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_atone" : false, "elements_enable_external_payment_method_dankort" : false, "elements_enable_external_payment_method_fawry" : false, "elements_enable_external_payment_method_payconiq" : false, - "elements_enable_external_payment_method_wechat_mobile" : false, + "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_paysafecard" : false, "elements_enable_external_payment_method_eftpos_australia" : false, + "elements_enable_external_payment_method_wechat_mobile" : false, "elements_spm_messages" : false, "elements_enable_external_payment_method_azupay" : false, "ece_apple_pay_payment_request_passthrough" : false, "elements_enable_external_payment_method_online_banking_czech_republic" : false, "elements_enable_external_payment_method_aplazame" : false, "elements_enable_external_payment_method_rakuten_pay" : false, - "elements_luxe_qr_ui_on_web_enabled" : false, "paypal_express_checkout_recurring_support" : false, "elements_enable_external_payment_method_paypo" : false, "elements_enable_external_payment_method_netbanking" : false, @@ -246,33 +123,30 @@ x-content-type-options: nosniff "financial_connections_enable_deferred_intent_flow" : true, "elements_enable_external_payment_method_hands_in" : false, "elements_enable_external_payment_method_younitedpay" : false, - "elements_enable_passive_captcha_on_payment_intent_update" : true, "elements_enable_br_card_installments" : false, "elements_enable_external_payment_method_atome" : false, "elements_enable_external_payment_method_mercado_pago" : false, "elements_enable_external_payment_method_amazon_pay" : false, "elements_enable_external_payment_method_line_pay" : false, "elements_enable_external_payment_method_paytm" : false, - "elements_enable_outer_action_show_upe_wallet" : true, "elements_enable_external_payment_method_catch" : false, "elements_enable_external_payment_method_skrill" : false, "elements_enable_external_payment_method_paypay" : false, + "elements_enable_klarna_express_checkout" : false, "elements_enable_external_payment_method_ratepay" : false, "elements_enable_external_payment_method_sezzle" : false, "elements_enable_external_payment_method_bankaxept" : false, "elements_enable_external_payment_method_satispay" : false, "elements_enable_external_payment_method_dbarai" : false, "elements_enable_external_payment_method_titres_restaurant" : false, + "elements_link_global_holdback_rollout" : false, "elements_enable_external_payment_method_coinbase_pay" : false, "elements_enable_external_payment_method_trustly" : false, - "elements_enable_save_last_used_payment_method" : true, "elements_enable_external_payment_method_kbc" : false, "elements_enable_external_payment_method_bizum" : false, "elements_enable_external_payment_method_gcash" : false, "elements_enable_card_brand_choice_payment_element_link" : true, "elements_enable_external_payment_method_payit" : false, - "elements_enable_payment_element_postal_validation" : true, - "link_doi_ungated_behavior_rollout" : true, "elements_enable_blik" : true, "elements_enable_south_korea_market_underlying_pms" : false, "elements_enable_external_payment_method_girocard" : false, @@ -286,11 +160,12 @@ x-content-type-options: nosniff "elements_enable_link_spm" : true, "elements_spm_max_visible_payment_methods" : false, "elements_disable_link_email_otp" : false, - "cbc_in_link_popup" : false, + "cbc_in_link_popup" : true, "elements_enable_external_payment_method_picpay" : false, "elements_enable_external_payment_method_planpay" : false, "elements_enable_external_payment_method_samsung_pay" : false, "elements_enable_external_payment_method_truelayer" : false, + "elements_enable_link_in_ece_personalization" : false, "elements_enable_passive_captcha" : true, "elements_disable_paypal_express" : false, "elements_disable_recurring_express_checkout_button_amazon_pay" : false, @@ -299,30 +174,22 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_payu" : false, "elements_disable_express_checkout_button_amazon_pay" : false, "elements_enable_external_payment_method_venmo" : false, + "disable_payment_element_if_required_billing_config" : false, + "link_set_active_field_true" : true, "elements_enable_external_payment_method_mondu" : false, "elements_enable_external_payment_method_paydirekt" : false, "elements_stop_move_focus_to_first_errored_field" : true, "elements_enable_external_payment_method_online_banking_slovakia" : false, "elements_enable_external_payment_method_interac" : false, - "link_new_learn_more_modal_enabled" : false, + "link_new_learn_more_modal_enabled" : true, "use_link_views" : false, "elements_enable_external_payment_method_mybank" : false }, - "external_payment_method_data" : null, - "unactivated_payment_method_types" : [ - "cashapp", - "amazon_pay", - "us_bank_account" - ], - "lpm_promotions" : null, - "merchant_country" : "US", - "paypal_express_config" : { - "client_id" : null, - "paypal_merchant_id" : null - }, - "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", - "customer" : null, + "merchant_logo_url" : null, + "session_id" : "elements_session_1h3xHeGcuyO", "account_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_currency" : "usd", "card_brand_choice" : { "eligible" : false, "preferred_networks" : [ @@ -332,20 +199,170 @@ x-content-type-options: nosniff "cartes_bancaires" : false } }, - "customer_error" : null, - "order" : null, + "shipping_address_settings" : { + "autocomplete_allowed" : false + }, + "external_payment_method_data" : null, + "meta_pay_signed_container_context" : null, + "apple_pay_preference" : "enabled", + "lpm_promotions" : null, + "merchant_country" : "US", + "google_pay_preference" : "enabled", + "paypal_express_config" : { + "client_id" : null, + "paypal_merchant_id" : null + }, + "experiments_data" : { + "arb_id" : "85d00f86-eb97-42e5-96fa-cfd75e2d3d86", + "experiment_metadata" : { + "seed" : "f141acec06c73601adc1c212d38a020b85a1cdd62a3e46835373aeaf676a9090" + }, + "experiment_assignments" : { + "elements_merchant_ui_api_srv" : "control", + "link_popup_webview_option_ios" : "control", + "ocs_buyer_xp_elements_lpm_holdback" : "control" + } + }, "legacy_customer" : null, + "link_settings" : { + "link_enable_webauthn_for_link_popup" : false, + "link_no_code_default_values_recall" : true, + "link_payment_session_context" : null, + "link_consumer_incentive" : null, + "link_default_opt_in" : "NONE", + "link_elements_pageload_sign_up_disabled" : false, + "link_crypto_onramp_bank_upsell" : false, + "link_funding_sources" : [ + + ], + "link_disabled_reasons" : { + "payment_element_payment_method_mode" : [ + "link_not_specified_in_payment_method_types" + ], + "payment_element_passthrough_mode" : [ + "automatic_payment_methods_enabled", + "link_not_enabled_on_payment_config", + "not_gated_into_enable_m2_passthrough_mode" + ] + }, + "link_supported_payment_methods" : [ + + ], + "link_elements_is_crypto_onramp" : false, + "link_payment_element_disabled_by_targeting" : false, + "link_popup_webview_option" : "shared", + "link_targeting_results" : { + "payment_element_passthrough_mode" : null + }, + "link_disable_email_otp" : false, + "link_local_storage_login_enabled" : false, + "link_enable_instant_debits_in_testmode" : false, + "link_global_holdback_on" : false, + "link_session_storage_login_enabled" : false, + "link_payment_element_enable_webauthn_login" : false, + "link_authenticated_change_event_enabled" : false, + "link_bank_onboarding_enabled" : false, + "link_hcaptcha_rqdata" : null, + "link_m2_default_integration_enabled" : false, + "link_financial_incentives_experiment_enabled" : false, + "link_passthrough_mode_enabled" : false, + "link_no_code_default_values_identification" : true, + "link_enable_email_otp_for_link_popup" : false, + "link_pay_button_element_enabled" : true, + "link_crypto_onramp_elements_logout_disabled" : false, + "link_mode" : null, + "link_no_code_default_values_usage" : true, + "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", + "link_crypto_onramp_force_cvc_reverification" : false, + "link_email_verification_login_enabled" : false, + "link_only_for_payment_method_types_enabled" : false, + "link_bank_incentives_enabled" : false, + "link_pm_killswitch_on_in_elements" : false + }, + "passive_captcha" : { + "site_key" : "20000000-ffff-ffff-ffff-000000000002", + "rqdata" : null + }, + "payment_method_specs" : [ + { + "async" : false, + "fields" : [ + + ], + "selector_icon" : { + "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light@3x-46eb8b8a4a252b78d7b4c3b96d4ed7ae.png", + "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light-22cdec0f5f5609554a34fa62fa583f23.svg" + }, + "type" : "amazon_pay", + "next_action_spec" : { + "confirm_response_status_specs" : { + "requires_action" : { + "type" : "redirect_to_url" + } + }, + "post_confirm_handling_pi_status_specs" : { + "requires_action" : { + "type" : "canceled" + }, + "succeeded" : { + "type" : "finished" + } + } + } + }, + { + "async" : false, + "type" : "card", + "fields" : [ + + ] + }, + { + "async" : false, + "fields" : [ + + ], + "type" : "cashapp", + "selector_icon" : { + "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp@3x-a89c5d8d0651cae2a511bb49a6be1cfc.png", + "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp-981164a833e417d28a8ac2684fda2324.svg" + } + } + ], + "prefill_selectors" : { + "default_values" : { + "email" : [ + + ], + "merchant_provides_default_values_on_update" : true + } + }, + "unactivated_payment_method_types" : [ + "cashapp", + "amazon_pay", + "us_bank_account" + ], + "unverified_payment_methods_on_domain" : [ + "apple_pay" + ], + "order" : null, "link_purchase_protections_data" : { "type" : null, "is_eligible" : false }, - "merchant_logo_url" : null, + "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", + "customer" : null, + "klarna_express_config" : { + "klarna_mid" : null + }, + "business_name" : "CI Stuff", "ordered_payment_method_types_and_wallets" : [ "card", "apple_pay", "cashapp", - "google_pay", "amazon_pay", + "google_pay", "us_bank_account" - ] + ], + "customer_error" : null } \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentSucceeds/0001_get_v1_elements_sessions.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentSucceeds/0001_get_v1_elements_sessions.tail index a6267ef8919..af897bc2a5b 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentSucceeds/0001_get_v1_elements_sessions.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentSucceeds/0001_get_v1_elements_sessions.tail @@ -1,22 +1,23 @@ GET -https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?client_default_payment_method=pm_1PiS2zFY0qyl6XeWlMKBbYVV&deferred_intent%5Bamount%5D=1000&deferred_intent%5Bcapture_method%5D=automatic&deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=payment&deferred_intent%5Bpayment_method_types%5D%5B0%5D=card&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ +https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?deferred_intent%5Bamount%5D=1000&deferred_intent%5Bcapture_method%5D=automatic&deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=payment&deferred_intent%5Bpayment_method_types%5D%5B0%5D=card&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ 200 application/json -access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE +access-control-allow-methods: GET, HEAD, PUT, PATCH, POST, DELETE content-security-policy: report-uri https://q.stripe.com/csp-report?p=v1%2Felements%2Fsessions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Server: nginx Cache-Control: no-cache, no-store reporting-endpoints: coop="https://q.stripe.com/coop-report?s=ocs-bapi-srv" +x-wc: A Strict-Transport-Security: max-age=63072000; includeSubDomains; preload cross-origin-opener-policy-report-only: same-origin; report-to="coop" Access-Control-Allow-Origin: * x-stripe-routing-context-priority-tier: api-testmode x-stripe-priority-routing-enabled: true report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=ocs-bapi-srv"}],"include_subdomains":true} -request-id: req_A6qbVQXoBXNgfM -Content-Length: 12567 +request-id: req_Na2eXl1weotWKO +Content-Length: 13002 Vary: Origin -Date: Wed, 31 Jul 2024 02:34:46 GMT +Date: Wed, 16 Oct 2024 17:07:29 GMT stripe-version: 2020-08-27 access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required access-control-max-age: 300 @@ -25,88 +26,6 @@ Content-Type: application/json x-content-type-options: nosniff { - "merchant_currency" : "usd", - "meta_pay_signed_container_context" : null, - "link_settings" : { - "link_enable_webauthn_for_link_popup" : false, - "link_no_code_default_values_recall" : false, - "link_default_opt_in" : "NONE", - "link_elements_pageload_sign_up_disabled" : false, - "link_funding_sources_onboarding_unavailable_from_holdback" : [ - - ], - "link_crypto_onramp_bank_upsell" : false, - "link_funding_sources" : [ - - ], - "link_disabled_reasons" : { - "payment_element_payment_method_mode" : [ - "link_not_specified_in_payment_method_types" - ], - "payment_element_passthrough_mode" : [ - "link_not_enabled_on_payment_config", - "not_gated_into_enable_m2_passthrough_mode" - ] - }, - "link_elements_is_crypto_onramp" : false, - "link_payment_element_disabled_by_targeting" : false, - "link_popup_webview_option" : "shared", - "link_targeting_results" : { - "payment_element_passthrough_mode" : null - }, - "link_disable_email_otp" : false, - "link_local_storage_login_enabled" : false, - "link_enable_instant_debits_in_testmode" : false, - "link_global_holdback_on" : false, - "link_session_storage_login_enabled" : false, - "link_payment_element_enable_webauthn_login" : false, - "link_payment_method_nicknames" : false, - "link_authenticated_change_event_enabled" : false, - "link_bank_onboarding_enabled" : false, - "link_hcaptcha_rqdata" : null, - "link_m2_default_integration_enabled" : false, - "link_financial_incentives_experiment_enabled" : false, - "link_passthrough_mode_enabled" : false, - "link_no_code_default_values_identification" : false, - "link_enable_email_otp_for_link_popup" : false, - "link_pay_button_element_enabled" : true, - "link_crypto_onramp_elements_logout_disabled" : false, - "link_mode" : null, - "link_no_code_default_values_usage" : false, - "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", - "link_crypto_onramp_force_cvc_reverification" : false, - "link_email_verification_login_enabled" : false, - "link_only_for_payment_method_types_enabled" : false, - "link_bank_incentives_enabled" : false, - "link_funding_sources_onboarding_enabled" : [ - - ], - "link_pm_killswitch_on_in_elements" : false - }, - "passive_captcha" : { - "site_key" : "20000000-ffff-ffff-ffff-000000000002", - "rqdata" : null - }, - "payment_method_specs" : [ - { - "async" : false, - "type" : "card", - "fields" : [ - - ] - } - ], - "session_id" : "elements_session_1AeSkLesXpn", - "shipping_address_settings" : { - "autocomplete_allowed" : false - }, - "business_name" : "CI Stuff", - "unverified_payment_methods_on_domain" : [ - "apple_pay" - ], - "apple_pay_preference" : "enabled", - "google_pay_preference" : "enabled", - "merchant_id" : "acct_1G6m1pFY0qyl6XeW", "payment_method_preference" : { "country_code" : "US", "object" : "payment_method_preference", @@ -115,25 +34,20 @@ x-content-type-options: nosniff "card" ] }, - "experiments_data" : { - "arb_id" : "7c883a16-a16d-4a77-8061-07806eb84157", - "experiment_assignments" : { - "elements_merchant_ui_api_srv" : "control", - "link_popup_webview_option_ios" : "control" - } - }, + "capability_enabled_card_networks" : [ + "cartes_bancaires" + ], "flags" : { "elements_enable_external_payment_method_wallets_india" : false, "elements_enable_external_payment_method_check" : false, "elements_enable_external_payment_method_fonix" : false, "elements_enable_external_payment_method_au_pay" : false, - "elements_enable_invalid_country_for_pm_error" : false, + "elements_enable_invalid_country_for_pm_error" : true, "elements_enable_external_payment_method_ebt_snap" : false, "elements_enable_external_payment_method_v_pay" : false, + "elements_enable_link_in_passthrough_ece" : true, "elements_enable_passive_hcaptcha_in_payment_method_creation" : true, "legacy_confirmation_tokens" : false, - "link_purchase_protections_enabled" : false, - "enable_third_party_recurring_express_checkout_element" : false, "elements_enable_external_payment_method_swish" : false, "elements_enable_external_payment_method_online_banking_poland" : false, "elements_enable_read_allow_redisplay" : false, @@ -143,15 +57,15 @@ x-content-type-options: nosniff "elements_enable_express_checkout_button_demo_pay" : false, "elements_enable_external_payment_method_tabby" : false, "elements_enable_mx_card_installments" : false, - "link_payment_method_nicknames" : true, + "elements_disable_link_global_holdback_lookup" : false, "elements_enable_external_payment_method_bpay" : false, "elements_enable_external_payment_method_laybuy" : false, "elements_enable_external_payment_method_bluecode" : false, "elements_enable_external_payment_method_grabpay_later" : false, + "elements_disable_klarna_ece_crossborder_validation" : false, "elements_disable_payment_element_card_country_zip_validations" : false, "elements_enable_external_payment_method_billie" : false, "elements_enable_external_payment_method_postfinance" : false, - "elements_enable_use_last_used_payment_method" : false, "elements_enable_external_payment_method_scalapay" : false, "elements_enable_external_payment_method_famipay" : false, "elements_enable_save_for_future_payments_pre_check" : false, @@ -161,12 +75,15 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pay_easy" : false, "elements_enable_external_payment_method_sequra" : false, "elements_spm_set_as_default" : true, - "elements_write_sfu_into_confirm_request" : false, + "payment_element_link_modal_preload_killswitch" : false, "elements_enable_external_payment_method_paidy" : false, "elements_enable_write_allow_redisplay" : false, "elements_enable_external_payment_method_online_banking_thailand" : false, "elements_enable_external_payment_method_momo" : false, "elements_enable_external_payment_method_payrexx" : false, + "elements_appearance_payment_accordion_overrides" : false, + "elements_enable_cb_apple_pay_for_connect_platforms" : true, + "link_purchase_protections_rollout" : false, "elements_enable_external_payment_method_walley" : false, "elements_enable_external_payment_method_mb_way" : false, "elements_enable_external_payment_method_rabbitline_pay" : false, @@ -177,23 +94,23 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pledg" : false, "elements_enable_klarna_unified_offer" : true, "elements_enable_external_payment_method_postepay" : false, + "elements_enable_19_digit_pans" : false, "elements_enable_external_payment_method_aplazo" : false, "elements_enable_external_payment_method_dapp" : false, - "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_atone" : false, "elements_enable_external_payment_method_dankort" : false, "elements_enable_external_payment_method_fawry" : false, "elements_enable_external_payment_method_payconiq" : false, - "elements_enable_external_payment_method_wechat_mobile" : false, + "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_paysafecard" : false, "elements_enable_external_payment_method_eftpos_australia" : false, + "elements_enable_external_payment_method_wechat_mobile" : false, "elements_spm_messages" : false, "elements_enable_external_payment_method_azupay" : false, "ece_apple_pay_payment_request_passthrough" : false, "elements_enable_external_payment_method_online_banking_czech_republic" : false, "elements_enable_external_payment_method_aplazame" : false, "elements_enable_external_payment_method_rakuten_pay" : false, - "elements_luxe_qr_ui_on_web_enabled" : false, "paypal_express_checkout_recurring_support" : false, "elements_enable_external_payment_method_paypo" : false, "elements_enable_external_payment_method_netbanking" : false, @@ -203,33 +120,30 @@ x-content-type-options: nosniff "financial_connections_enable_deferred_intent_flow" : true, "elements_enable_external_payment_method_hands_in" : false, "elements_enable_external_payment_method_younitedpay" : false, - "elements_enable_passive_captcha_on_payment_intent_update" : true, "elements_enable_br_card_installments" : false, "elements_enable_external_payment_method_atome" : false, "elements_enable_external_payment_method_mercado_pago" : false, "elements_enable_external_payment_method_amazon_pay" : false, "elements_enable_external_payment_method_line_pay" : false, "elements_enable_external_payment_method_paytm" : false, - "elements_enable_outer_action_show_upe_wallet" : true, "elements_enable_external_payment_method_catch" : false, "elements_enable_external_payment_method_skrill" : false, "elements_enable_external_payment_method_paypay" : false, + "elements_enable_klarna_express_checkout" : false, "elements_enable_external_payment_method_ratepay" : false, "elements_enable_external_payment_method_sezzle" : false, "elements_enable_external_payment_method_bankaxept" : false, "elements_enable_external_payment_method_satispay" : false, "elements_enable_external_payment_method_dbarai" : false, "elements_enable_external_payment_method_titres_restaurant" : false, + "elements_link_global_holdback_rollout" : false, "elements_enable_external_payment_method_coinbase_pay" : false, "elements_enable_external_payment_method_trustly" : false, - "elements_enable_save_last_used_payment_method" : true, "elements_enable_external_payment_method_kbc" : false, "elements_enable_external_payment_method_bizum" : false, "elements_enable_external_payment_method_gcash" : false, "elements_enable_card_brand_choice_payment_element_link" : true, "elements_enable_external_payment_method_payit" : false, - "elements_enable_payment_element_postal_validation" : true, - "link_doi_ungated_behavior_rollout" : true, "elements_enable_blik" : true, "elements_enable_south_korea_market_underlying_pms" : false, "elements_enable_external_payment_method_girocard" : false, @@ -243,11 +157,12 @@ x-content-type-options: nosniff "elements_enable_link_spm" : true, "elements_spm_max_visible_payment_methods" : false, "elements_disable_link_email_otp" : false, - "cbc_in_link_popup" : false, + "cbc_in_link_popup" : true, "elements_enable_external_payment_method_picpay" : false, "elements_enable_external_payment_method_planpay" : false, "elements_enable_external_payment_method_samsung_pay" : false, "elements_enable_external_payment_method_truelayer" : false, + "elements_enable_link_in_ece_personalization" : false, "elements_enable_passive_captcha" : true, "elements_disable_paypal_express" : false, "elements_disable_recurring_express_checkout_button_amazon_pay" : false, @@ -256,28 +171,22 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_payu" : false, "elements_disable_express_checkout_button_amazon_pay" : false, "elements_enable_external_payment_method_venmo" : false, + "disable_payment_element_if_required_billing_config" : false, + "link_set_active_field_true" : true, "elements_enable_external_payment_method_mondu" : false, "elements_enable_external_payment_method_paydirekt" : false, "elements_stop_move_focus_to_first_errored_field" : true, "elements_enable_external_payment_method_online_banking_slovakia" : false, "elements_enable_external_payment_method_interac" : false, - "link_new_learn_more_modal_enabled" : false, + "link_new_learn_more_modal_enabled" : true, "use_link_views" : false, "elements_enable_external_payment_method_mybank" : false }, - "external_payment_method_data" : null, - "unactivated_payment_method_types" : [ - - ], - "lpm_promotions" : null, - "merchant_country" : "US", - "paypal_express_config" : { - "client_id" : null, - "paypal_merchant_id" : null - }, - "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", - "customer" : null, + "merchant_logo_url" : null, + "session_id" : "elements_session_1KysNPi1dde", "account_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_currency" : "usd", "card_brand_choice" : { "eligible" : false, "preferred_networks" : [ @@ -287,17 +196,126 @@ x-content-type-options: nosniff "cartes_bancaires" : false } }, - "customer_error" : null, - "order" : null, + "shipping_address_settings" : { + "autocomplete_allowed" : false + }, + "external_payment_method_data" : null, + "meta_pay_signed_container_context" : null, + "apple_pay_preference" : "enabled", + "lpm_promotions" : null, + "merchant_country" : "US", + "google_pay_preference" : "enabled", + "paypal_express_config" : { + "client_id" : null, + "paypal_merchant_id" : null + }, + "experiments_data" : { + "arb_id" : "beffab6b-ec2c-4443-9d50-4acddf7739c5", + "experiment_metadata" : { + "seed" : "f141acec06c73601adc1c212d38a020b85a1cdd62a3e46835373aeaf676a9090" + }, + "experiment_assignments" : { + "elements_merchant_ui_api_srv" : "control", + "link_popup_webview_option_ios" : "control" + } + }, "legacy_customer" : null, + "link_settings" : { + "link_enable_webauthn_for_link_popup" : false, + "link_no_code_default_values_recall" : true, + "link_payment_session_context" : null, + "link_consumer_incentive" : null, + "link_default_opt_in" : "NONE", + "link_elements_pageload_sign_up_disabled" : false, + "link_crypto_onramp_bank_upsell" : false, + "link_funding_sources" : [ + + ], + "link_disabled_reasons" : { + "payment_element_payment_method_mode" : [ + "link_not_specified_in_payment_method_types" + ], + "payment_element_passthrough_mode" : [ + "link_not_enabled_on_payment_config", + "not_gated_into_enable_m2_passthrough_mode" + ] + }, + "link_supported_payment_methods" : [ + + ], + "link_elements_is_crypto_onramp" : false, + "link_payment_element_disabled_by_targeting" : false, + "link_popup_webview_option" : "shared", + "link_targeting_results" : { + "payment_element_passthrough_mode" : null + }, + "link_disable_email_otp" : false, + "link_local_storage_login_enabled" : false, + "link_enable_instant_debits_in_testmode" : false, + "link_global_holdback_on" : false, + "link_session_storage_login_enabled" : false, + "link_payment_element_enable_webauthn_login" : false, + "link_authenticated_change_event_enabled" : false, + "link_bank_onboarding_enabled" : false, + "link_hcaptcha_rqdata" : null, + "link_m2_default_integration_enabled" : false, + "link_financial_incentives_experiment_enabled" : false, + "link_passthrough_mode_enabled" : false, + "link_no_code_default_values_identification" : true, + "link_enable_email_otp_for_link_popup" : false, + "link_pay_button_element_enabled" : true, + "link_crypto_onramp_elements_logout_disabled" : false, + "link_mode" : null, + "link_no_code_default_values_usage" : true, + "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", + "link_crypto_onramp_force_cvc_reverification" : false, + "link_email_verification_login_enabled" : false, + "link_only_for_payment_method_types_enabled" : false, + "link_bank_incentives_enabled" : false, + "link_pm_killswitch_on_in_elements" : false + }, + "passive_captcha" : { + "site_key" : "20000000-ffff-ffff-ffff-000000000002", + "rqdata" : null + }, + "payment_method_specs" : [ + { + "async" : false, + "type" : "card", + "fields" : [ + + ] + } + ], + "prefill_selectors" : { + "default_values" : { + "email" : [ + + ], + "merchant_provides_default_values_on_update" : true + } + }, + "unactivated_payment_method_types" : [ + + ], + "unverified_payment_methods_on_domain" : [ + "apple_pay" + ], + "order" : null, "link_purchase_protections_data" : { "type" : null, "is_eligible" : false }, - "merchant_logo_url" : null, + "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", + "customer" : null, + "klarna_express_config" : { + "klarna_mid" : null + }, + "business_name" : "CI Stuff", "ordered_payment_method_types_and_wallets" : [ "card", "apple_pay", "google_pay" - ] + ], + "customer_error" : null } \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentSucceeds/0002_get_v1_elements_sessions.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentSucceeds/0002_get_v1_elements_sessions.tail index fac51d3f4d0..2db2501a92a 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentSucceeds/0002_get_v1_elements_sessions.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentSucceeds/0002_get_v1_elements_sessions.tail @@ -1,22 +1,23 @@ GET -https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?client_default_payment_method=pm_1PiS2zFY0qyl6XeWlMKBbYVV&deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=setup&deferred_intent%5Bsetup_future_usage%5D=off_session&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ +https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=setup&deferred_intent%5Bsetup_future_usage%5D=off_session&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ 200 application/json -access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE +access-control-allow-methods: GET, HEAD, PUT, PATCH, POST, DELETE content-security-policy: report-uri https://q.stripe.com/csp-report?p=v1%2Felements%2Fsessions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Server: nginx Cache-Control: no-cache, no-store reporting-endpoints: coop="https://q.stripe.com/coop-report?s=ocs-bapi-srv" +x-wc: A Strict-Transport-Security: max-age=63072000; includeSubDomains; preload cross-origin-opener-policy-report-only: same-origin; report-to="coop" Access-Control-Allow-Origin: * x-stripe-routing-context-priority-tier: api-testmode x-stripe-priority-routing-enabled: true report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=ocs-bapi-srv"}],"include_subdomains":true} -request-id: req_ggDqb26cZAQas7 -Content-Length: 14415 +request-id: req_O86F13efJNPFZv +Content-Length: 14471 Vary: Origin -Date: Wed, 31 Jul 2024 02:34:47 GMT +Date: Wed, 16 Oct 2024 17:07:30 GMT stripe-version: 2020-08-27 access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required access-control-max-age: 300 @@ -25,166 +26,31 @@ Content-Type: application/json x-content-type-options: nosniff { - "merchant_currency" : "usd", - "meta_pay_signed_container_context" : null, - "link_settings" : { - "link_enable_webauthn_for_link_popup" : false, - "link_no_code_default_values_recall" : true, - "link_default_opt_in" : "NONE", - "link_elements_pageload_sign_up_disabled" : false, - "link_funding_sources_onboarding_unavailable_from_holdback" : [ - - ], - "link_crypto_onramp_bank_upsell" : false, - "link_funding_sources" : [ - - ], - "link_disabled_reasons" : { - "payment_element_payment_method_mode" : [ - "link_not_specified_in_payment_method_types" - ], - "payment_element_passthrough_mode" : [ - "automatic_payment_methods_enabled", - "link_not_enabled_on_payment_config", - "not_gated_into_enable_m2_passthrough_mode" - ] - }, - "link_elements_is_crypto_onramp" : false, - "link_payment_element_disabled_by_targeting" : false, - "link_popup_webview_option" : "shared", - "link_targeting_results" : { - "payment_element_passthrough_mode" : null - }, - "link_disable_email_otp" : false, - "link_local_storage_login_enabled" : false, - "link_enable_instant_debits_in_testmode" : false, - "link_global_holdback_on" : false, - "link_session_storage_login_enabled" : false, - "link_payment_element_enable_webauthn_login" : false, - "link_payment_method_nicknames" : false, - "link_authenticated_change_event_enabled" : false, - "link_bank_onboarding_enabled" : false, - "link_hcaptcha_rqdata" : null, - "link_m2_default_integration_enabled" : false, - "link_financial_incentives_experiment_enabled" : false, - "link_passthrough_mode_enabled" : false, - "link_no_code_default_values_identification" : false, - "link_enable_email_otp_for_link_popup" : false, - "link_pay_button_element_enabled" : true, - "link_crypto_onramp_elements_logout_disabled" : false, - "link_mode" : null, - "link_no_code_default_values_usage" : false, - "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", - "link_crypto_onramp_force_cvc_reverification" : false, - "link_email_verification_login_enabled" : false, - "link_only_for_payment_method_types_enabled" : false, - "link_bank_incentives_enabled" : false, - "link_funding_sources_onboarding_enabled" : [ - - ], - "link_pm_killswitch_on_in_elements" : false - }, - "passive_captcha" : { - "site_key" : "20000000-ffff-ffff-ffff-000000000002", - "rqdata" : null - }, - "payment_method_specs" : [ - { - "async" : false, - "fields" : [ - - ], - "selector_icon" : { - "dark_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_dark@3x-3861df0768196df1a8ed7ed2a9d44d9b.png", - "dark_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_dark-e41f361095e9579a113d8e461ebbe594.svg", - "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light@3x-46eb8b8a4a252b78d7b4c3b96d4ed7ae.png", - "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light-22cdec0f5f5609554a34fa62fa583f23.svg" - }, - "type" : "amazon_pay", - "next_action_spec" : { - "confirm_response_status_specs" : { - "requires_action" : { - "type" : "redirect_to_url" - } - }, - "post_confirm_handling_pi_status_specs" : { - "requires_action" : { - "type" : "canceled" - }, - "succeeded" : { - "type" : "finished" - } - } - } - }, - { - "async" : false, - "type" : "card", - "fields" : [ - - ] - }, - { - "async" : false, - "fields" : [ - - ], - "type" : "cashapp", - "selector_icon" : { - "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp@3x-a89c5d8d0651cae2a511bb49a6be1cfc.png", - "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp-981164a833e417d28a8ac2684fda2324.svg" - } - } - ], - "session_id" : "elements_session_1jEsCBAT50j", - "shipping_address_settings" : { - "autocomplete_allowed" : false - }, - "business_name" : "CI Stuff", - "unverified_payment_methods_on_domain" : [ - "apple_pay" - ], - "apple_pay_preference" : "enabled", - "google_pay_preference" : "enabled", - "merchant_id" : "acct_1G6m1pFY0qyl6XeW", "payment_method_preference" : { "country_code" : "US", "object" : "payment_method_preference", "type" : "deferred_intent", "ordered_payment_method_types" : [ "card", - "cashapp", "amazon_pay", + "cashapp", "us_bank_account" ] }, - "prefill_selectors" : { - "default_values" : { - "email" : [ - - ], - "merchant_provides_default_values_on_update" : true - } - }, - "experiments_data" : { - "arb_id" : "7f44bef8-75bb-4e25-94be-2b561238ce40", - "experiment_assignments" : { - "elements_merchant_ui_api_srv" : "control", - "link_popup_webview_option_ios" : "control" - } - }, + "capability_enabled_card_networks" : [ + "cartes_bancaires" + ], "flags" : { "elements_enable_external_payment_method_wallets_india" : false, "elements_enable_external_payment_method_check" : false, "elements_enable_external_payment_method_fonix" : false, "elements_enable_external_payment_method_au_pay" : false, - "elements_enable_invalid_country_for_pm_error" : false, + "elements_enable_invalid_country_for_pm_error" : true, "elements_enable_external_payment_method_ebt_snap" : false, "elements_enable_external_payment_method_v_pay" : false, + "elements_enable_link_in_passthrough_ece" : true, "elements_enable_passive_hcaptcha_in_payment_method_creation" : true, "legacy_confirmation_tokens" : false, - "link_purchase_protections_enabled" : false, - "enable_third_party_recurring_express_checkout_element" : false, "elements_enable_external_payment_method_swish" : false, "elements_enable_external_payment_method_online_banking_poland" : false, "elements_enable_read_allow_redisplay" : false, @@ -194,15 +60,15 @@ x-content-type-options: nosniff "elements_enable_express_checkout_button_demo_pay" : false, "elements_enable_external_payment_method_tabby" : false, "elements_enable_mx_card_installments" : false, - "link_payment_method_nicknames" : true, + "elements_disable_link_global_holdback_lookup" : false, "elements_enable_external_payment_method_bpay" : false, "elements_enable_external_payment_method_laybuy" : false, "elements_enable_external_payment_method_bluecode" : false, "elements_enable_external_payment_method_grabpay_later" : false, + "elements_disable_klarna_ece_crossborder_validation" : false, "elements_disable_payment_element_card_country_zip_validations" : false, "elements_enable_external_payment_method_billie" : false, "elements_enable_external_payment_method_postfinance" : false, - "elements_enable_use_last_used_payment_method" : false, "elements_enable_external_payment_method_scalapay" : false, "elements_enable_external_payment_method_famipay" : false, "elements_enable_save_for_future_payments_pre_check" : false, @@ -212,12 +78,15 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pay_easy" : false, "elements_enable_external_payment_method_sequra" : false, "elements_spm_set_as_default" : true, - "elements_write_sfu_into_confirm_request" : false, + "payment_element_link_modal_preload_killswitch" : false, "elements_enable_external_payment_method_paidy" : false, "elements_enable_write_allow_redisplay" : false, "elements_enable_external_payment_method_online_banking_thailand" : false, "elements_enable_external_payment_method_momo" : false, "elements_enable_external_payment_method_payrexx" : false, + "elements_appearance_payment_accordion_overrides" : false, + "elements_enable_cb_apple_pay_for_connect_platforms" : true, + "link_purchase_protections_rollout" : false, "elements_enable_external_payment_method_walley" : false, "elements_enable_external_payment_method_mb_way" : false, "elements_enable_external_payment_method_rabbitline_pay" : false, @@ -228,23 +97,23 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pledg" : false, "elements_enable_klarna_unified_offer" : true, "elements_enable_external_payment_method_postepay" : false, + "elements_enable_19_digit_pans" : false, "elements_enable_external_payment_method_aplazo" : false, "elements_enable_external_payment_method_dapp" : false, - "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_atone" : false, "elements_enable_external_payment_method_dankort" : false, "elements_enable_external_payment_method_fawry" : false, "elements_enable_external_payment_method_payconiq" : false, - "elements_enable_external_payment_method_wechat_mobile" : false, + "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_paysafecard" : false, "elements_enable_external_payment_method_eftpos_australia" : false, + "elements_enable_external_payment_method_wechat_mobile" : false, "elements_spm_messages" : false, "elements_enable_external_payment_method_azupay" : false, "ece_apple_pay_payment_request_passthrough" : false, "elements_enable_external_payment_method_online_banking_czech_republic" : false, "elements_enable_external_payment_method_aplazame" : false, "elements_enable_external_payment_method_rakuten_pay" : false, - "elements_luxe_qr_ui_on_web_enabled" : false, "paypal_express_checkout_recurring_support" : false, "elements_enable_external_payment_method_paypo" : false, "elements_enable_external_payment_method_netbanking" : false, @@ -254,33 +123,30 @@ x-content-type-options: nosniff "financial_connections_enable_deferred_intent_flow" : true, "elements_enable_external_payment_method_hands_in" : false, "elements_enable_external_payment_method_younitedpay" : false, - "elements_enable_passive_captcha_on_payment_intent_update" : true, "elements_enable_br_card_installments" : false, "elements_enable_external_payment_method_atome" : false, "elements_enable_external_payment_method_mercado_pago" : false, "elements_enable_external_payment_method_amazon_pay" : false, "elements_enable_external_payment_method_line_pay" : false, "elements_enable_external_payment_method_paytm" : false, - "elements_enable_outer_action_show_upe_wallet" : true, "elements_enable_external_payment_method_catch" : false, "elements_enable_external_payment_method_skrill" : false, "elements_enable_external_payment_method_paypay" : false, + "elements_enable_klarna_express_checkout" : false, "elements_enable_external_payment_method_ratepay" : false, "elements_enable_external_payment_method_sezzle" : false, "elements_enable_external_payment_method_bankaxept" : false, "elements_enable_external_payment_method_satispay" : false, "elements_enable_external_payment_method_dbarai" : false, "elements_enable_external_payment_method_titres_restaurant" : false, + "elements_link_global_holdback_rollout" : false, "elements_enable_external_payment_method_coinbase_pay" : false, "elements_enable_external_payment_method_trustly" : false, - "elements_enable_save_last_used_payment_method" : true, "elements_enable_external_payment_method_kbc" : false, "elements_enable_external_payment_method_bizum" : false, "elements_enable_external_payment_method_gcash" : false, "elements_enable_card_brand_choice_payment_element_link" : true, "elements_enable_external_payment_method_payit" : false, - "elements_enable_payment_element_postal_validation" : true, - "link_doi_ungated_behavior_rollout" : true, "elements_enable_blik" : true, "elements_enable_south_korea_market_underlying_pms" : false, "elements_enable_external_payment_method_girocard" : false, @@ -294,11 +160,12 @@ x-content-type-options: nosniff "elements_enable_link_spm" : true, "elements_spm_max_visible_payment_methods" : false, "elements_disable_link_email_otp" : false, - "cbc_in_link_popup" : false, + "cbc_in_link_popup" : true, "elements_enable_external_payment_method_picpay" : false, "elements_enable_external_payment_method_planpay" : false, "elements_enable_external_payment_method_samsung_pay" : false, "elements_enable_external_payment_method_truelayer" : false, + "elements_enable_link_in_ece_personalization" : false, "elements_enable_passive_captcha" : true, "elements_disable_paypal_express" : false, "elements_disable_recurring_express_checkout_button_amazon_pay" : false, @@ -307,30 +174,22 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_payu" : false, "elements_disable_express_checkout_button_amazon_pay" : false, "elements_enable_external_payment_method_venmo" : false, + "disable_payment_element_if_required_billing_config" : false, + "link_set_active_field_true" : true, "elements_enable_external_payment_method_mondu" : false, "elements_enable_external_payment_method_paydirekt" : false, "elements_stop_move_focus_to_first_errored_field" : true, "elements_enable_external_payment_method_online_banking_slovakia" : false, "elements_enable_external_payment_method_interac" : false, - "link_new_learn_more_modal_enabled" : false, + "link_new_learn_more_modal_enabled" : true, "use_link_views" : false, "elements_enable_external_payment_method_mybank" : false }, - "external_payment_method_data" : null, - "unactivated_payment_method_types" : [ - "cashapp", - "amazon_pay", - "us_bank_account" - ], - "lpm_promotions" : null, - "merchant_country" : "US", - "paypal_express_config" : { - "client_id" : null, - "paypal_merchant_id" : null - }, - "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", - "customer" : null, + "merchant_logo_url" : null, + "session_id" : "elements_session_1hd0uJ4g1Lj", "account_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_currency" : "usd", "card_brand_choice" : { "eligible" : false, "preferred_networks" : [ @@ -340,20 +199,170 @@ x-content-type-options: nosniff "cartes_bancaires" : false } }, - "customer_error" : null, - "order" : null, + "shipping_address_settings" : { + "autocomplete_allowed" : false + }, + "external_payment_method_data" : null, + "meta_pay_signed_container_context" : null, + "apple_pay_preference" : "enabled", + "lpm_promotions" : null, + "merchant_country" : "US", + "google_pay_preference" : "enabled", + "paypal_express_config" : { + "client_id" : null, + "paypal_merchant_id" : null + }, + "experiments_data" : { + "arb_id" : "dd1715e8-989c-41f9-b801-0f3648579b5b", + "experiment_metadata" : { + "seed" : "f141acec06c73601adc1c212d38a020b85a1cdd62a3e46835373aeaf676a9090" + }, + "experiment_assignments" : { + "elements_merchant_ui_api_srv" : "control", + "link_popup_webview_option_ios" : "control", + "ocs_buyer_xp_elements_lpm_holdback" : "control" + } + }, "legacy_customer" : null, + "link_settings" : { + "link_enable_webauthn_for_link_popup" : false, + "link_no_code_default_values_recall" : true, + "link_payment_session_context" : null, + "link_consumer_incentive" : null, + "link_default_opt_in" : "NONE", + "link_elements_pageload_sign_up_disabled" : false, + "link_crypto_onramp_bank_upsell" : false, + "link_funding_sources" : [ + + ], + "link_disabled_reasons" : { + "payment_element_payment_method_mode" : [ + "link_not_specified_in_payment_method_types" + ], + "payment_element_passthrough_mode" : [ + "automatic_payment_methods_enabled", + "link_not_enabled_on_payment_config", + "not_gated_into_enable_m2_passthrough_mode" + ] + }, + "link_supported_payment_methods" : [ + + ], + "link_elements_is_crypto_onramp" : false, + "link_payment_element_disabled_by_targeting" : false, + "link_popup_webview_option" : "shared", + "link_targeting_results" : { + "payment_element_passthrough_mode" : null + }, + "link_disable_email_otp" : false, + "link_local_storage_login_enabled" : false, + "link_enable_instant_debits_in_testmode" : false, + "link_global_holdback_on" : false, + "link_session_storage_login_enabled" : false, + "link_payment_element_enable_webauthn_login" : false, + "link_authenticated_change_event_enabled" : false, + "link_bank_onboarding_enabled" : false, + "link_hcaptcha_rqdata" : null, + "link_m2_default_integration_enabled" : false, + "link_financial_incentives_experiment_enabled" : false, + "link_passthrough_mode_enabled" : false, + "link_no_code_default_values_identification" : true, + "link_enable_email_otp_for_link_popup" : false, + "link_pay_button_element_enabled" : true, + "link_crypto_onramp_elements_logout_disabled" : false, + "link_mode" : null, + "link_no_code_default_values_usage" : true, + "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", + "link_crypto_onramp_force_cvc_reverification" : false, + "link_email_verification_login_enabled" : false, + "link_only_for_payment_method_types_enabled" : false, + "link_bank_incentives_enabled" : false, + "link_pm_killswitch_on_in_elements" : false + }, + "passive_captcha" : { + "site_key" : "20000000-ffff-ffff-ffff-000000000002", + "rqdata" : null + }, + "payment_method_specs" : [ + { + "async" : false, + "fields" : [ + + ], + "selector_icon" : { + "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light@3x-46eb8b8a4a252b78d7b4c3b96d4ed7ae.png", + "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light-22cdec0f5f5609554a34fa62fa583f23.svg" + }, + "type" : "amazon_pay", + "next_action_spec" : { + "confirm_response_status_specs" : { + "requires_action" : { + "type" : "redirect_to_url" + } + }, + "post_confirm_handling_pi_status_specs" : { + "requires_action" : { + "type" : "canceled" + }, + "succeeded" : { + "type" : "finished" + } + } + } + }, + { + "async" : false, + "type" : "card", + "fields" : [ + + ] + }, + { + "async" : false, + "fields" : [ + + ], + "type" : "cashapp", + "selector_icon" : { + "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp@3x-a89c5d8d0651cae2a511bb49a6be1cfc.png", + "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp-981164a833e417d28a8ac2684fda2324.svg" + } + } + ], + "prefill_selectors" : { + "default_values" : { + "email" : [ + + ], + "merchant_provides_default_values_on_update" : true + } + }, + "unactivated_payment_method_types" : [ + "amazon_pay", + "cashapp", + "us_bank_account" + ], + "unverified_payment_methods_on_domain" : [ + "apple_pay" + ], + "order" : null, "link_purchase_protections_data" : { "type" : null, "is_eligible" : false }, - "merchant_logo_url" : null, + "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", + "customer" : null, + "klarna_express_config" : { + "klarna_mid" : null + }, + "business_name" : "CI Stuff", "ordered_payment_method_types_and_wallets" : [ "card", "apple_pay", + "amazon_pay", "cashapp", "google_pay", - "amazon_pay", "us_bank_account" - ] + ], + "customer_error" : null } \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentSucceeds/0003_get_v1_elements_sessions.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentSucceeds/0003_get_v1_elements_sessions.tail index 1c40d70ad00..809ab1cc002 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentSucceeds/0003_get_v1_elements_sessions.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentSucceeds/0003_get_v1_elements_sessions.tail @@ -1,22 +1,23 @@ GET -https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?client_default_payment_method=pm_1PiS2zFY0qyl6XeWlMKBbYVV&deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=setup&deferred_intent%5Bpayment_method_types%5D%5B0%5D=card&deferred_intent%5Bsetup_future_usage%5D=off_session&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ +https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?deferred_intent%5Bcurrency%5D=USD&deferred_intent%5Bmode%5D=setup&deferred_intent%5Bpayment_method_types%5D%5B0%5D=card&deferred_intent%5Bsetup_future_usage%5D=off_session&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ 200 application/json -access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE +access-control-allow-methods: GET, HEAD, PUT, PATCH, POST, DELETE content-security-policy: report-uri https://q.stripe.com/csp-report?p=v1%2Felements%2Fsessions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Server: nginx Cache-Control: no-cache, no-store reporting-endpoints: coop="https://q.stripe.com/coop-report?s=ocs-bapi-srv" +x-wc: A Strict-Transport-Security: max-age=63072000; includeSubDomains; preload cross-origin-opener-policy-report-only: same-origin; report-to="coop" Access-Control-Allow-Origin: * x-stripe-routing-context-priority-tier: api-testmode x-stripe-priority-routing-enabled: true report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=ocs-bapi-srv"}],"include_subdomains":true} -request-id: req_8K6mloJhEyYdbB -Content-Length: 12702 +request-id: req_wuZtwdaYA1Nm0r +Content-Length: 13002 Vary: Origin -Date: Wed, 31 Jul 2024 02:34:47 GMT +Date: Wed, 16 Oct 2024 17:07:30 GMT stripe-version: 2020-08-27 access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required access-control-max-age: 300 @@ -25,88 +26,6 @@ Content-Type: application/json x-content-type-options: nosniff { - "merchant_currency" : "usd", - "meta_pay_signed_container_context" : null, - "link_settings" : { - "link_enable_webauthn_for_link_popup" : false, - "link_no_code_default_values_recall" : true, - "link_default_opt_in" : "NONE", - "link_elements_pageload_sign_up_disabled" : false, - "link_funding_sources_onboarding_unavailable_from_holdback" : [ - - ], - "link_crypto_onramp_bank_upsell" : false, - "link_funding_sources" : [ - - ], - "link_disabled_reasons" : { - "payment_element_payment_method_mode" : [ - "link_not_specified_in_payment_method_types" - ], - "payment_element_passthrough_mode" : [ - "link_not_enabled_on_payment_config", - "not_gated_into_enable_m2_passthrough_mode" - ] - }, - "link_elements_is_crypto_onramp" : false, - "link_payment_element_disabled_by_targeting" : false, - "link_popup_webview_option" : "shared", - "link_targeting_results" : { - "payment_element_passthrough_mode" : null - }, - "link_disable_email_otp" : false, - "link_local_storage_login_enabled" : false, - "link_enable_instant_debits_in_testmode" : false, - "link_global_holdback_on" : false, - "link_session_storage_login_enabled" : false, - "link_payment_element_enable_webauthn_login" : false, - "link_payment_method_nicknames" : false, - "link_authenticated_change_event_enabled" : false, - "link_bank_onboarding_enabled" : false, - "link_hcaptcha_rqdata" : null, - "link_m2_default_integration_enabled" : false, - "link_financial_incentives_experiment_enabled" : false, - "link_passthrough_mode_enabled" : false, - "link_no_code_default_values_identification" : false, - "link_enable_email_otp_for_link_popup" : false, - "link_pay_button_element_enabled" : true, - "link_crypto_onramp_elements_logout_disabled" : false, - "link_mode" : null, - "link_no_code_default_values_usage" : false, - "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", - "link_crypto_onramp_force_cvc_reverification" : false, - "link_email_verification_login_enabled" : false, - "link_only_for_payment_method_types_enabled" : false, - "link_bank_incentives_enabled" : false, - "link_funding_sources_onboarding_enabled" : [ - - ], - "link_pm_killswitch_on_in_elements" : false - }, - "passive_captcha" : { - "site_key" : "20000000-ffff-ffff-ffff-000000000002", - "rqdata" : null - }, - "payment_method_specs" : [ - { - "async" : false, - "type" : "card", - "fields" : [ - - ] - } - ], - "session_id" : "elements_session_14g33E02aLu", - "shipping_address_settings" : { - "autocomplete_allowed" : false - }, - "business_name" : "CI Stuff", - "unverified_payment_methods_on_domain" : [ - "apple_pay" - ], - "apple_pay_preference" : "enabled", - "google_pay_preference" : "enabled", - "merchant_id" : "acct_1G6m1pFY0qyl6XeW", "payment_method_preference" : { "country_code" : "US", "object" : "payment_method_preference", @@ -115,33 +34,20 @@ x-content-type-options: nosniff "card" ] }, - "prefill_selectors" : { - "default_values" : { - "email" : [ - - ], - "merchant_provides_default_values_on_update" : true - } - }, - "experiments_data" : { - "arb_id" : "c67583de-63bc-47d5-bcf7-f2b28b46c5c0", - "experiment_assignments" : { - "elements_merchant_ui_api_srv" : "control", - "link_popup_webview_option_ios" : "control" - } - }, + "capability_enabled_card_networks" : [ + "cartes_bancaires" + ], "flags" : { "elements_enable_external_payment_method_wallets_india" : false, "elements_enable_external_payment_method_check" : false, "elements_enable_external_payment_method_fonix" : false, "elements_enable_external_payment_method_au_pay" : false, - "elements_enable_invalid_country_for_pm_error" : false, + "elements_enable_invalid_country_for_pm_error" : true, "elements_enable_external_payment_method_ebt_snap" : false, "elements_enable_external_payment_method_v_pay" : false, + "elements_enable_link_in_passthrough_ece" : true, "elements_enable_passive_hcaptcha_in_payment_method_creation" : true, "legacy_confirmation_tokens" : false, - "link_purchase_protections_enabled" : false, - "enable_third_party_recurring_express_checkout_element" : false, "elements_enable_external_payment_method_swish" : false, "elements_enable_external_payment_method_online_banking_poland" : false, "elements_enable_read_allow_redisplay" : false, @@ -151,15 +57,15 @@ x-content-type-options: nosniff "elements_enable_express_checkout_button_demo_pay" : false, "elements_enable_external_payment_method_tabby" : false, "elements_enable_mx_card_installments" : false, - "link_payment_method_nicknames" : true, + "elements_disable_link_global_holdback_lookup" : false, "elements_enable_external_payment_method_bpay" : false, "elements_enable_external_payment_method_laybuy" : false, "elements_enable_external_payment_method_bluecode" : false, "elements_enable_external_payment_method_grabpay_later" : false, + "elements_disable_klarna_ece_crossborder_validation" : false, "elements_disable_payment_element_card_country_zip_validations" : false, "elements_enable_external_payment_method_billie" : false, "elements_enable_external_payment_method_postfinance" : false, - "elements_enable_use_last_used_payment_method" : false, "elements_enable_external_payment_method_scalapay" : false, "elements_enable_external_payment_method_famipay" : false, "elements_enable_save_for_future_payments_pre_check" : false, @@ -169,12 +75,15 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pay_easy" : false, "elements_enable_external_payment_method_sequra" : false, "elements_spm_set_as_default" : true, - "elements_write_sfu_into_confirm_request" : false, + "payment_element_link_modal_preload_killswitch" : false, "elements_enable_external_payment_method_paidy" : false, "elements_enable_write_allow_redisplay" : false, "elements_enable_external_payment_method_online_banking_thailand" : false, "elements_enable_external_payment_method_momo" : false, "elements_enable_external_payment_method_payrexx" : false, + "elements_appearance_payment_accordion_overrides" : false, + "elements_enable_cb_apple_pay_for_connect_platforms" : true, + "link_purchase_protections_rollout" : false, "elements_enable_external_payment_method_walley" : false, "elements_enable_external_payment_method_mb_way" : false, "elements_enable_external_payment_method_rabbitline_pay" : false, @@ -185,23 +94,23 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pledg" : false, "elements_enable_klarna_unified_offer" : true, "elements_enable_external_payment_method_postepay" : false, + "elements_enable_19_digit_pans" : false, "elements_enable_external_payment_method_aplazo" : false, "elements_enable_external_payment_method_dapp" : false, - "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_atone" : false, "elements_enable_external_payment_method_dankort" : false, "elements_enable_external_payment_method_fawry" : false, "elements_enable_external_payment_method_payconiq" : false, - "elements_enable_external_payment_method_wechat_mobile" : false, + "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_paysafecard" : false, "elements_enable_external_payment_method_eftpos_australia" : false, + "elements_enable_external_payment_method_wechat_mobile" : false, "elements_spm_messages" : false, "elements_enable_external_payment_method_azupay" : false, "ece_apple_pay_payment_request_passthrough" : false, "elements_enable_external_payment_method_online_banking_czech_republic" : false, "elements_enable_external_payment_method_aplazame" : false, "elements_enable_external_payment_method_rakuten_pay" : false, - "elements_luxe_qr_ui_on_web_enabled" : false, "paypal_express_checkout_recurring_support" : false, "elements_enable_external_payment_method_paypo" : false, "elements_enable_external_payment_method_netbanking" : false, @@ -211,33 +120,30 @@ x-content-type-options: nosniff "financial_connections_enable_deferred_intent_flow" : true, "elements_enable_external_payment_method_hands_in" : false, "elements_enable_external_payment_method_younitedpay" : false, - "elements_enable_passive_captcha_on_payment_intent_update" : true, "elements_enable_br_card_installments" : false, "elements_enable_external_payment_method_atome" : false, "elements_enable_external_payment_method_mercado_pago" : false, "elements_enable_external_payment_method_amazon_pay" : false, "elements_enable_external_payment_method_line_pay" : false, "elements_enable_external_payment_method_paytm" : false, - "elements_enable_outer_action_show_upe_wallet" : true, "elements_enable_external_payment_method_catch" : false, "elements_enable_external_payment_method_skrill" : false, "elements_enable_external_payment_method_paypay" : false, + "elements_enable_klarna_express_checkout" : false, "elements_enable_external_payment_method_ratepay" : false, "elements_enable_external_payment_method_sezzle" : false, "elements_enable_external_payment_method_bankaxept" : false, "elements_enable_external_payment_method_satispay" : false, "elements_enable_external_payment_method_dbarai" : false, "elements_enable_external_payment_method_titres_restaurant" : false, + "elements_link_global_holdback_rollout" : false, "elements_enable_external_payment_method_coinbase_pay" : false, "elements_enable_external_payment_method_trustly" : false, - "elements_enable_save_last_used_payment_method" : true, "elements_enable_external_payment_method_kbc" : false, "elements_enable_external_payment_method_bizum" : false, "elements_enable_external_payment_method_gcash" : false, "elements_enable_card_brand_choice_payment_element_link" : true, "elements_enable_external_payment_method_payit" : false, - "elements_enable_payment_element_postal_validation" : true, - "link_doi_ungated_behavior_rollout" : true, "elements_enable_blik" : true, "elements_enable_south_korea_market_underlying_pms" : false, "elements_enable_external_payment_method_girocard" : false, @@ -251,11 +157,12 @@ x-content-type-options: nosniff "elements_enable_link_spm" : true, "elements_spm_max_visible_payment_methods" : false, "elements_disable_link_email_otp" : false, - "cbc_in_link_popup" : false, + "cbc_in_link_popup" : true, "elements_enable_external_payment_method_picpay" : false, "elements_enable_external_payment_method_planpay" : false, "elements_enable_external_payment_method_samsung_pay" : false, "elements_enable_external_payment_method_truelayer" : false, + "elements_enable_link_in_ece_personalization" : false, "elements_enable_passive_captcha" : true, "elements_disable_paypal_express" : false, "elements_disable_recurring_express_checkout_button_amazon_pay" : false, @@ -264,28 +171,22 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_payu" : false, "elements_disable_express_checkout_button_amazon_pay" : false, "elements_enable_external_payment_method_venmo" : false, + "disable_payment_element_if_required_billing_config" : false, + "link_set_active_field_true" : true, "elements_enable_external_payment_method_mondu" : false, "elements_enable_external_payment_method_paydirekt" : false, "elements_stop_move_focus_to_first_errored_field" : true, "elements_enable_external_payment_method_online_banking_slovakia" : false, "elements_enable_external_payment_method_interac" : false, - "link_new_learn_more_modal_enabled" : false, + "link_new_learn_more_modal_enabled" : true, "use_link_views" : false, "elements_enable_external_payment_method_mybank" : false }, - "external_payment_method_data" : null, - "unactivated_payment_method_types" : [ - - ], - "lpm_promotions" : null, - "merchant_country" : "US", - "paypal_express_config" : { - "client_id" : null, - "paypal_merchant_id" : null - }, - "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", - "customer" : null, + "merchant_logo_url" : null, + "session_id" : "elements_session_11hVDTm6W7Q", "account_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_currency" : "usd", "card_brand_choice" : { "eligible" : false, "preferred_networks" : [ @@ -295,17 +196,126 @@ x-content-type-options: nosniff "cartes_bancaires" : false } }, - "customer_error" : null, - "order" : null, + "shipping_address_settings" : { + "autocomplete_allowed" : false + }, + "external_payment_method_data" : null, + "meta_pay_signed_container_context" : null, + "apple_pay_preference" : "enabled", + "lpm_promotions" : null, + "merchant_country" : "US", + "google_pay_preference" : "enabled", + "paypal_express_config" : { + "client_id" : null, + "paypal_merchant_id" : null + }, + "experiments_data" : { + "arb_id" : "3a1c9360-59f1-4dc2-bed6-76e857bfe7da", + "experiment_metadata" : { + "seed" : "f141acec06c73601adc1c212d38a020b85a1cdd62a3e46835373aeaf676a9090" + }, + "experiment_assignments" : { + "elements_merchant_ui_api_srv" : "control", + "link_popup_webview_option_ios" : "control" + } + }, "legacy_customer" : null, + "link_settings" : { + "link_enable_webauthn_for_link_popup" : false, + "link_no_code_default_values_recall" : true, + "link_payment_session_context" : null, + "link_consumer_incentive" : null, + "link_default_opt_in" : "NONE", + "link_elements_pageload_sign_up_disabled" : false, + "link_crypto_onramp_bank_upsell" : false, + "link_funding_sources" : [ + + ], + "link_disabled_reasons" : { + "payment_element_payment_method_mode" : [ + "link_not_specified_in_payment_method_types" + ], + "payment_element_passthrough_mode" : [ + "link_not_enabled_on_payment_config", + "not_gated_into_enable_m2_passthrough_mode" + ] + }, + "link_supported_payment_methods" : [ + + ], + "link_elements_is_crypto_onramp" : false, + "link_payment_element_disabled_by_targeting" : false, + "link_popup_webview_option" : "shared", + "link_targeting_results" : { + "payment_element_passthrough_mode" : null + }, + "link_disable_email_otp" : false, + "link_local_storage_login_enabled" : false, + "link_enable_instant_debits_in_testmode" : false, + "link_global_holdback_on" : false, + "link_session_storage_login_enabled" : false, + "link_payment_element_enable_webauthn_login" : false, + "link_authenticated_change_event_enabled" : false, + "link_bank_onboarding_enabled" : false, + "link_hcaptcha_rqdata" : null, + "link_m2_default_integration_enabled" : false, + "link_financial_incentives_experiment_enabled" : false, + "link_passthrough_mode_enabled" : false, + "link_no_code_default_values_identification" : true, + "link_enable_email_otp_for_link_popup" : false, + "link_pay_button_element_enabled" : true, + "link_crypto_onramp_elements_logout_disabled" : false, + "link_mode" : null, + "link_no_code_default_values_usage" : true, + "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", + "link_crypto_onramp_force_cvc_reverification" : false, + "link_email_verification_login_enabled" : false, + "link_only_for_payment_method_types_enabled" : false, + "link_bank_incentives_enabled" : false, + "link_pm_killswitch_on_in_elements" : false + }, + "passive_captcha" : { + "site_key" : "20000000-ffff-ffff-ffff-000000000002", + "rqdata" : null + }, + "payment_method_specs" : [ + { + "async" : false, + "type" : "card", + "fields" : [ + + ] + } + ], + "prefill_selectors" : { + "default_values" : { + "email" : [ + + ], + "merchant_provides_default_values_on_update" : true + } + }, + "unactivated_payment_method_types" : [ + + ], + "unverified_payment_methods_on_domain" : [ + "apple_pay" + ], + "order" : null, "link_purchase_protections_data" : { "type" : null, "is_eligible" : false }, - "merchant_logo_url" : null, + "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", + "customer" : null, + "klarna_express_config" : { + "klarna_mid" : null + }, + "business_name" : "CI Stuff", "ordered_payment_method_types_and_wallets" : [ "card", "apple_pay", "google_pay" - ] + ], + "customer_error" : null } \ No newline at end of file diff --git a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentSucceeds/0004_get_v1_elements_sessions.tail b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentSucceeds/0004_get_v1_elements_sessions.tail index 12e9febaec4..4233a653845 100644 --- a/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentSucceeds/0004_get_v1_elements_sessions.tail +++ b/StripePayments/StripePaymentsTestUtils/Resources/recorded_network_traffic/PaymentSheetLoaderTest/testPaymentSheetLoadDeferredIntentSucceeds/0004_get_v1_elements_sessions.tail @@ -1,22 +1,23 @@ GET -https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?client_default_payment_method=pm_1PiS2zFY0qyl6XeWlMKBbYVV&deferred_intent%5Bmode%5D=setup&deferred_intent%5Bsetup_future_usage%5D=off_session&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ +https:\/\/api\.stripe\.com\/v1\/elements\/sessions\?deferred_intent%5Bmode%5D=setup&deferred_intent%5Bsetup_future_usage%5D=off_session&key=pk_test_ErsyMEOTudSjQR8hh0VrQr5X008sBXGOu6&locale=en-US&type=deferred_intent$ 200 application/json -access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE +access-control-allow-methods: GET, HEAD, PUT, PATCH, POST, DELETE content-security-policy: report-uri https://q.stripe.com/csp-report?p=v1%2Felements%2Fsessions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Server: nginx Cache-Control: no-cache, no-store reporting-endpoints: coop="https://q.stripe.com/coop-report?s=ocs-bapi-srv" +x-wc: A Strict-Transport-Security: max-age=63072000; includeSubDomains; preload cross-origin-opener-policy-report-only: same-origin; report-to="coop" Access-Control-Allow-Origin: * x-stripe-routing-context-priority-tier: api-testmode x-stripe-priority-routing-enabled: true report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=ocs-bapi-srv"}],"include_subdomains":true} -request-id: req_Lqa8ckg5e1tVNX -Content-Length: 14413 +request-id: req_GXBwtud33FtkIj +Content-Length: 14470 Vary: Origin -Date: Wed, 31 Jul 2024 02:34:47 GMT +Date: Wed, 16 Oct 2024 17:07:30 GMT stripe-version: 2020-08-27 access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required access-control-max-age: 300 @@ -25,166 +26,31 @@ Content-Type: application/json x-content-type-options: nosniff { - "merchant_currency" : "usd", - "meta_pay_signed_container_context" : null, - "link_settings" : { - "link_enable_webauthn_for_link_popup" : false, - "link_no_code_default_values_recall" : true, - "link_default_opt_in" : "NONE", - "link_elements_pageload_sign_up_disabled" : false, - "link_funding_sources_onboarding_unavailable_from_holdback" : [ - - ], - "link_crypto_onramp_bank_upsell" : false, - "link_funding_sources" : [ - - ], - "link_disabled_reasons" : { - "payment_element_payment_method_mode" : [ - "link_not_specified_in_payment_method_types" - ], - "payment_element_passthrough_mode" : [ - "automatic_payment_methods_enabled", - "link_not_enabled_on_payment_config", - "not_gated_into_enable_m2_passthrough_mode" - ] - }, - "link_elements_is_crypto_onramp" : false, - "link_payment_element_disabled_by_targeting" : false, - "link_popup_webview_option" : "shared", - "link_targeting_results" : { - "payment_element_passthrough_mode" : null - }, - "link_disable_email_otp" : false, - "link_local_storage_login_enabled" : false, - "link_enable_instant_debits_in_testmode" : false, - "link_global_holdback_on" : false, - "link_session_storage_login_enabled" : false, - "link_payment_element_enable_webauthn_login" : false, - "link_payment_method_nicknames" : false, - "link_authenticated_change_event_enabled" : false, - "link_bank_onboarding_enabled" : false, - "link_hcaptcha_rqdata" : null, - "link_m2_default_integration_enabled" : false, - "link_financial_incentives_experiment_enabled" : false, - "link_passthrough_mode_enabled" : false, - "link_no_code_default_values_identification" : true, - "link_enable_email_otp_for_link_popup" : false, - "link_pay_button_element_enabled" : true, - "link_crypto_onramp_elements_logout_disabled" : false, - "link_mode" : null, - "link_no_code_default_values_usage" : false, - "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", - "link_crypto_onramp_force_cvc_reverification" : false, - "link_email_verification_login_enabled" : false, - "link_only_for_payment_method_types_enabled" : false, - "link_bank_incentives_enabled" : false, - "link_funding_sources_onboarding_enabled" : [ - - ], - "link_pm_killswitch_on_in_elements" : false - }, - "passive_captcha" : { - "site_key" : "20000000-ffff-ffff-ffff-000000000002", - "rqdata" : null - }, - "payment_method_specs" : [ - { - "async" : false, - "fields" : [ - - ], - "selector_icon" : { - "dark_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_dark@3x-3861df0768196df1a8ed7ed2a9d44d9b.png", - "dark_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_dark-e41f361095e9579a113d8e461ebbe594.svg", - "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light@3x-46eb8b8a4a252b78d7b4c3b96d4ed7ae.png", - "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light-22cdec0f5f5609554a34fa62fa583f23.svg" - }, - "type" : "amazon_pay", - "next_action_spec" : { - "confirm_response_status_specs" : { - "requires_action" : { - "type" : "redirect_to_url" - } - }, - "post_confirm_handling_pi_status_specs" : { - "requires_action" : { - "type" : "canceled" - }, - "succeeded" : { - "type" : "finished" - } - } - } - }, - { - "async" : false, - "type" : "card", - "fields" : [ - - ] - }, - { - "async" : false, - "fields" : [ - - ], - "type" : "cashapp", - "selector_icon" : { - "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp@3x-a89c5d8d0651cae2a511bb49a6be1cfc.png", - "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp-981164a833e417d28a8ac2684fda2324.svg" - } - } - ], - "session_id" : "elements_session_1Hkt0rfLxsl", - "shipping_address_settings" : { - "autocomplete_allowed" : false - }, - "business_name" : "CI Stuff", - "unverified_payment_methods_on_domain" : [ - "apple_pay" - ], - "apple_pay_preference" : "enabled", - "google_pay_preference" : "enabled", - "merchant_id" : "acct_1G6m1pFY0qyl6XeW", "payment_method_preference" : { "country_code" : "US", "object" : "payment_method_preference", "type" : "deferred_intent", "ordered_payment_method_types" : [ "card", - "amazon_pay", "cashapp", + "amazon_pay", "us_bank_account" ] }, - "prefill_selectors" : { - "default_values" : { - "email" : [ - - ], - "merchant_provides_default_values_on_update" : true - } - }, - "experiments_data" : { - "arb_id" : "50b33e9e-ecca-412d-a17a-6b58e354c566", - "experiment_assignments" : { - "elements_merchant_ui_api_srv" : "control", - "link_popup_webview_option_ios" : "control" - } - }, + "capability_enabled_card_networks" : [ + "cartes_bancaires" + ], "flags" : { "elements_enable_external_payment_method_wallets_india" : false, "elements_enable_external_payment_method_check" : false, "elements_enable_external_payment_method_fonix" : false, "elements_enable_external_payment_method_au_pay" : false, - "elements_enable_invalid_country_for_pm_error" : false, + "elements_enable_invalid_country_for_pm_error" : true, "elements_enable_external_payment_method_ebt_snap" : false, "elements_enable_external_payment_method_v_pay" : false, + "elements_enable_link_in_passthrough_ece" : true, "elements_enable_passive_hcaptcha_in_payment_method_creation" : true, "legacy_confirmation_tokens" : false, - "link_purchase_protections_enabled" : false, - "enable_third_party_recurring_express_checkout_element" : false, "elements_enable_external_payment_method_swish" : false, "elements_enable_external_payment_method_online_banking_poland" : false, "elements_enable_read_allow_redisplay" : false, @@ -194,15 +60,15 @@ x-content-type-options: nosniff "elements_enable_express_checkout_button_demo_pay" : false, "elements_enable_external_payment_method_tabby" : false, "elements_enable_mx_card_installments" : false, - "link_payment_method_nicknames" : true, + "elements_disable_link_global_holdback_lookup" : false, "elements_enable_external_payment_method_bpay" : false, "elements_enable_external_payment_method_laybuy" : false, "elements_enable_external_payment_method_bluecode" : false, "elements_enable_external_payment_method_grabpay_later" : false, + "elements_disable_klarna_ece_crossborder_validation" : false, "elements_disable_payment_element_card_country_zip_validations" : false, "elements_enable_external_payment_method_billie" : false, "elements_enable_external_payment_method_postfinance" : false, - "elements_enable_use_last_used_payment_method" : false, "elements_enable_external_payment_method_scalapay" : false, "elements_enable_external_payment_method_famipay" : false, "elements_enable_save_for_future_payments_pre_check" : false, @@ -212,12 +78,15 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pay_easy" : false, "elements_enable_external_payment_method_sequra" : false, "elements_spm_set_as_default" : true, - "elements_write_sfu_into_confirm_request" : false, + "payment_element_link_modal_preload_killswitch" : false, "elements_enable_external_payment_method_paidy" : false, "elements_enable_write_allow_redisplay" : false, "elements_enable_external_payment_method_online_banking_thailand" : false, "elements_enable_external_payment_method_momo" : false, "elements_enable_external_payment_method_payrexx" : false, + "elements_appearance_payment_accordion_overrides" : false, + "elements_enable_cb_apple_pay_for_connect_platforms" : true, + "link_purchase_protections_rollout" : false, "elements_enable_external_payment_method_walley" : false, "elements_enable_external_payment_method_mb_way" : false, "elements_enable_external_payment_method_rabbitline_pay" : false, @@ -228,23 +97,23 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_pledg" : false, "elements_enable_klarna_unified_offer" : true, "elements_enable_external_payment_method_postepay" : false, + "elements_enable_19_digit_pans" : false, "elements_enable_external_payment_method_aplazo" : false, "elements_enable_external_payment_method_dapp" : false, - "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_atone" : false, "elements_enable_external_payment_method_dankort" : false, "elements_enable_external_payment_method_fawry" : false, "elements_enable_external_payment_method_payconiq" : false, - "elements_enable_external_payment_method_wechat_mobile" : false, + "elements_enable_external_payment_method_vipps" : false, "elements_enable_external_payment_method_paysafecard" : false, "elements_enable_external_payment_method_eftpos_australia" : false, + "elements_enable_external_payment_method_wechat_mobile" : false, "elements_spm_messages" : false, "elements_enable_external_payment_method_azupay" : false, "ece_apple_pay_payment_request_passthrough" : false, "elements_enable_external_payment_method_online_banking_czech_republic" : false, "elements_enable_external_payment_method_aplazame" : false, "elements_enable_external_payment_method_rakuten_pay" : false, - "elements_luxe_qr_ui_on_web_enabled" : false, "paypal_express_checkout_recurring_support" : false, "elements_enable_external_payment_method_paypo" : false, "elements_enable_external_payment_method_netbanking" : false, @@ -254,33 +123,30 @@ x-content-type-options: nosniff "financial_connections_enable_deferred_intent_flow" : true, "elements_enable_external_payment_method_hands_in" : false, "elements_enable_external_payment_method_younitedpay" : false, - "elements_enable_passive_captcha_on_payment_intent_update" : true, "elements_enable_br_card_installments" : false, "elements_enable_external_payment_method_atome" : false, "elements_enable_external_payment_method_mercado_pago" : false, "elements_enable_external_payment_method_amazon_pay" : false, "elements_enable_external_payment_method_line_pay" : false, "elements_enable_external_payment_method_paytm" : false, - "elements_enable_outer_action_show_upe_wallet" : true, "elements_enable_external_payment_method_catch" : false, "elements_enable_external_payment_method_skrill" : false, "elements_enable_external_payment_method_paypay" : false, + "elements_enable_klarna_express_checkout" : false, "elements_enable_external_payment_method_ratepay" : false, "elements_enable_external_payment_method_sezzle" : false, "elements_enable_external_payment_method_bankaxept" : false, "elements_enable_external_payment_method_satispay" : false, "elements_enable_external_payment_method_dbarai" : false, "elements_enable_external_payment_method_titres_restaurant" : false, + "elements_link_global_holdback_rollout" : false, "elements_enable_external_payment_method_coinbase_pay" : false, "elements_enable_external_payment_method_trustly" : false, - "elements_enable_save_last_used_payment_method" : true, "elements_enable_external_payment_method_kbc" : false, "elements_enable_external_payment_method_bizum" : false, "elements_enable_external_payment_method_gcash" : false, "elements_enable_card_brand_choice_payment_element_link" : true, "elements_enable_external_payment_method_payit" : false, - "elements_enable_payment_element_postal_validation" : true, - "link_doi_ungated_behavior_rollout" : true, "elements_enable_blik" : true, "elements_enable_south_korea_market_underlying_pms" : false, "elements_enable_external_payment_method_girocard" : false, @@ -294,11 +160,12 @@ x-content-type-options: nosniff "elements_enable_link_spm" : true, "elements_spm_max_visible_payment_methods" : false, "elements_disable_link_email_otp" : false, - "cbc_in_link_popup" : false, + "cbc_in_link_popup" : true, "elements_enable_external_payment_method_picpay" : false, "elements_enable_external_payment_method_planpay" : false, "elements_enable_external_payment_method_samsung_pay" : false, "elements_enable_external_payment_method_truelayer" : false, + "elements_enable_link_in_ece_personalization" : false, "elements_enable_passive_captcha" : true, "elements_disable_paypal_express" : false, "elements_disable_recurring_express_checkout_button_amazon_pay" : false, @@ -307,30 +174,22 @@ x-content-type-options: nosniff "elements_enable_external_payment_method_payu" : false, "elements_disable_express_checkout_button_amazon_pay" : false, "elements_enable_external_payment_method_venmo" : false, + "disable_payment_element_if_required_billing_config" : false, + "link_set_active_field_true" : true, "elements_enable_external_payment_method_mondu" : false, "elements_enable_external_payment_method_paydirekt" : false, "elements_stop_move_focus_to_first_errored_field" : true, "elements_enable_external_payment_method_online_banking_slovakia" : false, "elements_enable_external_payment_method_interac" : false, - "link_new_learn_more_modal_enabled" : false, + "link_new_learn_more_modal_enabled" : true, "use_link_views" : false, "elements_enable_external_payment_method_mybank" : false }, - "external_payment_method_data" : null, - "unactivated_payment_method_types" : [ - "amazon_pay", - "cashapp", - "us_bank_account" - ], - "lpm_promotions" : null, - "merchant_country" : "US", - "paypal_express_config" : { - "client_id" : null, - "paypal_merchant_id" : null - }, - "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", - "customer" : null, + "merchant_logo_url" : null, + "session_id" : "elements_session_1iGwauzaDSf", "account_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_id" : "acct_1G6m1pFY0qyl6XeW", + "merchant_currency" : "usd", "card_brand_choice" : { "eligible" : false, "preferred_networks" : [ @@ -340,20 +199,170 @@ x-content-type-options: nosniff "cartes_bancaires" : true } }, - "customer_error" : null, - "order" : null, + "shipping_address_settings" : { + "autocomplete_allowed" : false + }, + "external_payment_method_data" : null, + "meta_pay_signed_container_context" : null, + "apple_pay_preference" : "enabled", + "lpm_promotions" : null, + "merchant_country" : "US", + "google_pay_preference" : "enabled", + "paypal_express_config" : { + "client_id" : null, + "paypal_merchant_id" : null + }, + "experiments_data" : { + "arb_id" : "2c323e60-4081-44ab-8913-03f2e47722da", + "experiment_metadata" : { + "seed" : "f141acec06c73601adc1c212d38a020b85a1cdd62a3e46835373aeaf676a9090" + }, + "experiment_assignments" : { + "elements_merchant_ui_api_srv" : "control", + "link_popup_webview_option_ios" : "control", + "ocs_buyer_xp_elements_lpm_holdback" : "control" + } + }, "legacy_customer" : null, + "link_settings" : { + "link_enable_webauthn_for_link_popup" : false, + "link_no_code_default_values_recall" : true, + "link_payment_session_context" : null, + "link_consumer_incentive" : null, + "link_default_opt_in" : "NONE", + "link_elements_pageload_sign_up_disabled" : false, + "link_crypto_onramp_bank_upsell" : false, + "link_funding_sources" : [ + + ], + "link_disabled_reasons" : { + "payment_element_payment_method_mode" : [ + "link_not_specified_in_payment_method_types" + ], + "payment_element_passthrough_mode" : [ + "automatic_payment_methods_enabled", + "link_not_enabled_on_payment_config", + "not_gated_into_enable_m2_passthrough_mode" + ] + }, + "link_supported_payment_methods" : [ + + ], + "link_elements_is_crypto_onramp" : false, + "link_payment_element_disabled_by_targeting" : false, + "link_popup_webview_option" : "shared", + "link_targeting_results" : { + "payment_element_passthrough_mode" : null + }, + "link_disable_email_otp" : false, + "link_local_storage_login_enabled" : false, + "link_enable_instant_debits_in_testmode" : false, + "link_global_holdback_on" : false, + "link_session_storage_login_enabled" : false, + "link_payment_element_enable_webauthn_login" : false, + "link_authenticated_change_event_enabled" : false, + "link_bank_onboarding_enabled" : false, + "link_hcaptcha_rqdata" : null, + "link_m2_default_integration_enabled" : false, + "link_financial_incentives_experiment_enabled" : false, + "link_passthrough_mode_enabled" : false, + "link_no_code_default_values_identification" : true, + "link_enable_email_otp_for_link_popup" : false, + "link_pay_button_element_enabled" : true, + "link_crypto_onramp_elements_logout_disabled" : false, + "link_mode" : null, + "link_no_code_default_values_usage" : true, + "link_hcaptcha_site_key" : "20000000-ffff-ffff-ffff-000000000002", + "link_crypto_onramp_force_cvc_reverification" : false, + "link_email_verification_login_enabled" : false, + "link_only_for_payment_method_types_enabled" : false, + "link_bank_incentives_enabled" : false, + "link_pm_killswitch_on_in_elements" : false + }, + "passive_captcha" : { + "site_key" : "20000000-ffff-ffff-ffff-000000000002", + "rqdata" : null + }, + "payment_method_specs" : [ + { + "async" : false, + "fields" : [ + + ], + "selector_icon" : { + "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light@3x-46eb8b8a4a252b78d7b4c3b96d4ed7ae.png", + "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-amazonpay_light-22cdec0f5f5609554a34fa62fa583f23.svg" + }, + "type" : "amazon_pay", + "next_action_spec" : { + "confirm_response_status_specs" : { + "requires_action" : { + "type" : "redirect_to_url" + } + }, + "post_confirm_handling_pi_status_specs" : { + "requires_action" : { + "type" : "canceled" + }, + "succeeded" : { + "type" : "finished" + } + } + } + }, + { + "async" : false, + "type" : "card", + "fields" : [ + + ] + }, + { + "async" : false, + "fields" : [ + + ], + "type" : "cashapp", + "selector_icon" : { + "light_theme_png" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp@3x-a89c5d8d0651cae2a511bb49a6be1cfc.png", + "light_theme_svg" : "https:\/\/js.stripe.com\/v3\/fingerprinted\/img\/payment-methods\/icon-pm-cashapp-981164a833e417d28a8ac2684fda2324.svg" + } + } + ], + "prefill_selectors" : { + "default_values" : { + "email" : [ + + ], + "merchant_provides_default_values_on_update" : true + } + }, + "unactivated_payment_method_types" : [ + "cashapp", + "amazon_pay", + "us_bank_account" + ], + "unverified_payment_methods_on_domain" : [ + "apple_pay" + ], + "order" : null, "link_purchase_protections_data" : { "type" : null, "is_eligible" : false }, - "merchant_logo_url" : null, + "apple_pay_merchant_token_webhook_url" : "https:\/\/pm-hooks.stripe.com\/apple_pay\/merchant_token\/pDq7tf9uieoQWMVJixFwuOve\/acct_1G6m1pFY0qyl6XeW\/", + "customer" : null, + "klarna_express_config" : { + "klarna_mid" : null + }, + "business_name" : "CI Stuff", "ordered_payment_method_types_and_wallets" : [ "card", "apple_pay", - "amazon_pay", "cashapp", "google_pay", + "amazon_pay", "us_bank_account" - ] + ], + "customer_error" : null } \ No newline at end of file