From 85e3d5d8580b4c7bb04c1f5634c7582a3e164349 Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Mon, 22 Apr 2024 17:21:19 +0100 Subject: [PATCH] Tests payment intents for offline payments Moves let variables outside shared examples block Re-records cassettes --- ...t_intent_last_payment_error_as_message.yml | 632 ++++++++++++ ...t_intent_last_payment_error_as_message.yml | 632 ++++++++++++ ...t_intent_last_payment_error_as_message.yml | 632 ++++++++++++ ...t_intent_last_payment_error_as_message.yml | 632 ++++++++++++ ...t_intent_last_payment_error_as_message.yml | 632 ++++++++++++ ...t_intent_last_payment_error_as_message.yml | 632 ++++++++++++ ...t_intent_last_payment_error_as_message.yml | 630 ++++++++++++ ...t_intent_last_payment_error_as_message.yml | 632 ++++++++++++ .../captures_the_payment.yml | 905 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 512 ++++++++++ .../captures_the_payment.yml | 905 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 512 ++++++++++ .../from_Diners_Club/captures_the_payment.yml | 905 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 512 ++++++++++ .../captures_the_payment.yml | 905 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 512 ++++++++++ .../from_Discover/captures_the_payment.yml | 905 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 512 ++++++++++ .../captures_the_payment.yml | 905 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 512 ++++++++++ .../from_JCB/captures_the_payment.yml | 905 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 512 ++++++++++ .../from_Mastercard/captures_the_payment.yml | 905 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 512 ++++++++++ .../captures_the_payment.yml | 905 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 512 ++++++++++ .../captures_the_payment.yml | 905 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 512 ++++++++++ .../captures_the_payment.yml | 905 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 512 ++++++++++ .../from_UnionPay/captures_the_payment.yml | 905 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 512 ++++++++++ .../captures_the_payment.yml | 905 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 512 ++++++++++ .../from_Visa/captures_the_payment.yml | 905 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 512 ++++++++++ .../from_Visa_debit_/captures_the_payment.yml | 905 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 512 ++++++++++ ...t_intent_last_payment_error_as_message.yml | 70 +- ...t_intent_last_payment_error_as_message.yml | 70 +- ...t_intent_last_payment_error_as_message.yml | 70 +- ...t_intent_last_payment_error_as_message.yml | 70 +- ...t_intent_last_payment_error_as_message.yml | 70 +- ...t_intent_last_payment_error_as_message.yml | 70 +- ...t_intent_last_payment_error_as_message.yml | 70 +- ...t_intent_last_payment_error_as_message.yml | 70 +- .../captures_the_payment.yml | 116 +-- ...s_payment_intent_id_and_does_not_raise.yml | 58 +- .../captures_the_payment.yml | 116 +-- ...s_payment_intent_id_and_does_not_raise.yml | 58 +- .../from_Diners_Club/captures_the_payment.yml | 116 +-- ...s_payment_intent_id_and_does_not_raise.yml | 58 +- .../captures_the_payment.yml | 116 +-- ...s_payment_intent_id_and_does_not_raise.yml | 58 +- .../from_Discover/captures_the_payment.yml | 116 +-- ...s_payment_intent_id_and_does_not_raise.yml | 58 +- .../captures_the_payment.yml | 116 +-- ...s_payment_intent_id_and_does_not_raise.yml | 58 +- .../from_JCB/captures_the_payment.yml | 116 +-- ...s_payment_intent_id_and_does_not_raise.yml | 58 +- .../from_Mastercard/captures_the_payment.yml | 116 +-- ...s_payment_intent_id_and_does_not_raise.yml | 58 +- .../captures_the_payment.yml | 116 +-- ...s_payment_intent_id_and_does_not_raise.yml | 58 +- .../captures_the_payment.yml | 116 +-- ...s_payment_intent_id_and_does_not_raise.yml | 58 +- .../captures_the_payment.yml | 116 +-- ...s_payment_intent_id_and_does_not_raise.yml | 58 +- .../from_UnionPay/captures_the_payment.yml | 116 +-- ...s_payment_intent_id_and_does_not_raise.yml | 58 +- .../captures_the_payment.yml | 116 +-- ...s_payment_intent_id_and_does_not_raise.yml | 58 +- .../from_Visa/captures_the_payment.yml | 116 +-- ...s_payment_intent_id_and_does_not_raise.yml | 58 +- .../from_Visa_debit_/captures_the_payment.yml | 116 +-- ...s_payment_intent_id_and_does_not_raise.yml | 58 +- .../stripe/payment_intent_validator_spec.rb | 381 +++++--- 77 files changed, 28163 insertions(+), 1697 deletions(-) create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Exceeding_velocity_limit_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Expired_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Generic_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Incorrect_CVC_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Insufficient_funds_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Lost_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Processing_error_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Stolen_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/captures_the_payment.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/captures_the_payment.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/captures_the_payment.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/captures_the_payment.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/captures_the_payment.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/captures_the_payment.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/captures_the_payment.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/captures_the_payment.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/captures_the_payment.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/captures_the_payment.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/captures_the_payment.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/captures_the_payment.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/captures_the_payment.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/captures_the_payment.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/captures_the_payment.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/returns_payment_intent_id_and_does_not_raise.yml rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Exceeding_velocity_limit_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml (89%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Expired_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml (89%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Generic_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml (89%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Incorrect_CVC_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml (89%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Insufficient_funds_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml (89%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Lost_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml (89%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Processing_error_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml (89%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Stolen_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml (89%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/captures_the_payment.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/returns_payment_intent_id_and_does_not_raise.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/captures_the_payment.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/returns_payment_intent_id_and_does_not_raise.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/captures_the_payment.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/returns_payment_intent_id_and_does_not_raise.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/captures_the_payment.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/returns_payment_intent_id_and_does_not_raise.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/captures_the_payment.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/returns_payment_intent_id_and_does_not_raise.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/captures_the_payment.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/returns_payment_intent_id_and_does_not_raise.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/captures_the_payment.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/returns_payment_intent_id_and_does_not_raise.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/captures_the_payment.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/returns_payment_intent_id_and_does_not_raise.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/captures_the_payment.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/returns_payment_intent_id_and_does_not_raise.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/captures_the_payment.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/returns_payment_intent_id_and_does_not_raise.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/captures_the_payment.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/returns_payment_intent_id_and_does_not_raise.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/captures_the_payment.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/returns_payment_intent_id_and_does_not_raise.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/captures_the_payment.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/returns_payment_intent_id_and_does_not_raise.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/captures_the_payment.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/returns_payment_intent_id_and_does_not_raise.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/captures_the_payment.yml (88%) rename spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/{ => as_a_guest}/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/returns_payment_intent_id_and_does_not_raise.yml (88%) diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Exceeding_velocity_limit_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Exceeding_velocity_limit_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml new file mode 100644 index 0000000000..a457dd85fe --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Exceeding_velocity_limit_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml @@ -0,0 +1,632 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=4000000000006975&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_sojXClxhQQaFbW","request_duration_ms":394}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:59 GMT + Content-Type: + - application/json + Content-Length: + - '996' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 22e0121b-31af-4767-b4ae-cd488f756d92 + Original-Request: + - req_rLIXRkYVBfZDQW + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_rLIXRkYVBfZDQW + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hR9KuuB1fWySnujBh02U7", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "visa", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "WoxwxVPUPcg0EjXW", + "funding": "credit", + "generated_from": null, + "last4": "6975", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871379, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:22:59 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_rLIXRkYVBfZDQW","request_duration_ms":453}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:59 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 78275c47-0297-4c0e-a239-98563992887d + Original-Request: + - req_GVnMFgqWxAysaQ + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_GVnMFgqWxAysaQ + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_PyekV1ShGBjY8G", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871379, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "84F0FD2D", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:22:59 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hR9KuuB1fWySnujBh02U7&payment_method_types[0]=card&capture_method=manual&customer=cus_PyekV1ShGBjY8G&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_GVnMFgqWxAysaQ","request_duration_ms":429}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:23:00 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 162743d2-74b2-4292-a1ee-0bc2bb6a4801 + Original-Request: + - req_zlPjMc54Tkbu9m + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_zlPjMc54Tkbu9m + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hR9KuuB1fWySn1nJd2Z0s", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871379, + "currency": "eur", + "customer": "cus_PyekV1ShGBjY8G", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hR9KuuB1fWySnujBh02U7", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:23:00 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hR9KuuB1fWySn1nJd2Z0s/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_zlPjMc54Tkbu9m","request_duration_ms":487}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 402 + message: Payment Required + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:23:01 GMT + Content-Type: + - application/json + Content-Length: + - '5051' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 5a61ef34-70b9-4d94-a0d7-47616a39b2b4 + Original-Request: + - req_fyMzG745GeHI6Y + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_fyMzG745GeHI6Y + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: | + { + "error": { + "charge": "ch_3P8hR9KuuB1fWySn1n33UgF4", + "code": "card_declined", + "decline_code": "card_velocity_exceeded", + "doc_url": "https://stripe.com/docs/error-codes/card-declined", + "message": "Your card was declined for making repeated attempts too frequently or exceeding its amount limit.", + "payment_intent": { + "id": "pi_3P8hR9KuuB1fWySn1nJd2Z0s", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": { + } + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871379, + "currency": "eur", + "customer": "cus_PyekV1ShGBjY8G", + "description": null, + "invoice": null, + "last_payment_error": { + "charge": "ch_3P8hR9KuuB1fWySn1n33UgF4", + "code": "card_declined", + "decline_code": "card_velocity_exceeded", + "doc_url": "https://stripe.com/docs/error-codes/card-declined", + "message": "Your card was declined for making repeated attempts too frequently or exceeding its amount limit.", + "payment_method": { + "id": "pm_1P8hR9KuuB1fWySnujBh02U7", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "pass" + }, + "country": "US", + "display_brand": "visa", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "WoxwxVPUPcg0EjXW", + "funding": "credit", + "generated_from": null, + "last4": "6975", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871379, + "customer": null, + "livemode": false, + "metadata": { + }, + "type": "card" + }, + "type": "card_error" + }, + "latest_charge": "ch_3P8hR9KuuB1fWySn1n33UgF4", + "livemode": false, + "metadata": { + }, + "next_action": null, + "on_behalf_of": null, + "payment_method": null, + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_payment_method", + "transfer_data": null, + "transfer_group": null + }, + "payment_method": { + "id": "pm_1P8hR9KuuB1fWySnujBh02U7", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "pass" + }, + "country": "US", + "display_brand": "visa", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "WoxwxVPUPcg0EjXW", + "funding": "credit", + "generated_from": null, + "last4": "6975", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871379, + "customer": null, + "livemode": false, + "metadata": { + }, + "type": "card" + }, + "request_log_url": "https://dashboard.stripe.com/test/logs/req_fyMzG745GeHI6Y?t=1713871380", + "type": "card_error" + } + } + recorded_at: Tue, 23 Apr 2024 11:23:01 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Expired_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Expired_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml new file mode 100644 index 0000000000..077dc39ebc --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Expired_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml @@ -0,0 +1,632 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=4000000000000069&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_M2EjGTJOmFPvjA","request_duration_ms":413}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:51 GMT + Content-Type: + - application/json + Content-Length: + - '996' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 178dad88-b557-4875-bbfa-d9ecfdfb98b5 + Original-Request: + - req_bqKC4w4oOMZvSc + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_bqKC4w4oOMZvSc + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hR1KuuB1fWySnbxi4nn24", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "visa", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "qpQikrTL7IyNA2rE", + "funding": "credit", + "generated_from": null, + "last4": "0069", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871371, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:22:51 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_bqKC4w4oOMZvSc","request_duration_ms":533}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:52 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 5835fb77-1637-4a76-ad9d-792b3db11f50 + Original-Request: + - req_SfQyNVeNfePrtc + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_SfQyNVeNfePrtc + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_PyekuTW9G8teWh", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871371, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "0A1B36ED", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:22:52 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hR1KuuB1fWySnbxi4nn24&payment_method_types[0]=card&capture_method=manual&customer=cus_PyekuTW9G8teWh&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_SfQyNVeNfePrtc","request_duration_ms":509}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:52 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 0a884fa9-98f8-4aa7-baaf-0c03ef7042ea + Original-Request: + - req_YNJjarvaZJsYcl + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_YNJjarvaZJsYcl + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hR2KuuB1fWySn2lcIMkzA", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871372, + "currency": "eur", + "customer": "cus_PyekuTW9G8teWh", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hR1KuuB1fWySnbxi4nn24", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:52 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hR2KuuB1fWySn2lcIMkzA/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_YNJjarvaZJsYcl","request_duration_ms":510}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 402 + message: Payment Required + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:53 GMT + Content-Type: + - application/json + Content-Length: + - '4857' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - f6345948-00a4-4462-a7ad-6b2c14710441 + Original-Request: + - req_a226IErp01tmAg + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_a226IErp01tmAg + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: | + { + "error": { + "charge": "ch_3P8hR2KuuB1fWySn2Q4UrurZ", + "code": "expired_card", + "doc_url": "https://stripe.com/docs/error-codes/expired-card", + "message": "Your card has expired.", + "param": "exp_month", + "payment_intent": { + "id": "pi_3P8hR2KuuB1fWySn2lcIMkzA", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": { + } + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871372, + "currency": "eur", + "customer": "cus_PyekuTW9G8teWh", + "description": null, + "invoice": null, + "last_payment_error": { + "charge": "ch_3P8hR2KuuB1fWySn2Q4UrurZ", + "code": "expired_card", + "doc_url": "https://stripe.com/docs/error-codes/expired-card", + "message": "Your card has expired.", + "param": "exp_month", + "payment_method": { + "id": "pm_1P8hR1KuuB1fWySnbxi4nn24", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "pass" + }, + "country": "US", + "display_brand": "visa", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "qpQikrTL7IyNA2rE", + "funding": "credit", + "generated_from": null, + "last4": "0069", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871371, + "customer": null, + "livemode": false, + "metadata": { + }, + "type": "card" + }, + "type": "card_error" + }, + "latest_charge": "ch_3P8hR2KuuB1fWySn2Q4UrurZ", + "livemode": false, + "metadata": { + }, + "next_action": null, + "on_behalf_of": null, + "payment_method": null, + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_payment_method", + "transfer_data": null, + "transfer_group": null + }, + "payment_method": { + "id": "pm_1P8hR1KuuB1fWySnbxi4nn24", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "pass" + }, + "country": "US", + "display_brand": "visa", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "qpQikrTL7IyNA2rE", + "funding": "credit", + "generated_from": null, + "last4": "0069", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871371, + "customer": null, + "livemode": false, + "metadata": { + }, + "type": "card" + }, + "request_log_url": "https://dashboard.stripe.com/test/logs/req_a226IErp01tmAg?t=1713871372", + "type": "card_error" + } + } + recorded_at: Tue, 23 Apr 2024 11:22:53 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Generic_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Generic_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml new file mode 100644 index 0000000000..c1529614fc --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Generic_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml @@ -0,0 +1,632 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=4000000000000002&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_jw6WIU0GBeVnT2","request_duration_ms":406}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:41 GMT + Content-Type: + - application/json + Content-Length: + - '996' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - b7635034-0538-409f-8de4-029495aa738e + Original-Request: + - req_17rocy9XEkwQk7 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_17rocy9XEkwQk7 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hQrKuuB1fWySnoJXDVbMV", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "visa", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "IKC2ubfpSLuZKsVs", + "funding": "credit", + "generated_from": null, + "last4": "0002", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871361, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:22:41 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_17rocy9XEkwQk7","request_duration_ms":445}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:41 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - ac92f435-bad8-453d-a832-6b6b01ea665d + Original-Request: + - req_hmFNjhNpTLnsD2 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_hmFNjhNpTLnsD2 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_Pyek1w8BYYKnV9", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871361, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "8824622E", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:22:41 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hQrKuuB1fWySnoJXDVbMV&payment_method_types[0]=card&capture_method=manual&customer=cus_Pyek1w8BYYKnV9&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_hmFNjhNpTLnsD2","request_duration_ms":503}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:42 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 24277f63-f991-44e9-a545-04e748071bf9 + Original-Request: + - req_9auOceZoxHo5tE + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_9auOceZoxHo5tE + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQsKuuB1fWySn0dRsCAlk", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871362, + "currency": "eur", + "customer": "cus_Pyek1w8BYYKnV9", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQrKuuB1fWySnoJXDVbMV", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:42 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQsKuuB1fWySn0dRsCAlk/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_9auOceZoxHo5tE","request_duration_ms":509}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 402 + message: Payment Required + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:43 GMT + Content-Type: + - application/json + Content-Length: + - '4889' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - df30ad1c-4cf2-4fef-a887-03a948f403da + Original-Request: + - req_d5nQ4wPD4E7f6U + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_d5nQ4wPD4E7f6U + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: | + { + "error": { + "charge": "ch_3P8hQsKuuB1fWySn02qML9H0", + "code": "card_declined", + "decline_code": "generic_decline", + "doc_url": "https://stripe.com/docs/error-codes/card-declined", + "message": "Your card was declined.", + "payment_intent": { + "id": "pi_3P8hQsKuuB1fWySn0dRsCAlk", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": { + } + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871362, + "currency": "eur", + "customer": "cus_Pyek1w8BYYKnV9", + "description": null, + "invoice": null, + "last_payment_error": { + "charge": "ch_3P8hQsKuuB1fWySn02qML9H0", + "code": "card_declined", + "decline_code": "generic_decline", + "doc_url": "https://stripe.com/docs/error-codes/card-declined", + "message": "Your card was declined.", + "payment_method": { + "id": "pm_1P8hQrKuuB1fWySnoJXDVbMV", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "pass" + }, + "country": "US", + "display_brand": "visa", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "IKC2ubfpSLuZKsVs", + "funding": "credit", + "generated_from": null, + "last4": "0002", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871361, + "customer": null, + "livemode": false, + "metadata": { + }, + "type": "card" + }, + "type": "card_error" + }, + "latest_charge": "ch_3P8hQsKuuB1fWySn02qML9H0", + "livemode": false, + "metadata": { + }, + "next_action": null, + "on_behalf_of": null, + "payment_method": null, + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_payment_method", + "transfer_data": null, + "transfer_group": null + }, + "payment_method": { + "id": "pm_1P8hQrKuuB1fWySnoJXDVbMV", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "pass" + }, + "country": "US", + "display_brand": "visa", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "IKC2ubfpSLuZKsVs", + "funding": "credit", + "generated_from": null, + "last4": "0002", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871361, + "customer": null, + "livemode": false, + "metadata": { + }, + "type": "card" + }, + "request_log_url": "https://dashboard.stripe.com/test/logs/req_d5nQ4wPD4E7f6U?t=1713871362", + "type": "card_error" + } + } + recorded_at: Tue, 23 Apr 2024 11:22:43 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Incorrect_CVC_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Incorrect_CVC_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml new file mode 100644 index 0000000000..20386adda1 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Incorrect_CVC_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml @@ -0,0 +1,632 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=4000000000000127&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_YNJjarvaZJsYcl","request_duration_ms":510}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:54 GMT + Content-Type: + - application/json + Content-Length: + - '996' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 5be022b2-592a-457f-823e-4222727e3646 + Original-Request: + - req_SogiZHLOYlhFRn + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_SogiZHLOYlhFRn + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hR3KuuB1fWySnQyTSkSEY", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "visa", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "eWmxEL5j3bNdPnK5", + "funding": "credit", + "generated_from": null, + "last4": "0127", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871374, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:22:54 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_SogiZHLOYlhFRn","request_duration_ms":443}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:54 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - d5888172-b4f9-4931-804d-a9e0743066f3 + Original-Request: + - req_6VS5p3Zquah6Lb + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_6VS5p3Zquah6Lb + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_Pyek0DFHdMA6i4", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871374, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "95A6066A", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:22:54 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hR3KuuB1fWySnQyTSkSEY&payment_method_types[0]=card&capture_method=manual&customer=cus_Pyek0DFHdMA6i4&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_6VS5p3Zquah6Lb","request_duration_ms":480}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:55 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - cf247e80-4e3b-444d-b26a-74c85e463dae + Original-Request: + - req_XZhN6FLRgLDom3 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_XZhN6FLRgLDom3 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hR4KuuB1fWySn1FYBXndE", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871374, + "currency": "eur", + "customer": "cus_Pyek0DFHdMA6i4", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hR3KuuB1fWySnQyTSkSEY", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:55 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hR4KuuB1fWySn1FYBXndE/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_XZhN6FLRgLDom3","request_duration_ms":509}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 402 + message: Payment Required + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:56 GMT + Content-Type: + - application/json + Content-Length: + - '4883' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 856d1ab8-1e63-4ee5-8037-4b8ff021ddda + Original-Request: + - req_FXCmu1rrYkWjml + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_FXCmu1rrYkWjml + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: | + { + "error": { + "charge": "ch_3P8hR4KuuB1fWySn1ONLa92O", + "code": "incorrect_cvc", + "doc_url": "https://stripe.com/docs/error-codes/incorrect-cvc", + "message": "Your card's security code is incorrect.", + "param": "cvc", + "payment_intent": { + "id": "pi_3P8hR4KuuB1fWySn1FYBXndE", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": { + } + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871374, + "currency": "eur", + "customer": "cus_Pyek0DFHdMA6i4", + "description": null, + "invoice": null, + "last_payment_error": { + "charge": "ch_3P8hR4KuuB1fWySn1ONLa92O", + "code": "incorrect_cvc", + "doc_url": "https://stripe.com/docs/error-codes/incorrect-cvc", + "message": "Your card's security code is incorrect.", + "param": "cvc", + "payment_method": { + "id": "pm_1P8hR3KuuB1fWySnQyTSkSEY", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "fail" + }, + "country": "US", + "display_brand": "visa", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "eWmxEL5j3bNdPnK5", + "funding": "credit", + "generated_from": null, + "last4": "0127", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871374, + "customer": null, + "livemode": false, + "metadata": { + }, + "type": "card" + }, + "type": "card_error" + }, + "latest_charge": "ch_3P8hR4KuuB1fWySn1ONLa92O", + "livemode": false, + "metadata": { + }, + "next_action": null, + "on_behalf_of": null, + "payment_method": null, + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_payment_method", + "transfer_data": null, + "transfer_group": null + }, + "payment_method": { + "id": "pm_1P8hR3KuuB1fWySnQyTSkSEY", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "fail" + }, + "country": "US", + "display_brand": "visa", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "eWmxEL5j3bNdPnK5", + "funding": "credit", + "generated_from": null, + "last4": "0127", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871374, + "customer": null, + "livemode": false, + "metadata": { + }, + "type": "card" + }, + "request_log_url": "https://dashboard.stripe.com/test/logs/req_FXCmu1rrYkWjml?t=1713871375", + "type": "card_error" + } + } + recorded_at: Tue, 23 Apr 2024 11:22:56 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Insufficient_funds_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Insufficient_funds_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml new file mode 100644 index 0000000000..23a3cf8bfa --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Insufficient_funds_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml @@ -0,0 +1,632 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=4000000000009995&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_9auOceZoxHo5tE","request_duration_ms":509}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:43 GMT + Content-Type: + - application/json + Content-Length: + - '996' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - efb26086-55ca-4fed-96f9-712e811983b5 + Original-Request: + - req_JFuZ8mpCSSE39O + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_JFuZ8mpCSSE39O + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hQtKuuB1fWySnkWg8Yi12", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "visa", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "O0I0muUGQBJy3p73", + "funding": "credit", + "generated_from": null, + "last4": "9995", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871363, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:22:43 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_JFuZ8mpCSSE39O","request_duration_ms":485}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:44 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - d6655148-6ed2-47b6-ba01-38b8bb4a198d + Original-Request: + - req_f8LoVSm6ehzIOQ + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_f8LoVSm6ehzIOQ + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_Pyekp6fXoSyo4f", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871364, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "B923F253", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:22:44 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hQtKuuB1fWySnkWg8Yi12&payment_method_types[0]=card&capture_method=manual&customer=cus_Pyekp6fXoSyo4f&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_f8LoVSm6ehzIOQ","request_duration_ms":509}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:44 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - d797d3c9-2865-44b3-bf91-76176a96bf24 + Original-Request: + - req_7nTlJ3fHIjzIPN + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_7nTlJ3fHIjzIPN + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQuKuuB1fWySn2YcCudO4", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871364, + "currency": "eur", + "customer": "cus_Pyekp6fXoSyo4f", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQtKuuB1fWySnkWg8Yi12", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:44 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQuKuuB1fWySn2YcCudO4/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_7nTlJ3fHIjzIPN","request_duration_ms":510}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 402 + message: Payment Required + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:45 GMT + Content-Type: + - application/json + Content-Length: + - '4915' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - f0b1f823-2b28-4b51-829e-030893bb1ce9 + Original-Request: + - req_Ua7pnZevBRWYWv + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_Ua7pnZevBRWYWv + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: | + { + "error": { + "charge": "ch_3P8hQuKuuB1fWySn2WZGczKx", + "code": "card_declined", + "decline_code": "insufficient_funds", + "doc_url": "https://stripe.com/docs/error-codes/card-declined", + "message": "Your card has insufficient funds.", + "payment_intent": { + "id": "pi_3P8hQuKuuB1fWySn2YcCudO4", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": { + } + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871364, + "currency": "eur", + "customer": "cus_Pyekp6fXoSyo4f", + "description": null, + "invoice": null, + "last_payment_error": { + "charge": "ch_3P8hQuKuuB1fWySn2WZGczKx", + "code": "card_declined", + "decline_code": "insufficient_funds", + "doc_url": "https://stripe.com/docs/error-codes/card-declined", + "message": "Your card has insufficient funds.", + "payment_method": { + "id": "pm_1P8hQtKuuB1fWySnkWg8Yi12", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "pass" + }, + "country": "US", + "display_brand": "visa", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "O0I0muUGQBJy3p73", + "funding": "credit", + "generated_from": null, + "last4": "9995", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871363, + "customer": null, + "livemode": false, + "metadata": { + }, + "type": "card" + }, + "type": "card_error" + }, + "latest_charge": "ch_3P8hQuKuuB1fWySn2WZGczKx", + "livemode": false, + "metadata": { + }, + "next_action": null, + "on_behalf_of": null, + "payment_method": null, + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_payment_method", + "transfer_data": null, + "transfer_group": null + }, + "payment_method": { + "id": "pm_1P8hQtKuuB1fWySnkWg8Yi12", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "pass" + }, + "country": "US", + "display_brand": "visa", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "O0I0muUGQBJy3p73", + "funding": "credit", + "generated_from": null, + "last4": "9995", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871363, + "customer": null, + "livemode": false, + "metadata": { + }, + "type": "card" + }, + "request_log_url": "https://dashboard.stripe.com/test/logs/req_Ua7pnZevBRWYWv?t=1713871364", + "type": "card_error" + } + } + recorded_at: Tue, 23 Apr 2024 11:22:45 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Lost_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Lost_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml new file mode 100644 index 0000000000..ace8a4fe2d --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Lost_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml @@ -0,0 +1,632 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=4000000000009987&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_7nTlJ3fHIjzIPN","request_duration_ms":510}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:46 GMT + Content-Type: + - application/json + Content-Length: + - '996' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - dd89d6d5-1928-425b-9e41-0d0ddbaabd66 + Original-Request: + - req_qPbK8GWnufeusA + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_qPbK8GWnufeusA + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hQwKuuB1fWySnnXjxt2Q5", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "visa", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "hMDekBwrnWL1oLxe", + "funding": "credit", + "generated_from": null, + "last4": "9987", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871366, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:22:46 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_qPbK8GWnufeusA","request_duration_ms":446}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:46 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 8fa0ce75-bb64-4ed0-be30-0937ff2b8d3e + Original-Request: + - req_29DQjMmwvNd48X + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_29DQjMmwvNd48X + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_PyekDsErN9ufoM", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871366, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "1AB5687C", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:22:46 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hQwKuuB1fWySnnXjxt2Q5&payment_method_types[0]=card&capture_method=manual&customer=cus_PyekDsErN9ufoM&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_29DQjMmwvNd48X","request_duration_ms":508}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:47 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - c99be1bc-4a15-4ef0-9097-fd46b3b284f1 + Original-Request: + - req_aGW6Vn9eCXjmi7 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_aGW6Vn9eCXjmi7 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQxKuuB1fWySn1iZusZS1", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871367, + "currency": "eur", + "customer": "cus_PyekDsErN9ufoM", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQwKuuB1fWySnnXjxt2Q5", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:47 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQxKuuB1fWySn1iZusZS1/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_aGW6Vn9eCXjmi7","request_duration_ms":498}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 402 + message: Payment Required + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:48 GMT + Content-Type: + - application/json + Content-Length: + - '4877' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 2ee34069-f3f4-4ff7-b5dc-51348b21ddef + Original-Request: + - req_tE5NggyuH84Bwp + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_tE5NggyuH84Bwp + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: | + { + "error": { + "charge": "ch_3P8hQxKuuB1fWySn1mkDmi3i", + "code": "card_declined", + "decline_code": "lost_card", + "doc_url": "https://stripe.com/docs/error-codes/card-declined", + "message": "Your card was declined.", + "payment_intent": { + "id": "pi_3P8hQxKuuB1fWySn1iZusZS1", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": { + } + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871367, + "currency": "eur", + "customer": "cus_PyekDsErN9ufoM", + "description": null, + "invoice": null, + "last_payment_error": { + "charge": "ch_3P8hQxKuuB1fWySn1mkDmi3i", + "code": "card_declined", + "decline_code": "lost_card", + "doc_url": "https://stripe.com/docs/error-codes/card-declined", + "message": "Your card was declined.", + "payment_method": { + "id": "pm_1P8hQwKuuB1fWySnnXjxt2Q5", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "pass" + }, + "country": "US", + "display_brand": "visa", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "hMDekBwrnWL1oLxe", + "funding": "credit", + "generated_from": null, + "last4": "9987", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871366, + "customer": null, + "livemode": false, + "metadata": { + }, + "type": "card" + }, + "type": "card_error" + }, + "latest_charge": "ch_3P8hQxKuuB1fWySn1mkDmi3i", + "livemode": false, + "metadata": { + }, + "next_action": null, + "on_behalf_of": null, + "payment_method": null, + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_payment_method", + "transfer_data": null, + "transfer_group": null + }, + "payment_method": { + "id": "pm_1P8hQwKuuB1fWySnnXjxt2Q5", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "pass" + }, + "country": "US", + "display_brand": "visa", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "hMDekBwrnWL1oLxe", + "funding": "credit", + "generated_from": null, + "last4": "9987", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871366, + "customer": null, + "livemode": false, + "metadata": { + }, + "type": "card" + }, + "request_log_url": "https://dashboard.stripe.com/test/logs/req_tE5NggyuH84Bwp?t=1713871367", + "type": "card_error" + } + } + recorded_at: Tue, 23 Apr 2024 11:22:48 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Processing_error_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Processing_error_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml new file mode 100644 index 0000000000..df960e5ab8 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Processing_error_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml @@ -0,0 +1,630 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=4000000000000119&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_XZhN6FLRgLDom3","request_duration_ms":509}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:56 GMT + Content-Type: + - application/json + Content-Length: + - '996' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 4fde0975-18cb-4a02-9522-870f259bb1da + Original-Request: + - req_gd1J4ZPBCCug9x + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_gd1J4ZPBCCug9x + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hR6KuuB1fWySnbrsC9UJ6", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "visa", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "9HWWxe4EyniQy61z", + "funding": "credit", + "generated_from": null, + "last4": "0119", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871376, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:22:56 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_gd1J4ZPBCCug9x","request_duration_ms":535}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:57 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - d325710f-8b58-405e-9f71-bf77f88ab4b8 + Original-Request: + - req_2YAwLlhn1Wwsms + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_2YAwLlhn1Wwsms + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_PyekmaUZEsfvMy", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871377, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "E9D00917", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:22:57 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hR6KuuB1fWySnbrsC9UJ6&payment_method_types[0]=card&capture_method=manual&customer=cus_PyekmaUZEsfvMy&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_2YAwLlhn1Wwsms","request_duration_ms":509}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:57 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - c9d7fb8c-89f1-4453-bf7b-8d895ae3db51 + Original-Request: + - req_sojXClxhQQaFbW + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_sojXClxhQQaFbW + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hR7KuuB1fWySn1TR0go8r", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871377, + "currency": "eur", + "customer": "cus_PyekmaUZEsfvMy", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hR6KuuB1fWySnbrsC9UJ6", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:57 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hR7KuuB1fWySn1TR0go8r/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_sojXClxhQQaFbW","request_duration_ms":394}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 402 + message: Payment Required + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:58 GMT + Content-Type: + - application/json + Content-Length: + - '4917' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 58fced99-2bea-4f22-aeff-3c29242fc17c + Original-Request: + - req_D19RydovrPMO35 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_D19RydovrPMO35 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: | + { + "error": { + "charge": "ch_3P8hR7KuuB1fWySn1QTbIwTK", + "code": "processing_error", + "doc_url": "https://stripe.com/docs/error-codes/processing-error", + "message": "An error occurred while processing your card. Try again in a little bit.", + "payment_intent": { + "id": "pi_3P8hR7KuuB1fWySn1TR0go8r", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": { + } + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871377, + "currency": "eur", + "customer": "cus_PyekmaUZEsfvMy", + "description": null, + "invoice": null, + "last_payment_error": { + "charge": "ch_3P8hR7KuuB1fWySn1QTbIwTK", + "code": "processing_error", + "doc_url": "https://stripe.com/docs/error-codes/processing-error", + "message": "An error occurred while processing your card. Try again in a little bit.", + "payment_method": { + "id": "pm_1P8hR6KuuB1fWySnbrsC9UJ6", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "pass" + }, + "country": "US", + "display_brand": "visa", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "9HWWxe4EyniQy61z", + "funding": "credit", + "generated_from": null, + "last4": "0119", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871376, + "customer": null, + "livemode": false, + "metadata": { + }, + "type": "card" + }, + "type": "card_error" + }, + "latest_charge": "ch_3P8hR7KuuB1fWySn1QTbIwTK", + "livemode": false, + "metadata": { + }, + "next_action": null, + "on_behalf_of": null, + "payment_method": null, + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_payment_method", + "transfer_data": null, + "transfer_group": null + }, + "payment_method": { + "id": "pm_1P8hR6KuuB1fWySnbrsC9UJ6", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "pass" + }, + "country": "US", + "display_brand": "visa", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "9HWWxe4EyniQy61z", + "funding": "credit", + "generated_from": null, + "last4": "0119", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871376, + "customer": null, + "livemode": false, + "metadata": { + }, + "type": "card" + }, + "request_log_url": "https://dashboard.stripe.com/test/logs/req_D19RydovrPMO35?t=1713871377", + "type": "card_error" + } + } + recorded_at: Tue, 23 Apr 2024 11:22:58 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Stolen_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Stolen_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml new file mode 100644 index 0000000000..151fd5e6ce --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Stolen_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml @@ -0,0 +1,632 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=4000000000009979&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_aGW6Vn9eCXjmi7","request_duration_ms":498}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:48 GMT + Content-Type: + - application/json + Content-Length: + - '996' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 517ec7db-a996-4cba-9172-f86e41046730 + Original-Request: + - req_h1DaNRQAhqFgz9 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_h1DaNRQAhqFgz9 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hQyKuuB1fWySnCgvttCSO", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "visa", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "1pjhEFFOW1eCi1AB", + "funding": "credit", + "generated_from": null, + "last4": "9979", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871368, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:22:48 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_h1DaNRQAhqFgz9","request_duration_ms":413}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:49 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - cb7724a0-993d-47f7-960f-f63acaac72e2 + Original-Request: + - req_sIi1TlK5XDpKSt + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_sIi1TlK5XDpKSt + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_PyekDa34UUgaBy", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871369, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "542CB18D", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:22:49 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hQyKuuB1fWySnCgvttCSO&payment_method_types[0]=card&capture_method=manual&customer=cus_PyekDa34UUgaBy&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_sIi1TlK5XDpKSt","request_duration_ms":522}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:49 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - e9749b76-4a91-4707-be17-a771d0f94596 + Original-Request: + - req_M2EjGTJOmFPvjA + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_M2EjGTJOmFPvjA + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQzKuuB1fWySn2Tv4Uyhb", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871369, + "currency": "eur", + "customer": "cus_PyekDa34UUgaBy", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQyKuuB1fWySnCgvttCSO", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:49 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQzKuuB1fWySn2Tv4Uyhb/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_M2EjGTJOmFPvjA","request_duration_ms":413}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 402 + message: Payment Required + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:50 GMT + Content-Type: + - application/json + Content-Length: + - '4881' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 204e1661-6051-4cd8-a5e2-e8c923a871d0 + Original-Request: + - req_SMrYdbWXABS1Ya + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_SMrYdbWXABS1Ya + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: | + { + "error": { + "charge": "ch_3P8hQzKuuB1fWySn2DGsgH8G", + "code": "card_declined", + "decline_code": "stolen_card", + "doc_url": "https://stripe.com/docs/error-codes/card-declined", + "message": "Your card was declined.", + "payment_intent": { + "id": "pi_3P8hQzKuuB1fWySn2Tv4Uyhb", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": { + } + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871369, + "currency": "eur", + "customer": "cus_PyekDa34UUgaBy", + "description": null, + "invoice": null, + "last_payment_error": { + "charge": "ch_3P8hQzKuuB1fWySn2DGsgH8G", + "code": "card_declined", + "decline_code": "stolen_card", + "doc_url": "https://stripe.com/docs/error-codes/card-declined", + "message": "Your card was declined.", + "payment_method": { + "id": "pm_1P8hQyKuuB1fWySnCgvttCSO", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "pass" + }, + "country": "US", + "display_brand": "visa", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "1pjhEFFOW1eCi1AB", + "funding": "credit", + "generated_from": null, + "last4": "9979", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871368, + "customer": null, + "livemode": false, + "metadata": { + }, + "type": "card" + }, + "type": "card_error" + }, + "latest_charge": "ch_3P8hQzKuuB1fWySn2DGsgH8G", + "livemode": false, + "metadata": { + }, + "next_action": null, + "on_behalf_of": null, + "payment_method": null, + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_payment_method", + "transfer_data": null, + "transfer_group": null + }, + "payment_method": { + "id": "pm_1P8hQyKuuB1fWySnCgvttCSO", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "pass" + }, + "country": "US", + "display_brand": "visa", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "1pjhEFFOW1eCi1AB", + "funding": "credit", + "generated_from": null, + "last4": "9979", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871368, + "customer": null, + "livemode": false, + "metadata": { + }, + "type": "card" + }, + "request_log_url": "https://dashboard.stripe.com/test/logs/req_SMrYdbWXABS1Ya?t=1713871370", + "type": "card_error" + } + } + recorded_at: Tue, 23 Apr 2024 11:22:51 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/captures_the_payment.yml new file mode 100644 index 0000000000..3f6c536730 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/captures_the_payment.yml @@ -0,0 +1,905 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=378282246310005&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_WWwLrQp4sVqJV4","request_duration_ms":1003}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:34 GMT + Content-Type: + - application/json + Content-Length: + - '1009' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 4bd1d110-3526-486a-8c1f-e9deec2604d3 + Original-Request: + - req_q3SMRET2pdEU3x + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_q3SMRET2pdEU3x + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hPlKuuB1fWySnRO8H7pVp", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "amex", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "american_express", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "zYCOiuhqkk4w2g2M", + "funding": "credit", + "generated_from": null, + "last4": "0005", + "networks": { + "available": [ + "amex" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": false + }, + "wallet": null + }, + "created": 1713871294, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:21:34 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_q3SMRET2pdEU3x","request_duration_ms":519}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:34 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 0f4ad5da-12eb-46f3-93f9-27728fff5b96 + Original-Request: + - req_sO5qBMluUDTjVx + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_sO5qBMluUDTjVx + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_PyejlhPSbHpRU7", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871294, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "1FD8C6AE", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:21:34 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hPlKuuB1fWySnRO8H7pVp&payment_method_types[0]=card&capture_method=manual&customer=cus_PyejlhPSbHpRU7&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_sO5qBMluUDTjVx","request_duration_ms":410}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:35 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 30d95687-1376-4eb3-890c-9becd6c87be8 + Original-Request: + - req_swH0esqzotIIDC + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_swH0esqzotIIDC + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPmKuuB1fWySn0I96SqZc", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871294, + "currency": "eur", + "customer": "cus_PyejlhPSbHpRU7", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPlKuuB1fWySnRO8H7pVp", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:35 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPmKuuB1fWySn0I96SqZc/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_swH0esqzotIIDC","request_duration_ms":404}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:36 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - ce2ff524-3c64-4512-94eb-e683354019be + Original-Request: + - req_GtduzogqOBxFuM + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_GtduzogqOBxFuM + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPmKuuB1fWySn0I96SqZc", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871294, + "currency": "eur", + "customer": "cus_PyejlhPSbHpRU7", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPmKuuB1fWySn0TCXtFhe", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPlKuuB1fWySnRO8H7pVp", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:36 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPmKuuB1fWySn0I96SqZc + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_GtduzogqOBxFuM","request_duration_ms":1107}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:36 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_KxAzk5rtNpzTnE + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPmKuuB1fWySn0I96SqZc", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871294, + "currency": "eur", + "customer": "cus_PyejlhPSbHpRU7", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPmKuuB1fWySn0TCXtFhe", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPlKuuB1fWySnRO8H7pVp", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:36 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPmKuuB1fWySn0I96SqZc/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_KxAzk5rtNpzTnE","request_duration_ms":340}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:37 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - dbae392b-f0f0-4340-8072-bcd42a6f6be2 + Original-Request: + - req_rQgUbXQNdBUTkf + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_rQgUbXQNdBUTkf + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPmKuuB1fWySn0I96SqZc", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871294, + "currency": "eur", + "customer": "cus_PyejlhPSbHpRU7", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPmKuuB1fWySn0TCXtFhe", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPlKuuB1fWySnRO8H7pVp", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:37 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPmKuuB1fWySn0I96SqZc + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_rQgUbXQNdBUTkf","request_duration_ms":1188}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:38 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_UddWo6oZ6xRVWD + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPmKuuB1fWySn0I96SqZc", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871294, + "currency": "eur", + "customer": "cus_PyejlhPSbHpRU7", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPmKuuB1fWySn0TCXtFhe", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPlKuuB1fWySnRO8H7pVp", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:38 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..89dcaddff6 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,512 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=378282246310005&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_ZmshM8deU5LJ8a","request_duration_ms":394}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:31 GMT + Content-Type: + - application/json + Content-Length: + - '1009' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - e5a0531c-6e6e-44c8-8f5f-b20454feb897 + Original-Request: + - req_zp9rWUux4NmCmn + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_zp9rWUux4NmCmn + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hPjKuuB1fWySnB1rKwJD0", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "amex", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "american_express", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "zYCOiuhqkk4w2g2M", + "funding": "credit", + "generated_from": null, + "last4": "0005", + "networks": { + "available": [ + "amex" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": false + }, + "wallet": null + }, + "created": 1713871291, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:21:31 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_zp9rWUux4NmCmn","request_duration_ms":438}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:31 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - a7047b65-30fd-4a71-afe8-8f3e8dbeed4f + Original-Request: + - req_VvION4praYlJd6 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_VvION4praYlJd6 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_Pyej8RAVLLQG5C", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871291, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "645B7506", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:21:31 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hPjKuuB1fWySnB1rKwJD0&payment_method_types[0]=card&capture_method=manual&customer=cus_Pyej8RAVLLQG5C&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_VvION4praYlJd6","request_duration_ms":508}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:32 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 0174c247-8161-42c0-bf3f-877cd2f644f8 + Original-Request: + - req_knV0kmLqcT8rO2 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_knV0kmLqcT8rO2 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPkKuuB1fWySn2fu1bxGF", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871292, + "currency": "eur", + "customer": "cus_Pyej8RAVLLQG5C", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPjKuuB1fWySnB1rKwJD0", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:32 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPkKuuB1fWySn2fu1bxGF/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_knV0kmLqcT8rO2","request_duration_ms":407}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:33 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 4efb4540-e365-4044-8eb2-784ae473d9e1 + Original-Request: + - req_WWwLrQp4sVqJV4 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_WWwLrQp4sVqJV4 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPkKuuB1fWySn2fu1bxGF", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871292, + "currency": "eur", + "customer": "cus_Pyej8RAVLLQG5C", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPkKuuB1fWySn2NxNRLd1", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPjKuuB1fWySnB1rKwJD0", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:33 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/captures_the_payment.yml new file mode 100644 index 0000000000..d14e8d7e58 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/captures_the_payment.yml @@ -0,0 +1,905 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=6555900000604105&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_nanZFhzRIre71v","request_duration_ms":1077}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:13 GMT + Content-Type: + - application/json + Content-Length: + - '1008' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 07fd64c4-4b06-4b4d-83fb-9a6c5b1b21a5 + Original-Request: + - req_h4FbCjxiOZzc6u + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_h4FbCjxiOZzc6u + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hQOKuuB1fWySnId2Mzj5C", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "discover", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "discover", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "7NZ8adObS8Rw8HOq", + "funding": "credit", + "generated_from": null, + "last4": "4105", + "networks": { + "available": [ + "discover" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871333, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:22:13 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_h4FbCjxiOZzc6u","request_duration_ms":521}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:13 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 30499760-19e8-4a21-b9ef-40b16c04b75d + Original-Request: + - req_u5y0Bhoihunvpp + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_u5y0Bhoihunvpp + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_PyejGREjSBtXbR", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871333, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "F625C654", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:22:13 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hQOKuuB1fWySnId2Mzj5C&payment_method_types[0]=card&capture_method=manual&customer=cus_PyejGREjSBtXbR&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_u5y0Bhoihunvpp","request_duration_ms":428}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:14 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 79383762-a38a-4a9d-abf2-f770269aed52 + Original-Request: + - req_nFRDi5kuAQt46x + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_nFRDi5kuAQt46x + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQPKuuB1fWySn2NE05rrF", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871333, + "currency": "eur", + "customer": "cus_PyejGREjSBtXbR", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQOKuuB1fWySnId2Mzj5C", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:14 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQPKuuB1fWySn2NE05rrF/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_nFRDi5kuAQt46x","request_duration_ms":421}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:15 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - e6b09ac4-d1fe-4409-a3d6-3fdd579d36eb + Original-Request: + - req_063fZXRL9juaTV + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_063fZXRL9juaTV + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQPKuuB1fWySn2NE05rrF", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871333, + "currency": "eur", + "customer": "cus_PyejGREjSBtXbR", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQPKuuB1fWySn2lFq97s5", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQOKuuB1fWySnId2Mzj5C", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:15 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQPKuuB1fWySn2NE05rrF + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_063fZXRL9juaTV","request_duration_ms":1167}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:15 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_PDviclwoOQJWDY + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQPKuuB1fWySn2NE05rrF", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871333, + "currency": "eur", + "customer": "cus_PyejGREjSBtXbR", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQPKuuB1fWySn2lFq97s5", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQOKuuB1fWySnId2Mzj5C", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:15 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQPKuuB1fWySn2NE05rrF/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_PDviclwoOQJWDY","request_duration_ms":406}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:17 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - dab6f1ca-f281-4ed8-8539-b77a10083c01 + Original-Request: + - req_TAyOFJqtk0XY4h + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_TAyOFJqtk0XY4h + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQPKuuB1fWySn2NE05rrF", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871333, + "currency": "eur", + "customer": "cus_PyejGREjSBtXbR", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQPKuuB1fWySn2lFq97s5", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQOKuuB1fWySnId2Mzj5C", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:17 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQPKuuB1fWySn2NE05rrF + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_TAyOFJqtk0XY4h","request_duration_ms":1635}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:17 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_3Dn9T1aixPSePK + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQPKuuB1fWySn2NE05rrF", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871333, + "currency": "eur", + "customer": "cus_PyejGREjSBtXbR", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQPKuuB1fWySn2lFq97s5", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQOKuuB1fWySnId2Mzj5C", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:17 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..2a07f9971a --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,512 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=6555900000604105&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_wFzCMoF0mQD3Eo","request_duration_ms":315}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:10 GMT + Content-Type: + - application/json + Content-Length: + - '1008' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - d0482a80-5afc-44e9-9508-69dba3a1dd84 + Original-Request: + - req_HfCWuNBUeFJHJ5 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_HfCWuNBUeFJHJ5 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hQMKuuB1fWySnN4KTfpDk", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "discover", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "discover", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "7NZ8adObS8Rw8HOq", + "funding": "credit", + "generated_from": null, + "last4": "4105", + "networks": { + "available": [ + "discover" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871330, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:22:10 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_HfCWuNBUeFJHJ5","request_duration_ms":415}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:10 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - ea256470-3297-4e6b-9052-5efcae4a7ffd + Original-Request: + - req_3gAE50rFEVax5i + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_3gAE50rFEVax5i + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_PyejoBfFWODSMx", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871330, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "4A967218", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:22:10 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hQMKuuB1fWySnN4KTfpDk&payment_method_types[0]=card&capture_method=manual&customer=cus_PyejoBfFWODSMx&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_3gAE50rFEVax5i","request_duration_ms":524}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:11 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 17e39583-5976-4667-9d1a-223dedd14257 + Original-Request: + - req_JJ9t7V8lKdZpqY + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_JJ9t7V8lKdZpqY + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQNKuuB1fWySn0piyeLve", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871331, + "currency": "eur", + "customer": "cus_PyejoBfFWODSMx", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQMKuuB1fWySnN4KTfpDk", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:11 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQNKuuB1fWySn0piyeLve/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_JJ9t7V8lKdZpqY","request_duration_ms":424}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:12 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 412cb586-8cff-44a6-b60b-3c9a0d6520ce + Original-Request: + - req_nanZFhzRIre71v + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_nanZFhzRIre71v + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQNKuuB1fWySn0piyeLve", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871331, + "currency": "eur", + "customer": "cus_PyejoBfFWODSMx", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQNKuuB1fWySn0Ub9RO8K", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQMKuuB1fWySnN4KTfpDk", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:12 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/captures_the_payment.yml new file mode 100644 index 0000000000..755b43fc3e --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/captures_the_payment.yml @@ -0,0 +1,905 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=3056930009020004&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_F0PIDyr31udtJ2","request_duration_ms":1001}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:58 GMT + Content-Type: + - application/json + Content-Length: + - '1008' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 699acfe0-14ca-4d60-bf0e-95f24bb5dbe9 + Original-Request: + - req_aMcxa09ry3qzsw + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_aMcxa09ry3qzsw + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hQ9KuuB1fWySnYVsRisH4", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "diners", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "diners_club", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "8CvV2XFCUY7eGw6O", + "funding": "credit", + "generated_from": null, + "last4": "0004", + "networks": { + "available": [ + "diners" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": false + }, + "wallet": null + }, + "created": 1713871318, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:21:58 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_aMcxa09ry3qzsw","request_duration_ms":441}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:58 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 4a72f8a7-096b-4828-9483-fbeea0e6f79d + Original-Request: + - req_Y5bjaH6gkAKoVc + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_Y5bjaH6gkAKoVc + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_PyejqoGIrbSloY", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871318, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "BCF7C75E", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:21:58 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hQ9KuuB1fWySnYVsRisH4&payment_method_types[0]=card&capture_method=manual&customer=cus_PyejqoGIrbSloY&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_Y5bjaH6gkAKoVc","request_duration_ms":500}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:59 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - b098ddc0-7aec-4d60-a9f6-b39e167e46e2 + Original-Request: + - req_JvotoTPIJvFb62 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_JvotoTPIJvFb62 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQAKuuB1fWySn2Gw633z1", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871318, + "currency": "eur", + "customer": "cus_PyejqoGIrbSloY", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQ9KuuB1fWySnYVsRisH4", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:59 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQAKuuB1fWySn2Gw633z1/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_JvotoTPIJvFb62","request_duration_ms":510}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:00 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - d49d4520-df0d-4f17-9539-e1a9f2497be8 + Original-Request: + - req_MZZk8A3FLOZ2cj + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_MZZk8A3FLOZ2cj + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQAKuuB1fWySn2Gw633z1", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871318, + "currency": "eur", + "customer": "cus_PyejqoGIrbSloY", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQAKuuB1fWySn27CF3HHg", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQ9KuuB1fWySnYVsRisH4", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:00 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQAKuuB1fWySn2Gw633z1 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_MZZk8A3FLOZ2cj","request_duration_ms":1102}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:00 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_dWgYeF8wvQey17 + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQAKuuB1fWySn2Gw633z1", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871318, + "currency": "eur", + "customer": "cus_PyejqoGIrbSloY", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQAKuuB1fWySn27CF3HHg", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQ9KuuB1fWySnYVsRisH4", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:00 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQAKuuB1fWySn2Gw633z1/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_dWgYeF8wvQey17","request_duration_ms":407}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:01 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - ea0e4c9f-d5ad-442f-b105-3c30b9a77760 + Original-Request: + - req_rbJH0wjaebh0ma + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_rbJH0wjaebh0ma + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQAKuuB1fWySn2Gw633z1", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871318, + "currency": "eur", + "customer": "cus_PyejqoGIrbSloY", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQAKuuB1fWySn27CF3HHg", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQ9KuuB1fWySnYVsRisH4", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:01 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQAKuuB1fWySn2Gw633z1 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_rbJH0wjaebh0ma","request_duration_ms":1225}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:02 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_xmdIy0xcA8ttbI + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQAKuuB1fWySn2Gw633z1", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871318, + "currency": "eur", + "customer": "cus_PyejqoGIrbSloY", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQAKuuB1fWySn27CF3HHg", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQ9KuuB1fWySnYVsRisH4", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:02 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..6d81c41bc1 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,512 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=3056930009020004&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_p4PeKqmC2GcoAk","request_duration_ms":407}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:55 GMT + Content-Type: + - application/json + Content-Length: + - '1008' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 7fdcd9a1-34ee-4ce6-bbe0-759b5d7adf3a + Original-Request: + - req_ez8SRoPdvB73xw + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_ez8SRoPdvB73xw + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hQ7KuuB1fWySnSVV0shzQ", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "diners", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "diners_club", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "8CvV2XFCUY7eGw6O", + "funding": "credit", + "generated_from": null, + "last4": "0004", + "networks": { + "available": [ + "diners" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": false + }, + "wallet": null + }, + "created": 1713871315, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:21:55 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_ez8SRoPdvB73xw","request_duration_ms":434}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:55 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 3da20bb0-4fdd-4457-aa5a-c0482452f61d + Original-Request: + - req_DTfU4F1qwYuKyu + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_DTfU4F1qwYuKyu + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_PyejNRkCBsUcCT", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871315, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "3BD04305", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:21:55 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hQ7KuuB1fWySnSVV0shzQ&payment_method_types[0]=card&capture_method=manual&customer=cus_PyejNRkCBsUcCT&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_DTfU4F1qwYuKyu","request_duration_ms":509}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:56 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - d1c04eb7-242d-49e0-a4b7-ce8b4b7c86d3 + Original-Request: + - req_D4aNytWyNkrU1c + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_D4aNytWyNkrU1c + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQ8KuuB1fWySn0klY7sZZ", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871316, + "currency": "eur", + "customer": "cus_PyejNRkCBsUcCT", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQ7KuuB1fWySnSVV0shzQ", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:56 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQ8KuuB1fWySn0klY7sZZ/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_D4aNytWyNkrU1c","request_duration_ms":407}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:57 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 846d130a-be48-4026-9e59-8b0c31c4ca0d + Original-Request: + - req_F0PIDyr31udtJ2 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_F0PIDyr31udtJ2 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQ8KuuB1fWySn0klY7sZZ", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871316, + "currency": "eur", + "customer": "cus_PyejNRkCBsUcCT", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQ8KuuB1fWySn0sIkyJo1", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQ7KuuB1fWySnSVV0shzQ", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:57 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/captures_the_payment.yml new file mode 100644 index 0000000000..91f1d0046b --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/captures_the_payment.yml @@ -0,0 +1,905 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=36227206271667&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_y2bfu78HhF3dGA","request_duration_ms":1107}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:05 GMT + Content-Type: + - application/json + Content-Length: + - '1008' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 3148e7f5-db70-4dbb-9a75-194224932fca + Original-Request: + - req_iiefiwCR3youDU + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_iiefiwCR3youDU + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hQHKuuB1fWySnutfeAg3o", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "diners", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "diners_club", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "gDlx6y9moRYkO83e", + "funding": "credit", + "generated_from": null, + "last4": "1667", + "networks": { + "available": [ + "diners" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": false + }, + "wallet": null + }, + "created": 1713871325, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:22:05 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_iiefiwCR3youDU","request_duration_ms":521}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:06 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - e3c2de6d-f8be-479d-8ecf-71a3ef0d48ca + Original-Request: + - req_cVFNyy30EQtvcC + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_cVFNyy30EQtvcC + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_PyejYA0TC3ECno", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871326, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "21AF6C51", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:22:06 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hQHKuuB1fWySnutfeAg3o&payment_method_types[0]=card&capture_method=manual&customer=cus_PyejYA0TC3ECno&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_cVFNyy30EQtvcC","request_duration_ms":448}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:06 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 5bceb53d-e5f4-49eb-bfc2-79ed634ad8f5 + Original-Request: + - req_wFibir0ga44G9t + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_wFibir0ga44G9t + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQIKuuB1fWySn1V7vxE51", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871326, + "currency": "eur", + "customer": "cus_PyejYA0TC3ECno", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQHKuuB1fWySnutfeAg3o", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:06 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQIKuuB1fWySn1V7vxE51/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_wFibir0ga44G9t","request_duration_ms":415}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:07 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 77b39096-d434-42e4-a44a-1657bb9d9c30 + Original-Request: + - req_NSbeTZUD4OBDv7 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_NSbeTZUD4OBDv7 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQIKuuB1fWySn1V7vxE51", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871326, + "currency": "eur", + "customer": "cus_PyejYA0TC3ECno", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQIKuuB1fWySn1R60pYt8", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQHKuuB1fWySnutfeAg3o", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:07 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQIKuuB1fWySn1V7vxE51 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_NSbeTZUD4OBDv7","request_duration_ms":1055}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:08 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_1QKMjLvP9QmP3M + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQIKuuB1fWySn1V7vxE51", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871326, + "currency": "eur", + "customer": "cus_PyejYA0TC3ECno", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQIKuuB1fWySn1R60pYt8", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQHKuuB1fWySnutfeAg3o", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:08 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQIKuuB1fWySn1V7vxE51/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_1QKMjLvP9QmP3M","request_duration_ms":293}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:09 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 56bdbdb0-1282-4790-b9c0-3f13314ec128 + Original-Request: + - req_e6WjAta3RR7cDp + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_e6WjAta3RR7cDp + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQIKuuB1fWySn1V7vxE51", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871326, + "currency": "eur", + "customer": "cus_PyejYA0TC3ECno", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQIKuuB1fWySn1R60pYt8", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQHKuuB1fWySnutfeAg3o", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:09 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQIKuuB1fWySn1V7vxE51 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_e6WjAta3RR7cDp","request_duration_ms":1340}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:09 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_wFzCMoF0mQD3Eo + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQIKuuB1fWySn1V7vxE51", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871326, + "currency": "eur", + "customer": "cus_PyejYA0TC3ECno", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQIKuuB1fWySn1R60pYt8", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQHKuuB1fWySnutfeAg3o", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:09 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..5548728a17 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,512 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=36227206271667&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_xmdIy0xcA8ttbI","request_duration_ms":408}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:02 GMT + Content-Type: + - application/json + Content-Length: + - '1008' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 9e719516-d99d-4916-94dc-61f6f1c2fc81 + Original-Request: + - req_UMNO0XHfcOP271 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_UMNO0XHfcOP271 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hQEKuuB1fWySnM0FueQDF", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "diners", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "diners_club", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "gDlx6y9moRYkO83e", + "funding": "credit", + "generated_from": null, + "last4": "1667", + "networks": { + "available": [ + "diners" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": false + }, + "wallet": null + }, + "created": 1713871322, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:22:03 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_UMNO0XHfcOP271","request_duration_ms":536}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:03 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 2181cbe0-9829-4395-89b9-3a0d98be464c + Original-Request: + - req_pzxTrEyqekgZUS + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_pzxTrEyqekgZUS + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_PyejNJe0cHnW15", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871323, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "2415657D", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:22:03 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hQEKuuB1fWySnM0FueQDF&payment_method_types[0]=card&capture_method=manual&customer=cus_PyejNJe0cHnW15&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_pzxTrEyqekgZUS","request_duration_ms":440}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:03 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 55d32630-3ae8-4d1f-bf6a-da26931bb412 + Original-Request: + - req_SNphmAy0Qmq6jg + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_SNphmAy0Qmq6jg + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQFKuuB1fWySn1Fs1vGsh", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871323, + "currency": "eur", + "customer": "cus_PyejNJe0cHnW15", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQEKuuB1fWySnM0FueQDF", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:03 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQFKuuB1fWySn1Fs1vGsh/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_SNphmAy0Qmq6jg","request_duration_ms":474}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:04 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 8310a181-52c7-47b1-9d1d-13b2359eff49 + Original-Request: + - req_y2bfu78HhF3dGA + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_y2bfu78HhF3dGA + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQFKuuB1fWySn1Fs1vGsh", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871323, + "currency": "eur", + "customer": "cus_PyejNJe0cHnW15", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQFKuuB1fWySn1ChVQwX4", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQEKuuB1fWySnM0FueQDF", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:05 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/captures_the_payment.yml new file mode 100644 index 0000000000..a700c19bfe --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/captures_the_payment.yml @@ -0,0 +1,905 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=6011111111111117&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_cKclt9jUdynwP8","request_duration_ms":1113}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:42 GMT + Content-Type: + - application/json + Content-Length: + - '1008' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 1ffe4335-3659-40c5-ba72-4b256d9055bc + Original-Request: + - req_Etu4Q54XyJuLfH + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_Etu4Q54XyJuLfH + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hPtKuuB1fWySnf5blcleZ", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "discover", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "discover", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "SJztPPlfyEUr9hdK", + "funding": "credit", + "generated_from": null, + "last4": "1117", + "networks": { + "available": [ + "discover" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871302, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:21:42 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_Etu4Q54XyJuLfH","request_duration_ms":500}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:42 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 490666bd-00c7-483c-b2d8-a68000ecbe6c + Original-Request: + - req_SJPCUBIOA8rqPC + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_SJPCUBIOA8rqPC + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_PyejzDOIBybDpN", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871302, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "FC09F1D5", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:21:42 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hPtKuuB1fWySnf5blcleZ&payment_method_types[0]=card&capture_method=manual&customer=cus_PyejzDOIBybDpN&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_SJPCUBIOA8rqPC","request_duration_ms":502}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:43 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 719ad88e-70b3-4d82-8274-5806dc3437d4 + Original-Request: + - req_ZGRZyXCxIUXC9E + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_ZGRZyXCxIUXC9E + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPuKuuB1fWySn1YuJhvuD", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871302, + "currency": "eur", + "customer": "cus_PyejzDOIBybDpN", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPtKuuB1fWySnf5blcleZ", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:43 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPuKuuB1fWySn1YuJhvuD/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_ZGRZyXCxIUXC9E","request_duration_ms":405}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:44 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - cac78d53-f544-464b-8303-e84ada269640 + Original-Request: + - req_KCA2UUWiEUB4HJ + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_KCA2UUWiEUB4HJ + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPuKuuB1fWySn1YuJhvuD", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871302, + "currency": "eur", + "customer": "cus_PyejzDOIBybDpN", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPuKuuB1fWySn1YV8AUSr", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPtKuuB1fWySnf5blcleZ", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:44 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPuKuuB1fWySn1YuJhvuD + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_KCA2UUWiEUB4HJ","request_duration_ms":1103}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:44 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_Da2a3MRFBmJh64 + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPuKuuB1fWySn1YuJhvuD", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871302, + "currency": "eur", + "customer": "cus_PyejzDOIBybDpN", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPuKuuB1fWySn1YV8AUSr", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPtKuuB1fWySnf5blcleZ", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:44 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPuKuuB1fWySn1YuJhvuD/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_Da2a3MRFBmJh64","request_duration_ms":405}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:46 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - a2b644d6-4fce-4089-a05b-857e4733a67b + Original-Request: + - req_qvfrJW5qxylQHr + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_qvfrJW5qxylQHr + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPuKuuB1fWySn1YuJhvuD", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871302, + "currency": "eur", + "customer": "cus_PyejzDOIBybDpN", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPuKuuB1fWySn1YV8AUSr", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPtKuuB1fWySnf5blcleZ", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:46 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPuKuuB1fWySn1YuJhvuD + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_qvfrJW5qxylQHr","request_duration_ms":1533}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:46 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_SiTlYVqYvz9Aeu + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPuKuuB1fWySn1YuJhvuD", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871302, + "currency": "eur", + "customer": "cus_PyejzDOIBybDpN", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPuKuuB1fWySn1YV8AUSr", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPtKuuB1fWySnf5blcleZ", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:46 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..9ac6da32c5 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,512 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=6011111111111117&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_UddWo6oZ6xRVWD","request_duration_ms":1}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:38 GMT + Content-Type: + - application/json + Content-Length: + - '1008' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 7a037dc0-3384-4056-bc3b-7781c6e8114f + Original-Request: + - req_ruQYEyMa7HE0IL + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_ruQYEyMa7HE0IL + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hPqKuuB1fWySnJhvcNWbe", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "discover", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "discover", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "SJztPPlfyEUr9hdK", + "funding": "credit", + "generated_from": null, + "last4": "1117", + "networks": { + "available": [ + "discover" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871298, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:21:39 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_ruQYEyMa7HE0IL","request_duration_ms":547}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:39 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 047ca940-2eb5-4d2f-b864-52b2347968a1 + Original-Request: + - req_RH8SZXNRYFoB3J + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_RH8SZXNRYFoB3J + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_PyejNxKD3I5F0r", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871299, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "E003F017", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:21:39 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hPqKuuB1fWySnJhvcNWbe&payment_method_types[0]=card&capture_method=manual&customer=cus_PyejNxKD3I5F0r&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_RH8SZXNRYFoB3J","request_duration_ms":508}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:39 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 15c862de-bd7f-4165-95fe-0a6ef281ec0c + Original-Request: + - req_2BrH7w6xCebHNe + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_2BrH7w6xCebHNe + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPrKuuB1fWySn1waDmlml", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871299, + "currency": "eur", + "customer": "cus_PyejNxKD3I5F0r", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPqKuuB1fWySnJhvcNWbe", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:39 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPrKuuB1fWySn1waDmlml/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_2BrH7w6xCebHNe","request_duration_ms":395}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:40 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - f54fb634-6d1b-415a-94a5-755e4b51fc40 + Original-Request: + - req_cKclt9jUdynwP8 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_cKclt9jUdynwP8 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPrKuuB1fWySn1waDmlml", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871299, + "currency": "eur", + "customer": "cus_PyejNxKD3I5F0r", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPrKuuB1fWySn1yoLj8wA", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPqKuuB1fWySnJhvcNWbe", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:41 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/captures_the_payment.yml new file mode 100644 index 0000000000..e4457b59f7 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/captures_the_payment.yml @@ -0,0 +1,905 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=6011981111111113&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_zrfZPH2c8XapeS","request_duration_ms":1091}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:50 GMT + Content-Type: + - application/json + Content-Length: + - '1007' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 732f1c45-4d19-4494-a03b-d9725780b674 + Original-Request: + - req_4TC4ObnZbMHhnk + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_4TC4ObnZbMHhnk + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hQ2KuuB1fWySnGpLVYFPe", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "discover", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "discover", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "Y3EGIoTEEuDsD8eJ", + "funding": "debit", + "generated_from": null, + "last4": "1113", + "networks": { + "available": [ + "discover" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871310, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:21:50 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_4TC4ObnZbMHhnk","request_duration_ms":562}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:51 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - b73a1262-166c-410f-bded-4088c4fd9ffd + Original-Request: + - req_4fHYiy7Ue9KK7M + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_4fHYiy7Ue9KK7M + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_PyejYzVomzn5re", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871310, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "2A75B94A", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:21:51 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hQ2KuuB1fWySnGpLVYFPe&payment_method_types[0]=card&capture_method=manual&customer=cus_PyejYzVomzn5re&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_4fHYiy7Ue9KK7M","request_duration_ms":507}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:51 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 27b3483e-3f44-4ad0-b677-9f9c8aa2c3b4 + Original-Request: + - req_sRjhbgcqN2bsY7 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_sRjhbgcqN2bsY7 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQ3KuuB1fWySn0ZLWpymG", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871311, + "currency": "eur", + "customer": "cus_PyejYzVomzn5re", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQ2KuuB1fWySnGpLVYFPe", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:51 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQ3KuuB1fWySn0ZLWpymG/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_sRjhbgcqN2bsY7","request_duration_ms":509}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:52 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - f79e14b1-a958-405c-bdd2-1d2fc538f322 + Original-Request: + - req_bvdy3sBZtVigM0 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_bvdy3sBZtVigM0 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQ3KuuB1fWySn0ZLWpymG", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871311, + "currency": "eur", + "customer": "cus_PyejYzVomzn5re", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQ3KuuB1fWySn07iKNKo0", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQ2KuuB1fWySnGpLVYFPe", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:52 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQ3KuuB1fWySn0ZLWpymG + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_bvdy3sBZtVigM0","request_duration_ms":1102}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:53 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_M578EkslUXdo3o + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQ3KuuB1fWySn0ZLWpymG", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871311, + "currency": "eur", + "customer": "cus_PyejYzVomzn5re", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQ3KuuB1fWySn07iKNKo0", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQ2KuuB1fWySnGpLVYFPe", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:53 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQ3KuuB1fWySn0ZLWpymG/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_M578EkslUXdo3o","request_duration_ms":406}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:54 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 1343fa34-5cfa-408b-9ea3-282d41ada996 + Original-Request: + - req_oEbaBwF6ygxOF7 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_oEbaBwF6ygxOF7 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQ3KuuB1fWySn0ZLWpymG", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871311, + "currency": "eur", + "customer": "cus_PyejYzVomzn5re", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQ3KuuB1fWySn07iKNKo0", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQ2KuuB1fWySnGpLVYFPe", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:54 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQ3KuuB1fWySn0ZLWpymG + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_oEbaBwF6ygxOF7","request_duration_ms":1121}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:54 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_p4PeKqmC2GcoAk + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQ3KuuB1fWySn0ZLWpymG", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871311, + "currency": "eur", + "customer": "cus_PyejYzVomzn5re", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQ3KuuB1fWySn07iKNKo0", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQ2KuuB1fWySnGpLVYFPe", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:54 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..e58dedb2e8 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,512 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=6011981111111113&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_SiTlYVqYvz9Aeu","request_duration_ms":2}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:47 GMT + Content-Type: + - application/json + Content-Length: + - '1007' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 613f61ce-a28b-4e82-8c1d-043b41bcedf0 + Original-Request: + - req_gjVPNV1bZJCG5V + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_gjVPNV1bZJCG5V + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hPzKuuB1fWySnHJcIIcGd", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "discover", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "discover", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "Y3EGIoTEEuDsD8eJ", + "funding": "debit", + "generated_from": null, + "last4": "1113", + "networks": { + "available": [ + "discover" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871307, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:21:47 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_gjVPNV1bZJCG5V","request_duration_ms":620}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:48 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - dc84e649-01b9-40e1-89ab-bc1d4d9fe428 + Original-Request: + - req_R8EWXoiJRbQ2hS + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_R8EWXoiJRbQ2hS + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_PyejMjytBCz673", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871308, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "370B4AA9", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:21:48 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hPzKuuB1fWySnHJcIIcGd&payment_method_types[0]=card&capture_method=manual&customer=cus_PyejMjytBCz673&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_R8EWXoiJRbQ2hS","request_duration_ms":416}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:48 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 404e8c97-149a-4587-a64a-fe47c10c25e6 + Original-Request: + - req_TEowAnkuxQIfVC + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_TEowAnkuxQIfVC + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQ0KuuB1fWySn19kz36u1", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871308, + "currency": "eur", + "customer": "cus_PyejMjytBCz673", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPzKuuB1fWySnHJcIIcGd", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:48 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQ0KuuB1fWySn19kz36u1/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_TEowAnkuxQIfVC","request_duration_ms":499}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:49 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - fb5b38a3-d7bf-4293-ab59-b5164c94fbdb + Original-Request: + - req_zrfZPH2c8XapeS + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_zrfZPH2c8XapeS + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQ0KuuB1fWySn19kz36u1", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871308, + "currency": "eur", + "customer": "cus_PyejMjytBCz673", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQ0KuuB1fWySn1DqAQGi8", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPzKuuB1fWySnHJcIIcGd", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:49 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/captures_the_payment.yml new file mode 100644 index 0000000000..b541295445 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/captures_the_payment.yml @@ -0,0 +1,905 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=3566002020360505&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_EgbKOKHH1Oogxo","request_duration_ms":1155}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:21 GMT + Content-Type: + - application/json + Content-Length: + - '993' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - f12fedd1-4207-4571-b07a-e2f305836786 + Original-Request: + - req_CQq1ktzUV9MqFJ + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_CQq1ktzUV9MqFJ + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hQWKuuB1fWySnWa6V9NVl", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "jcb", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "JP", + "display_brand": "jcb", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "8f2gcynh7EdGyDKt", + "funding": "credit", + "generated_from": null, + "last4": "0505", + "networks": { + "available": [ + "jcb" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871340, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:22:21 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_CQq1ktzUV9MqFJ","request_duration_ms":422}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:21 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 681d3354-3372-4e19-9427-75af968aca0f + Original-Request: + - req_77OG0zMCusvAH8 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_77OG0zMCusvAH8 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_Pyekag1X6tn12N", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871341, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "5115E0BA", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:22:21 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hQWKuuB1fWySnWa6V9NVl&payment_method_types[0]=card&capture_method=manual&customer=cus_Pyekag1X6tn12N&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_77OG0zMCusvAH8","request_duration_ms":443}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:21 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 9275769b-9c29-4426-aa8e-67e297df398b + Original-Request: + - req_661Y9jf4UsiecR + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_661Y9jf4UsiecR + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQXKuuB1fWySn14y7VDms", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871341, + "currency": "eur", + "customer": "cus_Pyekag1X6tn12N", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQWKuuB1fWySnWa6V9NVl", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:22 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQXKuuB1fWySn14y7VDms/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_661Y9jf4UsiecR","request_duration_ms":468}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:23 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 6eddba57-4009-449d-9648-1528d98c3ca4 + Original-Request: + - req_hnrL0sCstDoCem + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_hnrL0sCstDoCem + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQXKuuB1fWySn14y7VDms", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871341, + "currency": "eur", + "customer": "cus_Pyekag1X6tn12N", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQXKuuB1fWySn16fdv4KQ", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQWKuuB1fWySnWa6V9NVl", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:23 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQXKuuB1fWySn14y7VDms + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_hnrL0sCstDoCem","request_duration_ms":1105}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:23 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_8IXvg6Hp8IuACR + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQXKuuB1fWySn14y7VDms", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871341, + "currency": "eur", + "customer": "cus_Pyekag1X6tn12N", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQXKuuB1fWySn16fdv4KQ", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQWKuuB1fWySnWa6V9NVl", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:23 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQXKuuB1fWySn14y7VDms/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_8IXvg6Hp8IuACR","request_duration_ms":370}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:24 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - '0708c16d-f364-4275-b7e8-fc09198ff28d' + Original-Request: + - req_Eq04Pk3EG52RWi + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_Eq04Pk3EG52RWi + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQXKuuB1fWySn14y7VDms", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871341, + "currency": "eur", + "customer": "cus_Pyekag1X6tn12N", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQXKuuB1fWySn16fdv4KQ", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQWKuuB1fWySnWa6V9NVl", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:24 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQXKuuB1fWySn14y7VDms + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_Eq04Pk3EG52RWi","request_duration_ms":1058}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:24 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_Afjysw1r194ODw + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQXKuuB1fWySn14y7VDms", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871341, + "currency": "eur", + "customer": "cus_Pyekag1X6tn12N", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQXKuuB1fWySn16fdv4KQ", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQWKuuB1fWySnWa6V9NVl", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:25 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..eee8222ad8 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,512 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=3566002020360505&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_3Dn9T1aixPSePK","request_duration_ms":304}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:18 GMT + Content-Type: + - application/json + Content-Length: + - '993' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 7742efc8-7b8c-4689-898e-35826e494d32 + Original-Request: + - req_mPAsulWY5R9k9c + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_mPAsulWY5R9k9c + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hQTKuuB1fWySn86A5AaSf", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "jcb", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "JP", + "display_brand": "jcb", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "8f2gcynh7EdGyDKt", + "funding": "credit", + "generated_from": null, + "last4": "0505", + "networks": { + "available": [ + "jcb" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871338, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:22:18 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_mPAsulWY5R9k9c","request_duration_ms":479}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:18 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 778f601d-a294-4d1c-bc4d-f8fb2d95e33f + Original-Request: + - req_dKbd53ZWnSnmFA + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_dKbd53ZWnSnmFA + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_PyejkLXRIq1ugx", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871338, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "8A1F63A5", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:22:18 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hQTKuuB1fWySn86A5AaSf&payment_method_types[0]=card&capture_method=manual&customer=cus_PyejkLXRIq1ugx&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_dKbd53ZWnSnmFA","request_duration_ms":474}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:19 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - eb4df177-5e40-4ccf-a6f1-8624979cbdcb + Original-Request: + - req_PaAwwxnxPniScH + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_PaAwwxnxPniScH + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQUKuuB1fWySn27Ds09zw", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871338, + "currency": "eur", + "customer": "cus_PyejkLXRIq1ugx", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQTKuuB1fWySn86A5AaSf", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:19 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQUKuuB1fWySn27Ds09zw/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_PaAwwxnxPniScH","request_duration_ms":426}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:20 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 24abb05e-86bc-4a71-80c8-747482832ab1 + Original-Request: + - req_EgbKOKHH1Oogxo + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_EgbKOKHH1Oogxo + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQUKuuB1fWySn27Ds09zw", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871338, + "currency": "eur", + "customer": "cus_PyejkLXRIq1ugx", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQUKuuB1fWySn2Tnqlb70", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQTKuuB1fWySn86A5AaSf", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:20 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/captures_the_payment.yml new file mode 100644 index 0000000000..6e98d0dd3f --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/captures_the_payment.yml @@ -0,0 +1,905 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=5555555555554444&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_dpZudD7c3yo3SI","request_duration_ms":1200}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:03 GMT + Content-Type: + - application/json + Content-Length: + - '1014' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 3d7aec29-77cb-4e54-9b5f-4dd4c40180e4 + Original-Request: + - req_KOzFI7nt7kMKke + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_KOzFI7nt7kMKke + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hPHKuuB1fWySnLbjJpRi0", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "mastercard", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "mastercard", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "BL35fEFVcTTS5wpE", + "funding": "credit", + "generated_from": null, + "last4": "4444", + "networks": { + "available": [ + "mastercard" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871263, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:21:03 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_KOzFI7nt7kMKke","request_duration_ms":455}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:03 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - e7d67003-d410-4c36-8ce9-155a7992119b + Original-Request: + - req_PSvwe3Dxuav0Gf + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_PSvwe3Dxuav0Gf + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_PyeiYi8vVBRK2u", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871263, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "CFD0CF05", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:21:03 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hPHKuuB1fWySnLbjJpRi0&payment_method_types[0]=card&capture_method=manual&customer=cus_PyeiYi8vVBRK2u&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_PSvwe3Dxuav0Gf","request_duration_ms":501}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:04 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 26500e8b-bb32-4172-a28e-5eda772e8932 + Original-Request: + - req_a3VHqjs5pn2kcv + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_a3VHqjs5pn2kcv + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPIKuuB1fWySn2GVyivsK", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871264, + "currency": "eur", + "customer": "cus_PyeiYi8vVBRK2u", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPHKuuB1fWySnLbjJpRi0", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:04 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPIKuuB1fWySn2GVyivsK/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_a3VHqjs5pn2kcv","request_duration_ms":510}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:05 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 2165ddb3-503e-448f-917e-b234ad764383 + Original-Request: + - req_vZt5nK8DPgR8pL + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_vZt5nK8DPgR8pL + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPIKuuB1fWySn2GVyivsK", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871264, + "currency": "eur", + "customer": "cus_PyeiYi8vVBRK2u", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPIKuuB1fWySn2MQDbPgq", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPHKuuB1fWySnLbjJpRi0", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:05 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPIKuuB1fWySn2GVyivsK + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_vZt5nK8DPgR8pL","request_duration_ms":1201}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:05 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_zs1gxsav59C70k + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPIKuuB1fWySn2GVyivsK", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871264, + "currency": "eur", + "customer": "cus_PyeiYi8vVBRK2u", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPIKuuB1fWySn2MQDbPgq", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPHKuuB1fWySnLbjJpRi0", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:06 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPIKuuB1fWySn2GVyivsK/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_zs1gxsav59C70k","request_duration_ms":405}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:07 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 69dcfd08-8568-46e4-ac73-73461c8d3ea5 + Original-Request: + - req_3N7vO6ii3OWarj + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_3N7vO6ii3OWarj + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPIKuuB1fWySn2GVyivsK", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871264, + "currency": "eur", + "customer": "cus_PyeiYi8vVBRK2u", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPIKuuB1fWySn2MQDbPgq", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPHKuuB1fWySnLbjJpRi0", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:07 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPIKuuB1fWySn2GVyivsK + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_3N7vO6ii3OWarj","request_duration_ms":1417}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:07 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_OVEg8EKA2rq1lg + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPIKuuB1fWySn2GVyivsK", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871264, + "currency": "eur", + "customer": "cus_PyeiYi8vVBRK2u", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPIKuuB1fWySn2MQDbPgq", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPHKuuB1fWySnLbjJpRi0", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:07 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..4eb1655ea1 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,512 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=5555555555554444&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_0WphKlQD6xRFlt","request_duration_ms":345}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:00 GMT + Content-Type: + - application/json + Content-Length: + - '1014' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - f531daeb-de9d-45ec-a020-192f5232114b + Original-Request: + - req_p5BJZnd5OEEQIp + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_p5BJZnd5OEEQIp + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hPDKuuB1fWySnu51i92IF", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "mastercard", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "mastercard", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "BL35fEFVcTTS5wpE", + "funding": "credit", + "generated_from": null, + "last4": "4444", + "networks": { + "available": [ + "mastercard" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871260, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:21:00 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_p5BJZnd5OEEQIp","request_duration_ms":481}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:00 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 9fa23470-94c1-4922-bbb1-147103e5ea58 + Original-Request: + - req_Kc3uIqCbKbK4aj + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_Kc3uIqCbKbK4aj + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_PyeiL4Ha7nH52p", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871260, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "D7D6FFF2", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:21:00 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hPDKuuB1fWySnu51i92IF&payment_method_types[0]=card&capture_method=manual&customer=cus_PyeiL4Ha7nH52p&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_Kc3uIqCbKbK4aj","request_duration_ms":405}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:01 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 654ac650-6465-45b4-9e09-ff05016c7dd7 + Original-Request: + - req_ehiape7Y2BCHMQ + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_ehiape7Y2BCHMQ + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPEKuuB1fWySn2ixEyxTG", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871260, + "currency": "eur", + "customer": "cus_PyeiL4Ha7nH52p", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPDKuuB1fWySnu51i92IF", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:01 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPEKuuB1fWySn2ixEyxTG/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_ehiape7Y2BCHMQ","request_duration_ms":510}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:02 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 900491a2-de27-4c97-aa24-9fca5a0bb5d7 + Original-Request: + - req_dpZudD7c3yo3SI + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_dpZudD7c3yo3SI + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPEKuuB1fWySn2ixEyxTG", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871260, + "currency": "eur", + "customer": "cus_PyeiL4Ha7nH52p", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPEKuuB1fWySn2gDu5Twh", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPDKuuB1fWySnu51i92IF", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:02 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/captures_the_payment.yml new file mode 100644 index 0000000000..758b1a483f --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/captures_the_payment.yml @@ -0,0 +1,905 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=2223003122003222&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_Qwct4ea8onfN4E","request_duration_ms":1148}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:11 GMT + Content-Type: + - application/json + Content-Length: + - '1014' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 39a3fedf-0082-4b70-8fc9-64e5b90109e7 + Original-Request: + - req_ohuQ0ZgkxTZ7IU + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_ohuQ0ZgkxTZ7IU + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hPPKuuB1fWySnAFYipXE7", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "mastercard", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "mastercard", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "0gTPwvyIV7E6CAld", + "funding": "credit", + "generated_from": null, + "last4": "3222", + "networks": { + "available": [ + "mastercard" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871271, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:21:11 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_ohuQ0ZgkxTZ7IU","request_duration_ms":441}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:11 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - ef0764eb-2778-42e9-9823-11a47929eeb5 + Original-Request: + - req_UMrYXi7ohBePV0 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_UMrYXi7ohBePV0 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_PyeiXH2m671SXL", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871271, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "A66473CE", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:21:11 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hPPKuuB1fWySnAFYipXE7&payment_method_types[0]=card&capture_method=manual&customer=cus_PyeiXH2m671SXL&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_UMrYXi7ohBePV0","request_duration_ms":501}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:12 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 2dfad88b-9de8-45bf-8137-dc591deccce3 + Original-Request: + - req_8IFMzUqkWeaFle + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_8IFMzUqkWeaFle + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPPKuuB1fWySn0bvuskRz", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871271, + "currency": "eur", + "customer": "cus_PyeiXH2m671SXL", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPPKuuB1fWySnAFYipXE7", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:12 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPPKuuB1fWySn0bvuskRz/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_8IFMzUqkWeaFle","request_duration_ms":405}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:13 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 0df5fd10-aff7-4fad-9aec-df211d63fe3c + Original-Request: + - req_mPlX6F3DUm1kTj + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_mPlX6F3DUm1kTj + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPPKuuB1fWySn0bvuskRz", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871271, + "currency": "eur", + "customer": "cus_PyeiXH2m671SXL", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPPKuuB1fWySn0d4HHeI5", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPPKuuB1fWySnAFYipXE7", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:13 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPPKuuB1fWySn0bvuskRz + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_mPlX6F3DUm1kTj","request_duration_ms":1101}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:13 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_M0dyEDatIOFBZF + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPPKuuB1fWySn0bvuskRz", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871271, + "currency": "eur", + "customer": "cus_PyeiXH2m671SXL", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPPKuuB1fWySn0d4HHeI5", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPPKuuB1fWySnAFYipXE7", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:13 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPPKuuB1fWySn0bvuskRz/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_M0dyEDatIOFBZF","request_duration_ms":406}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:14 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 4ded4141-cfe2-420a-906a-9e1a630eee56 + Original-Request: + - req_u1DEUioMcDKSBz + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_u1DEUioMcDKSBz + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPPKuuB1fWySn0bvuskRz", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871271, + "currency": "eur", + "customer": "cus_PyeiXH2m671SXL", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPPKuuB1fWySn0d4HHeI5", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPPKuuB1fWySnAFYipXE7", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:14 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPPKuuB1fWySn0bvuskRz + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_u1DEUioMcDKSBz","request_duration_ms":1123}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:15 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_bPSNztR1dTneVk + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPPKuuB1fWySn0bvuskRz", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871271, + "currency": "eur", + "customer": "cus_PyeiXH2m671SXL", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPPKuuB1fWySn0d4HHeI5", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPPKuuB1fWySnAFYipXE7", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:15 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..36c742b099 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,512 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=2223003122003222&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_OVEg8EKA2rq1lg","request_duration_ms":418}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:08 GMT + Content-Type: + - application/json + Content-Length: + - '1014' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 1cd7bf09-dd39-41dd-b997-08774ce3c46c + Original-Request: + - req_SI9IQrjUBSenxj + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_SI9IQrjUBSenxj + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hPMKuuB1fWySnuy58VLut", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "mastercard", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "mastercard", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "0gTPwvyIV7E6CAld", + "funding": "credit", + "generated_from": null, + "last4": "3222", + "networks": { + "available": [ + "mastercard" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871268, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:21:08 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_SI9IQrjUBSenxj","request_duration_ms":456}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:08 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 794febe3-f216-4eba-b499-7441f598cf39 + Original-Request: + - req_2wNbvHpVH4bRr8 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_2wNbvHpVH4bRr8 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_Pyei3qbC4ngA0q", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871268, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "6411439E", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:21:08 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hPMKuuB1fWySnuy58VLut&payment_method_types[0]=card&capture_method=manual&customer=cus_Pyei3qbC4ngA0q&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_2wNbvHpVH4bRr8","request_duration_ms":430}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:09 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 99ab2935-1385-434a-ae8f-b849104cde13 + Original-Request: + - req_9bq5isB4pDLUnQ + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_9bq5isB4pDLUnQ + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPNKuuB1fWySn0iOA6eso", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871269, + "currency": "eur", + "customer": "cus_Pyei3qbC4ngA0q", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPMKuuB1fWySnuy58VLut", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:09 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPNKuuB1fWySn0iOA6eso/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_9bq5isB4pDLUnQ","request_duration_ms":394}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:10 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 294702a4-00ae-4ba1-bb7d-70bd9a1891d9 + Original-Request: + - req_Qwct4ea8onfN4E + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_Qwct4ea8onfN4E + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPNKuuB1fWySn0iOA6eso", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871269, + "currency": "eur", + "customer": "cus_Pyei3qbC4ngA0q", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPNKuuB1fWySn0E1kZCXk", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPMKuuB1fWySnuy58VLut", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:10 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/captures_the_payment.yml new file mode 100644 index 0000000000..43ad09b350 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/captures_the_payment.yml @@ -0,0 +1,905 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=5200828282828210&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_8cc5GPIq99TZOD","request_duration_ms":995}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:18 GMT + Content-Type: + - application/json + Content-Length: + - '1013' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - d57a22e1-0a9d-4063-83a8-d40d90439a03 + Original-Request: + - req_oWDqQNDLNaLxs2 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_oWDqQNDLNaLxs2 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hPWKuuB1fWySnEN1H2XcM", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "mastercard", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "mastercard", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "DpQ8VoC0Z3P9xrbi", + "funding": "debit", + "generated_from": null, + "last4": "8210", + "networks": { + "available": [ + "mastercard" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871278, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:21:18 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_oWDqQNDLNaLxs2","request_duration_ms":423}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:19 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 1870f353-dce7-4dae-a21e-d8371f612aec + Original-Request: + - req_VuC610HZ6EQ48S + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_VuC610HZ6EQ48S + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_PyeiWqm0iyYG50", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871279, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "61598C19", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:21:19 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hPWKuuB1fWySnEN1H2XcM&payment_method_types[0]=card&capture_method=manual&customer=cus_PyeiWqm0iyYG50&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_VuC610HZ6EQ48S","request_duration_ms":429}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:19 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 90c34d1b-d4c3-4dc7-830d-7d0fa7165c76 + Original-Request: + - req_89FBzQnKpNe68K + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_89FBzQnKpNe68K + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPXKuuB1fWySn2dp19af5", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871279, + "currency": "eur", + "customer": "cus_PyeiWqm0iyYG50", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPWKuuB1fWySnEN1H2XcM", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:19 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPXKuuB1fWySn2dp19af5/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_89FBzQnKpNe68K","request_duration_ms":419}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:20 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 3eccb79a-3dc8-4d23-999b-54122e5f775b + Original-Request: + - req_Xlbq59TKfnepfo + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_Xlbq59TKfnepfo + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPXKuuB1fWySn2dp19af5", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871279, + "currency": "eur", + "customer": "cus_PyeiWqm0iyYG50", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPXKuuB1fWySn2ueI0CxW", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPWKuuB1fWySnEN1H2XcM", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:21 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPXKuuB1fWySn2dp19af5 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_Xlbq59TKfnepfo","request_duration_ms":1180}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:21 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_HK7DlLFepfzHTF + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPXKuuB1fWySn2dp19af5", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871279, + "currency": "eur", + "customer": "cus_PyeiWqm0iyYG50", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPXKuuB1fWySn2ueI0CxW", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPWKuuB1fWySnEN1H2XcM", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:21 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPXKuuB1fWySn2dp19af5/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_HK7DlLFepfzHTF","request_duration_ms":404}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:22 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - e241a01c-9037-4c29-bf7a-18cd817a4860 + Original-Request: + - req_l5OOJhOazt6PXP + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_l5OOJhOazt6PXP + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPXKuuB1fWySn2dp19af5", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871279, + "currency": "eur", + "customer": "cus_PyeiWqm0iyYG50", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPXKuuB1fWySn2ueI0CxW", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPWKuuB1fWySnEN1H2XcM", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:22 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPXKuuB1fWySn2dp19af5 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_l5OOJhOazt6PXP","request_duration_ms":1327}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:23 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_B0SeZ79RLy2ebO + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPXKuuB1fWySn2dp19af5", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871279, + "currency": "eur", + "customer": "cus_PyeiWqm0iyYG50", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPXKuuB1fWySn2ueI0CxW", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPWKuuB1fWySnEN1H2XcM", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:23 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..4ebd8fe024 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,512 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=5200828282828210&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_bPSNztR1dTneVk","request_duration_ms":392}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:15 GMT + Content-Type: + - application/json + Content-Length: + - '1013' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - be62fead-d724-4e7f-8f55-4ef918754c29 + Original-Request: + - req_bpLMSxtmzD1zMl + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_bpLMSxtmzD1zMl + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hPTKuuB1fWySnoz4GaqoV", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "mastercard", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "mastercard", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "DpQ8VoC0Z3P9xrbi", + "funding": "debit", + "generated_from": null, + "last4": "8210", + "networks": { + "available": [ + "mastercard" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871275, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:21:15 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_bpLMSxtmzD1zMl","request_duration_ms":523}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:16 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 649ebdb6-ef29-4cbb-bc9e-98c21ae93685 + Original-Request: + - req_X2zcbnOjKFGYld + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_X2zcbnOjKFGYld + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_Pyei5krltxQE6d", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871276, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "91D990B8", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:21:16 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hPTKuuB1fWySnoz4GaqoV&payment_method_types[0]=card&capture_method=manual&customer=cus_Pyei5krltxQE6d&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_X2zcbnOjKFGYld","request_duration_ms":507}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:16 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 8fce28bf-6c72-4372-b021-fa9d6d8bf502 + Original-Request: + - req_kDyx3XmV2eI4QT + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_kDyx3XmV2eI4QT + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPUKuuB1fWySn0j2B8Quf", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871276, + "currency": "eur", + "customer": "cus_Pyei5krltxQE6d", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPTKuuB1fWySnoz4GaqoV", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:16 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPUKuuB1fWySn0j2B8Quf/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_kDyx3XmV2eI4QT","request_duration_ms":509}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:17 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 71740a65-f9b3-4dac-a364-5dc079a153db + Original-Request: + - req_8cc5GPIq99TZOD + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_8cc5GPIq99TZOD + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPUKuuB1fWySn0j2B8Quf", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871276, + "currency": "eur", + "customer": "cus_Pyei5krltxQE6d", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPUKuuB1fWySn0qUOZgP2", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPTKuuB1fWySnoz4GaqoV", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:17 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/captures_the_payment.yml new file mode 100644 index 0000000000..b47c8718ca --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/captures_the_payment.yml @@ -0,0 +1,905 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=5105105105105100&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_rL3sIDabBbB4Gh","request_duration_ms":1207}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:26 GMT + Content-Type: + - application/json + Content-Length: + - '1015' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 8e6f6958-d1b5-48bc-926f-4059825fedac + Original-Request: + - req_n0rtzuqR4K7abm + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_n0rtzuqR4K7abm + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hPeKuuB1fWySnW4VKALy7", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "mastercard", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "mastercard", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "B9ykFJ6imaeWU8aO", + "funding": "prepaid", + "generated_from": null, + "last4": "5100", + "networks": { + "available": [ + "mastercard" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871286, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:21:26 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_n0rtzuqR4K7abm","request_duration_ms":500}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:27 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - b0144ff2-71c9-419b-b436-b0e7a8209776 + Original-Request: + - req_iNcB4TD0OoXrMp + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_iNcB4TD0OoXrMp + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_Pyejn2MRlZ3Rv4", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871286, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "BEEAD97C", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:21:27 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hPeKuuB1fWySnW4VKALy7&payment_method_types[0]=card&capture_method=manual&customer=cus_Pyejn2MRlZ3Rv4&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_iNcB4TD0OoXrMp","request_duration_ms":421}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:27 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - cbfb6a51-0d39-47f5-8f00-49d09f946663 + Original-Request: + - req_XZ0IF5IsTNRkzQ + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_XZ0IF5IsTNRkzQ + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPfKuuB1fWySn1bQa89IW", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871287, + "currency": "eur", + "customer": "cus_Pyejn2MRlZ3Rv4", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPeKuuB1fWySnW4VKALy7", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:27 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPfKuuB1fWySn1bQa89IW/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_XZ0IF5IsTNRkzQ","request_duration_ms":496}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:28 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 2054d3c9-9176-44e6-8818-9e95b038b20e + Original-Request: + - req_YrjEkAC0zwuoxD + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_YrjEkAC0zwuoxD + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPfKuuB1fWySn1bQa89IW", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871287, + "currency": "eur", + "customer": "cus_Pyejn2MRlZ3Rv4", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPfKuuB1fWySn1Y0eeYT1", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPeKuuB1fWySnW4VKALy7", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:28 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPfKuuB1fWySn1bQa89IW + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_YrjEkAC0zwuoxD","request_duration_ms":1103}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:28 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_HYmPlTpnYcTd5G + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPfKuuB1fWySn1bQa89IW", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871287, + "currency": "eur", + "customer": "cus_Pyejn2MRlZ3Rv4", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPfKuuB1fWySn1Y0eeYT1", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPeKuuB1fWySnW4VKALy7", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:29 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPfKuuB1fWySn1bQa89IW/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_HYmPlTpnYcTd5G","request_duration_ms":304}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:30 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - '084b8ea3-813c-42b7-a703-017a4962dee1' + Original-Request: + - req_FfAz3RRnSapSHv + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_FfAz3RRnSapSHv + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPfKuuB1fWySn1bQa89IW", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871287, + "currency": "eur", + "customer": "cus_Pyejn2MRlZ3Rv4", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPfKuuB1fWySn1Y0eeYT1", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPeKuuB1fWySnW4VKALy7", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:30 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPfKuuB1fWySn1bQa89IW + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_FfAz3RRnSapSHv","request_duration_ms":1442}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:30 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_ZmshM8deU5LJ8a + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPfKuuB1fWySn1bQa89IW", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871287, + "currency": "eur", + "customer": "cus_Pyejn2MRlZ3Rv4", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPfKuuB1fWySn1Y0eeYT1", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPeKuuB1fWySnW4VKALy7", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:30 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..0e0e28c676 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,512 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=5105105105105100&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_B0SeZ79RLy2ebO","request_duration_ms":407}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:23 GMT + Content-Type: + - application/json + Content-Length: + - '1015' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 06bc2d0e-bc55-4050-b6c8-2b30725ec08f + Original-Request: + - req_MBZLIMix75hQDk + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_MBZLIMix75hQDk + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hPbKuuB1fWySn1PuTLuFG", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "mastercard", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "mastercard", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "B9ykFJ6imaeWU8aO", + "funding": "prepaid", + "generated_from": null, + "last4": "5100", + "networks": { + "available": [ + "mastercard" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871283, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:21:23 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_MBZLIMix75hQDk","request_duration_ms":382}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:24 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 021f9338-d514-4116-8e74-72165bbcdd79 + Original-Request: + - req_HAqVYXRrNZNl5H + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_HAqVYXRrNZNl5H + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_PyejowstccnzWm", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871283, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "3615CA5B", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:21:24 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hPbKuuB1fWySn1PuTLuFG&payment_method_types[0]=card&capture_method=manual&customer=cus_PyejowstccnzWm&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_HAqVYXRrNZNl5H","request_duration_ms":414}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:24 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - c946b378-ce4c-4e88-a0ac-79bf916c71f3 + Original-Request: + - req_uyYhqCO1cHsTvf + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_uyYhqCO1cHsTvf + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPcKuuB1fWySn1BtL6gPB", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871284, + "currency": "eur", + "customer": "cus_PyejowstccnzWm", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPbKuuB1fWySn1PuTLuFG", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:24 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hPcKuuB1fWySn1BtL6gPB/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_uyYhqCO1cHsTvf","request_duration_ms":451}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:21:25 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 6a6ff1ca-5b17-4cdf-a36e-1bf792e14c1e + Original-Request: + - req_rL3sIDabBbB4Gh + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_rL3sIDabBbB4Gh + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hPcKuuB1fWySn1BtL6gPB", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871284, + "currency": "eur", + "customer": "cus_PyejowstccnzWm", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hPcKuuB1fWySn1aE0ioJv", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hPbKuuB1fWySn1PuTLuFG", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:21:25 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/captures_the_payment.yml new file mode 100644 index 0000000000..e68a91bd18 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/captures_the_payment.yml @@ -0,0 +1,905 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=6200000000000005&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_fyjHcxLOF999oK","request_duration_ms":1002}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:28 GMT + Content-Type: + - application/json + Content-Length: + - '1009' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 2eb27a6a-babd-4b11-a100-1cdc2bd22a54 + Original-Request: + - req_txAjwfJDd9kadL + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_txAjwfJDd9kadL + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hQeKuuB1fWySnUs50egBB", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "unionpay", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "CN", + "display_brand": "union_pay", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "Aq45rzUxvT6SiF1W", + "funding": "credit", + "generated_from": null, + "last4": "0005", + "networks": { + "available": [ + "unionpay" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871348, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:22:28 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_txAjwfJDd9kadL","request_duration_ms":510}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:28 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 4b483425-01c2-4ec8-889f-39731de009b1 + Original-Request: + - req_w1xt4D4fDnHl0q + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_w1xt4D4fDnHl0q + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_PyekeI9L8KiWy2", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871348, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "5AB93277", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:22:29 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hQeKuuB1fWySnUs50egBB&payment_method_types[0]=card&capture_method=manual&customer=cus_PyekeI9L8KiWy2&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_w1xt4D4fDnHl0q","request_duration_ms":508}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:29 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 2fdc45da-4ecd-4470-b775-92c1cdc7da5f + Original-Request: + - req_LudIVtt9zALBx6 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_LudIVtt9zALBx6 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQfKuuB1fWySn0Ntn0Tc9", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871349, + "currency": "eur", + "customer": "cus_PyekeI9L8KiWy2", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQeKuuB1fWySnUs50egBB", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:29 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQfKuuB1fWySn0Ntn0Tc9/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_LudIVtt9zALBx6","request_duration_ms":509}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:30 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 57c1ea23-9756-4500-a486-310f5029c61e + Original-Request: + - req_e402naQIpk5iiQ + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_e402naQIpk5iiQ + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQfKuuB1fWySn0Ntn0Tc9", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871349, + "currency": "eur", + "customer": "cus_PyekeI9L8KiWy2", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQfKuuB1fWySn0dMYJQcG", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQeKuuB1fWySnUs50egBB", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:30 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQfKuuB1fWySn0Ntn0Tc9 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_e402naQIpk5iiQ","request_duration_ms":1145}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:31 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_GUTEmc3cfgDcU1 + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQfKuuB1fWySn0Ntn0Tc9", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871349, + "currency": "eur", + "customer": "cus_PyekeI9L8KiWy2", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQfKuuB1fWySn0dMYJQcG", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQeKuuB1fWySnUs50egBB", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:31 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQfKuuB1fWySn0Ntn0Tc9/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_GUTEmc3cfgDcU1","request_duration_ms":312}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:32 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 0c0e55af-232b-4f6b-a4bc-a4d88df86c93 + Original-Request: + - req_EpQaQdb5BARrIA + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_EpQaQdb5BARrIA + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQfKuuB1fWySn0Ntn0Tc9", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871349, + "currency": "eur", + "customer": "cus_PyekeI9L8KiWy2", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQfKuuB1fWySn0dMYJQcG", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQeKuuB1fWySnUs50egBB", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:32 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQfKuuB1fWySn0Ntn0Tc9 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_EpQaQdb5BARrIA","request_duration_ms":1588}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:32 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_RWM4G5bHZtHy17 + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQfKuuB1fWySn0Ntn0Tc9", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871349, + "currency": "eur", + "customer": "cus_PyekeI9L8KiWy2", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQfKuuB1fWySn0dMYJQcG", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQeKuuB1fWySnUs50egBB", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:33 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..83158e32cf --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,512 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=6200000000000005&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_Afjysw1r194ODw","request_duration_ms":407}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:25 GMT + Content-Type: + - application/json + Content-Length: + - '1009' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - a6435b66-6e13-4bf7-a2e9-a4bd93fb7710 + Original-Request: + - req_X05gS7DaBUKLKx + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_X05gS7DaBUKLKx + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hQbKuuB1fWySnhVjKsc0C", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "unionpay", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "CN", + "display_brand": "union_pay", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "Aq45rzUxvT6SiF1W", + "funding": "credit", + "generated_from": null, + "last4": "0005", + "networks": { + "available": [ + "unionpay" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871345, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:22:25 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_X05gS7DaBUKLKx","request_duration_ms":647}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:26 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 0acd3d5e-8df0-4e67-97b1-7d28428bc041 + Original-Request: + - req_9OhC77tXpXQnb2 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_9OhC77tXpXQnb2 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_PyekqfjxClE8lB", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871345, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "EFA75C2E", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:22:26 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hQbKuuB1fWySnhVjKsc0C&payment_method_types[0]=card&capture_method=manual&customer=cus_PyekqfjxClE8lB&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_9OhC77tXpXQnb2","request_duration_ms":407}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:26 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 8744c2fa-37a5-4a5b-9468-6fa09f102ac0 + Original-Request: + - req_3X99KLCSYLRjSH + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_3X99KLCSYLRjSH + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQcKuuB1fWySn1G1NpJx9", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871346, + "currency": "eur", + "customer": "cus_PyekqfjxClE8lB", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQbKuuB1fWySnhVjKsc0C", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:26 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQcKuuB1fWySn1G1NpJx9/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_3X99KLCSYLRjSH","request_duration_ms":509}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:27 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 5b830090-f7bb-455d-ac57-64054198be13 + Original-Request: + - req_fyjHcxLOF999oK + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_fyjHcxLOF999oK + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQcKuuB1fWySn1G1NpJx9", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871346, + "currency": "eur", + "customer": "cus_PyekqfjxClE8lB", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQcKuuB1fWySn1Emwtq0O", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQbKuuB1fWySnhVjKsc0C", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:27 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/captures_the_payment.yml new file mode 100644 index 0000000000..05a87ba93c --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/captures_the_payment.yml @@ -0,0 +1,905 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=6205500000000000004&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_sqvzkQBIKE8xCY","request_duration_ms":998}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:36 GMT + Content-Type: + - application/json + Content-Length: + - '1008' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 8603cfdb-1941-4710-bbc9-29882b72dcbe + Original-Request: + - req_ccHOb4oeDkQl3S + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_ccHOb4oeDkQl3S + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hQmKuuB1fWySnn2orDvvg", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "unionpay", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "union_pay", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "F9o1vzLUnyEJBPXi", + "funding": "debit", + "generated_from": null, + "last4": "0004", + "networks": { + "available": [ + "unionpay" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871356, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:22:36 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_ccHOb4oeDkQl3S","request_duration_ms":508}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:37 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - e9e3b4b3-bdf0-42c7-9a54-ea8e87b13699 + Original-Request: + - req_zZ0i2t3dCI6mVx + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_zZ0i2t3dCI6mVx + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_Pyek3c9niYy4Vu", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871356, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "8A52686D", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:22:37 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hQmKuuB1fWySnn2orDvvg&payment_method_types[0]=card&capture_method=manual&customer=cus_Pyek3c9niYy4Vu&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_zZ0i2t3dCI6mVx","request_duration_ms":509}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:37 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 492b91ee-5cc9-4f81-9be2-c0553b9941d7 + Original-Request: + - req_KE1rWeddaL5Mm6 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_KE1rWeddaL5Mm6 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQnKuuB1fWySn0DgdsMmY", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871357, + "currency": "eur", + "customer": "cus_Pyek3c9niYy4Vu", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQmKuuB1fWySnn2orDvvg", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:37 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQnKuuB1fWySn0DgdsMmY/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_KE1rWeddaL5Mm6","request_duration_ms":407}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:38 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 98fec250-8a2b-486b-942f-b48fa9900659 + Original-Request: + - req_yk8nJfBvtarnL2 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_yk8nJfBvtarnL2 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQnKuuB1fWySn0DgdsMmY", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871357, + "currency": "eur", + "customer": "cus_Pyek3c9niYy4Vu", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQnKuuB1fWySn0t9JlVPu", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQmKuuB1fWySnn2orDvvg", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:38 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQnKuuB1fWySn0DgdsMmY + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_yk8nJfBvtarnL2","request_duration_ms":1052}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:38 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_qgIZfThnNGQCzC + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQnKuuB1fWySn0DgdsMmY", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871357, + "currency": "eur", + "customer": "cus_Pyek3c9niYy4Vu", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQnKuuB1fWySn0t9JlVPu", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQmKuuB1fWySnn2orDvvg", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:38 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQnKuuB1fWySn0DgdsMmY/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_qgIZfThnNGQCzC","request_duration_ms":354}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:40 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - dbbb8330-3a06-4c0c-a7d1-15513e71c503 + Original-Request: + - req_O51iX4HWFWM4Np + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_O51iX4HWFWM4Np + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQnKuuB1fWySn0DgdsMmY", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871357, + "currency": "eur", + "customer": "cus_Pyek3c9niYy4Vu", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQnKuuB1fWySn0t9JlVPu", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQmKuuB1fWySnn2orDvvg", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:40 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQnKuuB1fWySn0DgdsMmY + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_O51iX4HWFWM4Np","request_duration_ms":1431}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:40 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_jw6WIU0GBeVnT2 + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQnKuuB1fWySn0DgdsMmY", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871357, + "currency": "eur", + "customer": "cus_Pyek3c9niYy4Vu", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQnKuuB1fWySn0t9JlVPu", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQmKuuB1fWySnn2orDvvg", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:40 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..f9d88a0aef --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,512 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=6205500000000000004&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_RWM4G5bHZtHy17","request_duration_ms":408}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:33 GMT + Content-Type: + - application/json + Content-Length: + - '1008' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 98ae47f6-108a-483d-8bd4-5f3d04e19134 + Original-Request: + - req_rUeElhqjldp8wd + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_rUeElhqjldp8wd + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hQjKuuB1fWySnujPywnNy", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "unionpay", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "union_pay", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "F9o1vzLUnyEJBPXi", + "funding": "debit", + "generated_from": null, + "last4": "0004", + "networks": { + "available": [ + "unionpay" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871353, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:22:33 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_rUeElhqjldp8wd","request_duration_ms":528}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:34 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - b0c56f1b-7bba-44c1-9207-cb06cc604b82 + Original-Request: + - req_CbpEHLUsshTrfU + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_CbpEHLUsshTrfU + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_Pyek5nTJeHfC9P", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871353, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "6108543E", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:22:34 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hQjKuuB1fWySnujPywnNy&payment_method_types[0]=card&capture_method=manual&customer=cus_Pyek5nTJeHfC9P&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_CbpEHLUsshTrfU","request_duration_ms":509}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:34 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 7ecb4a7c-5bf1-425f-8eac-0dfb3df8ce31 + Original-Request: + - req_Eytj6WHXIq3CWW + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_Eytj6WHXIq3CWW + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQkKuuB1fWySn1brfFX0e", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871354, + "currency": "eur", + "customer": "cus_Pyek5nTJeHfC9P", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQjKuuB1fWySnujPywnNy", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:34 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hQkKuuB1fWySn1brfFX0e/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_Eytj6WHXIq3CWW","request_duration_ms":407}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:22:35 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - d1232c7c-ee0d-4e45-804f-d5703cbe17ba + Original-Request: + - req_sqvzkQBIKE8xCY + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_sqvzkQBIKE8xCY + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hQkKuuB1fWySn1brfFX0e", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871354, + "currency": "eur", + "customer": "cus_Pyek5nTJeHfC9P", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hQkKuuB1fWySn1PKudh8f", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hQjKuuB1fWySnujPywnNy", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:22:35 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/captures_the_payment.yml new file mode 100644 index 0000000000..1364f3a8d9 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/captures_the_payment.yml @@ -0,0 +1,905 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=4242424242424242&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_UgmaT5BH5c9gjk","request_duration_ms":1042}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:20:47 GMT + Content-Type: + - application/json + Content-Length: + - '996' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 837ec842-588f-411a-bccc-705efde724e7 + Original-Request: + - req_xrMxRLbJUU4A7G + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_xrMxRLbJUU4A7G + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hP1KuuB1fWySnz03Vo2yF", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "visa", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "6E6tgVjx6U65iHFV", + "funding": "credit", + "generated_from": null, + "last4": "4242", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871247, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:20:48 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_xrMxRLbJUU4A7G","request_duration_ms":458}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:20:48 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 1ceb128f-c6f0-4014-91ea-7618ef44b664 + Original-Request: + - req_MaiP5LaujwU0LK + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_MaiP5LaujwU0LK + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_PyeiUZlYixpFpZ", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871248, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "A6709702", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:20:48 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hP1KuuB1fWySnz03Vo2yF&payment_method_types[0]=card&capture_method=manual&customer=cus_PyeiUZlYixpFpZ&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_MaiP5LaujwU0LK","request_duration_ms":451}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:20:48 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 7b03c948-3308-4ee3-99c0-e74455818509 + Original-Request: + - req_UzsmC4fTGeJTcv + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_UzsmC4fTGeJTcv + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hP2KuuB1fWySn0XKEWUXu", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871248, + "currency": "eur", + "customer": "cus_PyeiUZlYixpFpZ", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hP1KuuB1fWySnz03Vo2yF", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:20:48 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hP2KuuB1fWySn0XKEWUXu/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_UzsmC4fTGeJTcv","request_duration_ms":404}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:20:49 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 9f4548cd-5a78-4a4f-a113-94b2a6829646 + Original-Request: + - req_jItuhngRLh3OBU + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_jItuhngRLh3OBU + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hP2KuuB1fWySn0XKEWUXu", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871248, + "currency": "eur", + "customer": "cus_PyeiUZlYixpFpZ", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hP2KuuB1fWySn05WVraBL", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hP1KuuB1fWySnz03Vo2yF", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:20:49 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hP2KuuB1fWySn0XKEWUXu + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_jItuhngRLh3OBU","request_duration_ms":1013}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:20:50 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_RSW0EOvXKVDOsj + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hP2KuuB1fWySn0XKEWUXu", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871248, + "currency": "eur", + "customer": "cus_PyeiUZlYixpFpZ", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hP2KuuB1fWySn05WVraBL", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hP1KuuB1fWySnz03Vo2yF", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:20:50 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hP2KuuB1fWySn0XKEWUXu/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_RSW0EOvXKVDOsj","request_duration_ms":347}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:20:51 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - be7dad5d-c4c0-4359-97ed-2c37022aa5a2 + Original-Request: + - req_opMkWzGDrX3TTW + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_opMkWzGDrX3TTW + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hP2KuuB1fWySn0XKEWUXu", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871248, + "currency": "eur", + "customer": "cus_PyeiUZlYixpFpZ", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hP2KuuB1fWySn05WVraBL", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hP1KuuB1fWySnz03Vo2yF", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:20:51 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hP2KuuB1fWySn0XKEWUXu + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_opMkWzGDrX3TTW","request_duration_ms":1124}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:20:51 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_SuEUXxJcKAACHM + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hP2KuuB1fWySn0XKEWUXu", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871248, + "currency": "eur", + "customer": "cus_PyeiUZlYixpFpZ", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hP2KuuB1fWySn05WVraBL", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hP1KuuB1fWySnz03Vo2yF", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:20:51 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..d5ed69d592 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,512 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=4242424242424242&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_TD1ICnTqMW4RYP","request_duration_ms":392}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:20:45 GMT + Content-Type: + - application/json + Content-Length: + - '996' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 68d2582b-1a46-406d-8d18-2ace368db10c + Original-Request: + - req_LdjAk4FM1hpo0U + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_LdjAk4FM1hpo0U + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hOyKuuB1fWySnMzi4d4zE", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "visa", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "6E6tgVjx6U65iHFV", + "funding": "credit", + "generated_from": null, + "last4": "4242", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871245, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:20:45 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_LdjAk4FM1hpo0U","request_duration_ms":455}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:20:45 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - c1e6d5c1-e32a-42c6-a740-91cb151954f1 + Original-Request: + - req_E6VsQiT9u5lSaK + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_E6VsQiT9u5lSaK + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_PyeiIsHCXjEx5v", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871245, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "1D6BD4E6", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:20:45 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hOyKuuB1fWySnMzi4d4zE&payment_method_types[0]=card&capture_method=manual&customer=cus_PyeiIsHCXjEx5v&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_E6VsQiT9u5lSaK","request_duration_ms":416}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:20:45 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 95380c72-b685-4aad-9e95-386a54a2c352 + Original-Request: + - req_XQa3MYudfzFXtY + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_XQa3MYudfzFXtY + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hOzKuuB1fWySn2BfuNUlf", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871245, + "currency": "eur", + "customer": "cus_PyeiIsHCXjEx5v", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hOyKuuB1fWySnMzi4d4zE", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:20:46 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOzKuuB1fWySn2BfuNUlf/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_XQa3MYudfzFXtY","request_duration_ms":477}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:20:47 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - e3142c35-5f72-4c4b-bf20-a44cad45f0b5 + Original-Request: + - req_UgmaT5BH5c9gjk + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_UgmaT5BH5c9gjk + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hOzKuuB1fWySn2BfuNUlf", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871245, + "currency": "eur", + "customer": "cus_PyeiIsHCXjEx5v", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hOzKuuB1fWySn2D5AkAxu", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hOyKuuB1fWySnMzi4d4zE", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:20:47 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/captures_the_payment.yml new file mode 100644 index 0000000000..0890e52288 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/captures_the_payment.yml @@ -0,0 +1,905 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=4000056655665556&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_NSTT4HsXvES8zI","request_duration_ms":1116}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:20:55 GMT + Content-Type: + - application/json + Content-Length: + - '995' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 763b86b3-0434-4f53-90de-0e86a9a18e4a + Original-Request: + - req_d7wiIIWTC76kjJ + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_d7wiIIWTC76kjJ + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hP8KuuB1fWySnFqFZ163j", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "visa", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "QOaaYMtlTSm6xJM8", + "funding": "debit", + "generated_from": null, + "last4": "5556", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871255, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:20:55 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_d7wiIIWTC76kjJ","request_duration_ms":474}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:20:55 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 519dbff1-4400-4473-ba03-3b38e8b5e34d + Original-Request: + - req_SUtRVQTrGlrpx7 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_SUtRVQTrGlrpx7 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_PyeiRd0uamjkpD", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871255, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "C9D877D7", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:20:55 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hP8KuuB1fWySnFqFZ163j&payment_method_types[0]=card&capture_method=manual&customer=cus_PyeiRd0uamjkpD&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_SUtRVQTrGlrpx7","request_duration_ms":443}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:20:56 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 20f5aa54-ad41-48aa-8cd4-f1a3c4c05910 + Original-Request: + - req_eXPcpqqf1hZDxS + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_eXPcpqqf1hZDxS + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hP9KuuB1fWySn1rE3MV9I", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871255, + "currency": "eur", + "customer": "cus_PyeiRd0uamjkpD", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hP8KuuB1fWySnFqFZ163j", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:20:56 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hP9KuuB1fWySn1rE3MV9I/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_eXPcpqqf1hZDxS","request_duration_ms":473}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:20:57 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 6498ca7d-8867-4a1f-b723-591e00d8bdf9 + Original-Request: + - req_ZtwX9Ykka4YUV8 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_ZtwX9Ykka4YUV8 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hP9KuuB1fWySn1rE3MV9I", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871255, + "currency": "eur", + "customer": "cus_PyeiRd0uamjkpD", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hP9KuuB1fWySn12dUJrfp", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hP8KuuB1fWySnFqFZ163j", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:20:57 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hP9KuuB1fWySn1rE3MV9I + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_ZtwX9Ykka4YUV8","request_duration_ms":1103}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:20:57 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_YM5wEDEnuXBpBm + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hP9KuuB1fWySn1rE3MV9I", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871255, + "currency": "eur", + "customer": "cus_PyeiRd0uamjkpD", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hP9KuuB1fWySn12dUJrfp", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hP8KuuB1fWySnFqFZ163j", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:20:57 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hP9KuuB1fWySn1rE3MV9I/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_YM5wEDEnuXBpBm","request_duration_ms":405}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:20:59 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 40e231b3-aef9-4771-b9cf-a982dff14990 + Original-Request: + - req_SeSpAM5UPrqWYH + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_SeSpAM5UPrqWYH + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hP9KuuB1fWySn1rE3MV9I", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871255, + "currency": "eur", + "customer": "cus_PyeiRd0uamjkpD", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hP9KuuB1fWySn12dUJrfp", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hP8KuuB1fWySnFqFZ163j", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:20:59 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hP9KuuB1fWySn1rE3MV9I + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_SeSpAM5UPrqWYH","request_duration_ms":1532}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:20:59 GMT + Content-Type: + - application/json + Content-Length: + - '1383' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_0WphKlQD6xRFlt + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hP9KuuB1fWySn1rE3MV9I", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871255, + "currency": "eur", + "customer": "cus_PyeiRd0uamjkpD", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hP9KuuB1fWySn12dUJrfp", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hP8KuuB1fWySnFqFZ163j", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:20:59 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..fa7cabf881 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_Stripe_customer/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,512 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=4000056655665556&card[exp_month]=12&card[exp_year]=2025&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_SuEUXxJcKAACHM","request_duration_ms":294}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:20:52 GMT + Content-Type: + - application/json + Content-Length: + - '995' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - b416d5bb-1638-4a2a-a8f4-8c592f1a6f6e + Original-Request: + - req_GasZ8Q7X3U3mI0 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_GasZ8Q7X3U3mI0 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1P8hP5KuuB1fWySnGGKWJfNZ", + "object": "payment_method", + "allow_redisplay": "unspecified", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "display_brand": "visa", + "exp_month": 12, + "exp_year": 2025, + "fingerprint": "QOaaYMtlTSm6xJM8", + "funding": "debit", + "generated_from": null, + "last4": "5556", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1713871252, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 23 Apr 2024 11:20:52 GMT +- request: + method: post + uri: https://api.stripe.com/v1/customers + body: + encoding: UTF-8 + string: name=Apple+Customer&email=applecustomer%40example.com + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_GasZ8Q7X3U3mI0","request_duration_ms":408}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:20:52 GMT + Content-Type: + - application/json + Content-Length: + - '649' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 5f289aa6-594d-432e-abf9-7d59afba6450 + Original-Request: + - req_04iwSX9RtGGLNc + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_04iwSX9RtGGLNc + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "cus_PyeioItiFsOZMV", + "object": "customer", + "address": null, + "balance": 0, + "created": 1713871252, + "currency": null, + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": "applecustomer@example.com", + "invoice_prefix": "C9CA4B1C", + "invoice_settings": { + "custom_fields": null, + "default_payment_method": null, + "footer": null, + "rendering_options": null + }, + "livemode": false, + "metadata": {}, + "name": "Apple Customer", + "next_invoice_sequence": 1, + "phone": null, + "preferred_locales": [], + "shipping": null, + "tax_exempt": "none", + "test_clock": null + } + recorded_at: Tue, 23 Apr 2024 11:20:52 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1P8hP5KuuB1fWySnGGKWJfNZ&payment_method_types[0]=card&capture_method=manual&customer=cus_PyeioItiFsOZMV&setup_future_usage=off_session + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_04iwSX9RtGGLNc","request_duration_ms":511}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:20:53 GMT + Content-Type: + - application/json + Content-Length: + - '1368' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 62229c32-c569-4948-a445-3bcec44b32c5 + Original-Request: + - req_cwRm9yGWWWilV1 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_cwRm9yGWWWilV1 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hP6KuuB1fWySn1g8Xuc3F", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871252, + "currency": "eur", + "customer": "cus_PyeioItiFsOZMV", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hP5KuuB1fWySnGGKWJfNZ", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:20:53 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hP6KuuB1fWySn1g8Xuc3F/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/11.1.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_cwRm9yGWWWilV1","request_duration_ms":400}}' + Stripe-Version: + - '2024-04-10' + X-Stripe-Client-User-Agent: + - "" + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 23 Apr 2024 11:20:54 GMT + Content-Type: + - application/json + Content-Length: + - '1390' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + 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' + Cache-Control: + - no-cache, no-store + 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Idempotency-Key: + - 4716d47f-d624-4876-ad10-4c0be48da55d + Original-Request: + - req_NSTT4HsXvES8zI + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_NSTT4HsXvES8zI + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2024-04-10' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3P8hP6KuuB1fWySn1g8Xuc3F", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "", + "confirmation_method": "automatic", + "created": 1713871252, + "currency": "eur", + "customer": "cus_PyeioItiFsOZMV", + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3P8hP6KuuB1fWySn1TOxVGOJ", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1P8hP5KuuB1fWySnGGKWJfNZ", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": "off_session", + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 23 Apr 2024 11:20:54 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Exceeding_velocity_limit_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Exceeding_velocity_limit_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml similarity index 89% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Exceeding_velocity_limit_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Exceeding_velocity_limit_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml index 44a82d621f..296b238fec 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Exceeding_velocity_limit_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Exceeding_velocity_limit_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_MTnLIBxp9QZPi2","request_duration_ms":529}}' + - '{"last_request_metrics":{"request_id":"req_0P0dFe67uRApKs","request_duration_ms":409}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:40:07 GMT + - Tue, 23 Apr 2024 11:20:43 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - '09b0f20d-fff3-4742-92c3-dd5365c9ad01' + - d4a19938-529a-4e02-bdc3-e064ed837d87 Original-Request: - - req_1ebsHfB6iwjJOf + - req_tJEw7BTVnIwxON Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_1ebsHfB6iwjJOf + - req_tJEw7BTVnIwxON Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h98KuuB1fWySnPmskOrli", + "id": "pm_1P8hOxKuuB1fWySntaLexRXT", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393607, + "created": 1713871243, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:40:07 GMT + recorded_at: Tue, 23 Apr 2024 11:20:43 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h98KuuB1fWySnPmskOrli&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hOxKuuB1fWySntaLexRXT&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_1ebsHfB6iwjJOf","request_duration_ms":577}}' + - '{"last_request_metrics":{"request_id":"req_tJEw7BTVnIwxON","request_duration_ms":425}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:40:07 GMT + - Tue, 23 Apr 2024 11:20:43 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 8d303864-b4fd-48c3-812e-7fdd7d4651f6 + - 826bc3ae-17b2-462f-80a3-52c36e0a32bf Original-Request: - - req_ClLaOaXNsGN8vL + - req_TD1ICnTqMW4RYP Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_ClLaOaXNsGN8vL + - req_TD1ICnTqMW4RYP Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h99KuuB1fWySn2OfdkSPl", + "id": "pi_3P8hOxKuuB1fWySn0QCLCcvU", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393607, + "created": 1713871243, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h98KuuB1fWySnPmskOrli", + "payment_method": "pm_1P8hOxKuuB1fWySntaLexRXT", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:40:07 GMT + recorded_at: Tue, 23 Apr 2024 11:20:43 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h99KuuB1fWySn2OfdkSPl/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOxKuuB1fWySn0QCLCcvU/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_ClLaOaXNsGN8vL","request_duration_ms":510}}' + - '{"last_request_metrics":{"request_id":"req_TD1ICnTqMW4RYP","request_duration_ms":392}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:40:08 GMT + - Tue, 23 Apr 2024 11:20:44 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - ea22918b-5183-4f44-ac27-63e7299546d3 + - b1cffb62-959e-4f88-96d8-09fe3dcc4e2e Original-Request: - - req_HGck6NCIT0pJKh + - req_XsFaGGEDA5oXou Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_HGck6NCIT0pJKh + - req_XsFaGGEDA5oXou Stripe-Should-Retry: - 'false' Stripe-Version: @@ -347,13 +347,13 @@ http_interactions: string: | { "error": { - "charge": "ch_3P6h99KuuB1fWySn2Sv33DqP", + "charge": "ch_3P8hOxKuuB1fWySn0WGRPCvo", "code": "card_declined", "decline_code": "card_velocity_exceeded", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card was declined for making repeated attempts too frequently or exceeding its amount limit.", "payment_intent": { - "id": "pi_3P6h99KuuB1fWySn2OfdkSPl", + "id": "pi_3P8hOxKuuB1fWySn0QCLCcvU", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -370,19 +370,19 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393607, + "created": 1713871243, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": { - "charge": "ch_3P6h99KuuB1fWySn2Sv33DqP", + "charge": "ch_3P8hOxKuuB1fWySn0WGRPCvo", "code": "card_declined", "decline_code": "card_velocity_exceeded", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card was declined for making repeated attempts too frequently or exceeding its amount limit.", "payment_method": { - "id": "pm_1P6h98KuuB1fWySnPmskOrli", + "id": "pm_1P8hOxKuuB1fWySntaLexRXT", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -424,7 +424,7 @@ http_interactions: }, "wallet": null }, - "created": 1713393607, + "created": 1713871243, "customer": null, "livemode": false, "metadata": { @@ -433,7 +433,7 @@ http_interactions: }, "type": "card_error" }, - "latest_charge": "ch_3P6h99KuuB1fWySn2Sv33DqP", + "latest_charge": "ch_3P8hOxKuuB1fWySn0WGRPCvo", "livemode": false, "metadata": { }, @@ -465,7 +465,7 @@ http_interactions: "transfer_group": null }, "payment_method": { - "id": "pm_1P6h98KuuB1fWySnPmskOrli", + "id": "pm_1P8hOxKuuB1fWySntaLexRXT", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -507,16 +507,16 @@ http_interactions: }, "wallet": null }, - "created": 1713393607, + "created": 1713871243, "customer": null, "livemode": false, "metadata": { }, "type": "card" }, - "request_log_url": "https://dashboard.stripe.com/test/logs/req_HGck6NCIT0pJKh?t=1713393607", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_XsFaGGEDA5oXou?t=1713871243", "type": "card_error" } } - recorded_at: Wed, 17 Apr 2024 22:40:08 GMT + recorded_at: Tue, 23 Apr 2024 11:20:44 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Expired_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Expired_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml similarity index 89% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Expired_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Expired_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml index 9c9221e541..444212ce29 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Expired_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Expired_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_91pHPi8RnhHsyR","request_duration_ms":1226}}' + - '{"last_request_metrics":{"request_id":"req_FTXU1ZIbyaeQkr","request_duration_ms":432}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:40:00 GMT + - Tue, 23 Apr 2024 11:20:37 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 95f41437-34b8-485a-8963-822e63ab7c47 + - 88982d68-09f6-4fa6-a572-6089b7a160e0 Original-Request: - - req_vwfQav2GN0SQ4r + - req_gY62TO1N0stfzS Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_vwfQav2GN0SQ4r + - req_gY62TO1N0stfzS Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h92KuuB1fWySn0HDWMel6", + "id": "pm_1P8hOrKuuB1fWySnjiUbqScR", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393600, + "created": 1713871237, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:40:00 GMT + recorded_at: Tue, 23 Apr 2024 11:20:37 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h92KuuB1fWySn0HDWMel6&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hOrKuuB1fWySnjiUbqScR&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_vwfQav2GN0SQ4r","request_duration_ms":497}}' + - '{"last_request_metrics":{"request_id":"req_gY62TO1N0stfzS","request_duration_ms":427}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:40:00 GMT + - Tue, 23 Apr 2024 11:20:38 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 102af3c2-a4d1-4f44-ab50-2a4f827c0cf9 + - f938c98a-bc71-4e87-94d7-b2a92dbf21cd Original-Request: - - req_AcKGwgfHNiqkQ2 + - req_KfMG7sTUwbVfkB Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_AcKGwgfHNiqkQ2 + - req_KfMG7sTUwbVfkB Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h92KuuB1fWySn10XVZK55", + "id": "pi_3P8hOrKuuB1fWySn0tLsTsi5", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393600, + "created": 1713871237, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h92KuuB1fWySn0HDWMel6", + "payment_method": "pm_1P8hOrKuuB1fWySnjiUbqScR", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:40:00 GMT + recorded_at: Tue, 23 Apr 2024 11:20:38 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h92KuuB1fWySn10XVZK55/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOrKuuB1fWySn0tLsTsi5/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_AcKGwgfHNiqkQ2","request_duration_ms":510}}' + - '{"last_request_metrics":{"request_id":"req_KfMG7sTUwbVfkB","request_duration_ms":389}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:40:02 GMT + - Tue, 23 Apr 2024 11:20:38 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 961364ed-f77a-46c9-8425-bff589bef4d6 + - e2035da6-4fe9-4851-8877-612b765b1b59 Original-Request: - - req_obyVJ21H3H5mhN + - req_D1X2WHpplGz7bG Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_obyVJ21H3H5mhN + - req_D1X2WHpplGz7bG Stripe-Should-Retry: - 'false' Stripe-Version: @@ -347,13 +347,13 @@ http_interactions: string: | { "error": { - "charge": "ch_3P6h92KuuB1fWySn1vimbcUq", + "charge": "ch_3P8hOrKuuB1fWySn0gEvcQdM", "code": "expired_card", "doc_url": "https://stripe.com/docs/error-codes/expired-card", "message": "Your card has expired.", "param": "exp_month", "payment_intent": { - "id": "pi_3P6h92KuuB1fWySn10XVZK55", + "id": "pi_3P8hOrKuuB1fWySn0tLsTsi5", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -370,19 +370,19 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393600, + "created": 1713871237, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": { - "charge": "ch_3P6h92KuuB1fWySn1vimbcUq", + "charge": "ch_3P8hOrKuuB1fWySn0gEvcQdM", "code": "expired_card", "doc_url": "https://stripe.com/docs/error-codes/expired-card", "message": "Your card has expired.", "param": "exp_month", "payment_method": { - "id": "pm_1P6h92KuuB1fWySn0HDWMel6", + "id": "pm_1P8hOrKuuB1fWySnjiUbqScR", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -424,7 +424,7 @@ http_interactions: }, "wallet": null }, - "created": 1713393600, + "created": 1713871237, "customer": null, "livemode": false, "metadata": { @@ -433,7 +433,7 @@ http_interactions: }, "type": "card_error" }, - "latest_charge": "ch_3P6h92KuuB1fWySn1vimbcUq", + "latest_charge": "ch_3P8hOrKuuB1fWySn0gEvcQdM", "livemode": false, "metadata": { }, @@ -465,7 +465,7 @@ http_interactions: "transfer_group": null }, "payment_method": { - "id": "pm_1P6h92KuuB1fWySn0HDWMel6", + "id": "pm_1P8hOrKuuB1fWySnjiUbqScR", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -507,16 +507,16 @@ http_interactions: }, "wallet": null }, - "created": 1713393600, + "created": 1713871237, "customer": null, "livemode": false, "metadata": { }, "type": "card" }, - "request_log_url": "https://dashboard.stripe.com/test/logs/req_obyVJ21H3H5mhN?t=1713393601", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_D1X2WHpplGz7bG?t=1713871238", "type": "card_error" } } - recorded_at: Wed, 17 Apr 2024 22:40:02 GMT + recorded_at: Tue, 23 Apr 2024 11:20:38 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Generic_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Generic_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml similarity index 89% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Generic_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Generic_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml index 2a4f03f7be..fb80c6fa30 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Generic_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Generic_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_zvf4CAVwSgnYlD","request_duration_ms":325}}' + - '{"last_request_metrics":{"request_id":"req_CLAQeFdk7h5EGj","request_duration_ms":318}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:51 GMT + - Tue, 23 Apr 2024 11:20:29 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 3e2ebf31-c7da-4577-a8dc-1a2b58d16b4f + - '07758b53-1aa2-4a44-8916-d19cad8a069f' Original-Request: - - req_JEskdY1fDUZiGK + - req_0kskJiPnIOJVHG Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_JEskdY1fDUZiGK + - req_0kskJiPnIOJVHG Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h8tKuuB1fWySnVkyyCW9S", + "id": "pm_1P8hOjKuuB1fWySnP7gYrBVw", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393591, + "created": 1713871229, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:39:51 GMT + recorded_at: Tue, 23 Apr 2024 11:20:29 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h8tKuuB1fWySnVkyyCW9S&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hOjKuuB1fWySnP7gYrBVw&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_JEskdY1fDUZiGK","request_duration_ms":549}}' + - '{"last_request_metrics":{"request_id":"req_0kskJiPnIOJVHG","request_duration_ms":538}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:51 GMT + - Tue, 23 Apr 2024 11:20:30 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - a9b30257-3b69-44bb-b62c-4f1b28088b3d + - d1efddf1-415e-49fb-96b6-06df34262172 Original-Request: - - req_ozBWc8q3xpqvDc + - req_UzfS2TikGjkDvJ Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_ozBWc8q3xpqvDc + - req_UzfS2TikGjkDvJ Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8tKuuB1fWySn0b4wKpwW", + "id": "pi_3P8hOjKuuB1fWySn1ouX7iIF", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393591, + "created": 1713871229, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8tKuuB1fWySnVkyyCW9S", + "payment_method": "pm_1P8hOjKuuB1fWySnP7gYrBVw", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:51 GMT + recorded_at: Tue, 23 Apr 2024 11:20:30 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8tKuuB1fWySn0b4wKpwW/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOjKuuB1fWySn1ouX7iIF/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_ozBWc8q3xpqvDc","request_duration_ms":507}}' + - '{"last_request_metrics":{"request_id":"req_UzfS2TikGjkDvJ","request_duration_ms":409}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:52 GMT + - Tue, 23 Apr 2024 11:20:31 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 0b9dcf4b-a558-4d29-8bd2-39741508a496 + - 8c6748e1-aa46-478d-a479-9a71de90eb22 Original-Request: - - req_P1pWIPxC0iMtgI + - req_gGUfDC9JLGf480 Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_P1pWIPxC0iMtgI + - req_gGUfDC9JLGf480 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -347,13 +347,13 @@ http_interactions: string: | { "error": { - "charge": "ch_3P6h8tKuuB1fWySn0h2YuoXV", + "charge": "ch_3P8hOjKuuB1fWySn1cxYKudg", "code": "card_declined", "decline_code": "generic_decline", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card was declined.", "payment_intent": { - "id": "pi_3P6h8tKuuB1fWySn0b4wKpwW", + "id": "pi_3P8hOjKuuB1fWySn1ouX7iIF", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -370,19 +370,19 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393591, + "created": 1713871229, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": { - "charge": "ch_3P6h8tKuuB1fWySn0h2YuoXV", + "charge": "ch_3P8hOjKuuB1fWySn1cxYKudg", "code": "card_declined", "decline_code": "generic_decline", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card was declined.", "payment_method": { - "id": "pm_1P6h8tKuuB1fWySnVkyyCW9S", + "id": "pm_1P8hOjKuuB1fWySnP7gYrBVw", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -424,7 +424,7 @@ http_interactions: }, "wallet": null }, - "created": 1713393591, + "created": 1713871229, "customer": null, "livemode": false, "metadata": { @@ -433,7 +433,7 @@ http_interactions: }, "type": "card_error" }, - "latest_charge": "ch_3P6h8tKuuB1fWySn0h2YuoXV", + "latest_charge": "ch_3P8hOjKuuB1fWySn1cxYKudg", "livemode": false, "metadata": { }, @@ -465,7 +465,7 @@ http_interactions: "transfer_group": null }, "payment_method": { - "id": "pm_1P6h8tKuuB1fWySnVkyyCW9S", + "id": "pm_1P8hOjKuuB1fWySnP7gYrBVw", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -507,16 +507,16 @@ http_interactions: }, "wallet": null }, - "created": 1713393591, + "created": 1713871229, "customer": null, "livemode": false, "metadata": { }, "type": "card" }, - "request_log_url": "https://dashboard.stripe.com/test/logs/req_P1pWIPxC0iMtgI?t=1713393592", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_gGUfDC9JLGf480?t=1713871230", "type": "card_error" } } - recorded_at: Wed, 17 Apr 2024 22:39:53 GMT + recorded_at: Tue, 23 Apr 2024 11:20:31 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Incorrect_CVC_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Incorrect_CVC_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml similarity index 89% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Incorrect_CVC_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Incorrect_CVC_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml index 0a57cb8215..f6f8a92529 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Incorrect_CVC_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Incorrect_CVC_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_AcKGwgfHNiqkQ2","request_duration_ms":510}}' + - '{"last_request_metrics":{"request_id":"req_KfMG7sTUwbVfkB","request_duration_ms":389}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:40:02 GMT + - Tue, 23 Apr 2024 11:20:39 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - c138f19e-3512-4b4a-ab08-b2d672ecfc54 + - 351a3773-aaaf-480b-a9df-f84107b9e010 Original-Request: - - req_AT9S1WAn7ax8yv + - req_ta6HZdIlldVny4 Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_AT9S1WAn7ax8yv + - req_ta6HZdIlldVny4 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h94KuuB1fWySnQFqcyGd2", + "id": "pm_1P8hOtKuuB1fWySnSr39glVr", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393602, + "created": 1713871239, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:40:02 GMT + recorded_at: Tue, 23 Apr 2024 11:20:39 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h94KuuB1fWySnQFqcyGd2&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hOtKuuB1fWySnSr39glVr&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_AT9S1WAn7ax8yv","request_duration_ms":600}}' + - '{"last_request_metrics":{"request_id":"req_ta6HZdIlldVny4","request_duration_ms":467}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:40:03 GMT + - Tue, 23 Apr 2024 11:20:39 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - d290a537-0a3c-4289-a344-9798fab37425 + - 6451ed99-2f09-47ea-9dc0-72a18f36e276 Original-Request: - - req_wjgo9m5BZbNXmh + - req_UFCEYmCStF5gkT Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_wjgo9m5BZbNXmh + - req_UFCEYmCStF5gkT Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h95KuuB1fWySn097LCCVO", + "id": "pi_3P8hOtKuuB1fWySn0wyaR4ua", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393603, + "created": 1713871239, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h94KuuB1fWySnQFqcyGd2", + "payment_method": "pm_1P8hOtKuuB1fWySnSr39glVr", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:40:03 GMT + recorded_at: Tue, 23 Apr 2024 11:20:39 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h95KuuB1fWySn097LCCVO/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOtKuuB1fWySn0wyaR4ua/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_wjgo9m5BZbNXmh","request_duration_ms":509}}' + - '{"last_request_metrics":{"request_id":"req_UFCEYmCStF5gkT","request_duration_ms":416}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:40:04 GMT + - Tue, 23 Apr 2024 11:20:40 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 45c87915-37a5-4aec-b237-400cf3fcdb98 + - df4611ab-d527-4c86-a356-c4dae19c4f0c Original-Request: - - req_vnOxwSvTNRDLKP + - req_CSrOegPcnD3VnG Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_vnOxwSvTNRDLKP + - req_CSrOegPcnD3VnG Stripe-Should-Retry: - 'false' Stripe-Version: @@ -347,13 +347,13 @@ http_interactions: string: | { "error": { - "charge": "ch_3P6h95KuuB1fWySn02izQ9TQ", + "charge": "ch_3P8hOtKuuB1fWySn0WkfjXqH", "code": "incorrect_cvc", "doc_url": "https://stripe.com/docs/error-codes/incorrect-cvc", "message": "Your card's security code is incorrect.", "param": "cvc", "payment_intent": { - "id": "pi_3P6h95KuuB1fWySn097LCCVO", + "id": "pi_3P8hOtKuuB1fWySn0wyaR4ua", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -370,19 +370,19 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393603, + "created": 1713871239, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": { - "charge": "ch_3P6h95KuuB1fWySn02izQ9TQ", + "charge": "ch_3P8hOtKuuB1fWySn0WkfjXqH", "code": "incorrect_cvc", "doc_url": "https://stripe.com/docs/error-codes/incorrect-cvc", "message": "Your card's security code is incorrect.", "param": "cvc", "payment_method": { - "id": "pm_1P6h94KuuB1fWySnQFqcyGd2", + "id": "pm_1P8hOtKuuB1fWySnSr39glVr", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -424,7 +424,7 @@ http_interactions: }, "wallet": null }, - "created": 1713393602, + "created": 1713871239, "customer": null, "livemode": false, "metadata": { @@ -433,7 +433,7 @@ http_interactions: }, "type": "card_error" }, - "latest_charge": "ch_3P6h95KuuB1fWySn02izQ9TQ", + "latest_charge": "ch_3P8hOtKuuB1fWySn0WkfjXqH", "livemode": false, "metadata": { }, @@ -465,7 +465,7 @@ http_interactions: "transfer_group": null }, "payment_method": { - "id": "pm_1P6h94KuuB1fWySnQFqcyGd2", + "id": "pm_1P8hOtKuuB1fWySnSr39glVr", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -507,16 +507,16 @@ http_interactions: }, "wallet": null }, - "created": 1713393602, + "created": 1713871239, "customer": null, "livemode": false, "metadata": { }, "type": "card" }, - "request_log_url": "https://dashboard.stripe.com/test/logs/req_vnOxwSvTNRDLKP?t=1713393603", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_CSrOegPcnD3VnG?t=1713871239", "type": "card_error" } } - recorded_at: Wed, 17 Apr 2024 22:40:04 GMT + recorded_at: Tue, 23 Apr 2024 11:20:40 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Insufficient_funds_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Insufficient_funds_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml similarity index 89% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Insufficient_funds_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Insufficient_funds_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml index 2f4c58fce1..4214cdd814 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Insufficient_funds_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Insufficient_funds_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_ozBWc8q3xpqvDc","request_duration_ms":507}}' + - '{"last_request_metrics":{"request_id":"req_UzfS2TikGjkDvJ","request_duration_ms":409}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:53 GMT + - Tue, 23 Apr 2024 11:20:31 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 811b2fb6-a22d-4e1c-b24f-99023c6c8c06 + - 6e9a7b4b-4c69-497b-a7eb-45e507e3506d Original-Request: - - req_X81UrQj5D2fIoG + - req_7BzxqpXKYTBsaC Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_X81UrQj5D2fIoG + - req_7BzxqpXKYTBsaC Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h8vKuuB1fWySnVKifRHk9", + "id": "pm_1P8hOlKuuB1fWySnMz294q8D", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393593, + "created": 1713871231, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:39:53 GMT + recorded_at: Tue, 23 Apr 2024 11:20:31 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h8vKuuB1fWySnVKifRHk9&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hOlKuuB1fWySnMz294q8D&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_X81UrQj5D2fIoG","request_duration_ms":497}}' + - '{"last_request_metrics":{"request_id":"req_7BzxqpXKYTBsaC","request_duration_ms":495}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:54 GMT + - Tue, 23 Apr 2024 11:20:32 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 212396f7-3cd5-491b-95ba-e1dc90a8b0af + - b1371ab7-5dc0-4192-97a9-a2a2e92e1d62 Original-Request: - - req_tdGmWRacIg71uZ + - req_4GGugKYm02eIx4 Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_tdGmWRacIg71uZ + - req_4GGugKYm02eIx4 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8vKuuB1fWySn176iLXFn", + "id": "pi_3P8hOlKuuB1fWySn2gfd39po", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393593, + "created": 1713871231, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8vKuuB1fWySnVKifRHk9", + "payment_method": "pm_1P8hOlKuuB1fWySnMz294q8D", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:54 GMT + recorded_at: Tue, 23 Apr 2024 11:20:32 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8vKuuB1fWySn176iLXFn/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOlKuuB1fWySn2gfd39po/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_tdGmWRacIg71uZ","request_duration_ms":509}}' + - '{"last_request_metrics":{"request_id":"req_4GGugKYm02eIx4","request_duration_ms":415}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:55 GMT + - Tue, 23 Apr 2024 11:20:33 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 19c2ea46-8301-4ca7-a76e-91eafa74a68f + - 94c02762-13f1-4c86-90d7-e78b4d4081a7 Original-Request: - - req_Uinf6vD8KZj9v4 + - req_ZIPBAdotb8jZg4 Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_Uinf6vD8KZj9v4 + - req_ZIPBAdotb8jZg4 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -347,13 +347,13 @@ http_interactions: string: | { "error": { - "charge": "ch_3P6h8vKuuB1fWySn1dijUtHM", + "charge": "ch_3P8hOlKuuB1fWySn2U29gWfE", "code": "card_declined", "decline_code": "insufficient_funds", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card has insufficient funds.", "payment_intent": { - "id": "pi_3P6h8vKuuB1fWySn176iLXFn", + "id": "pi_3P8hOlKuuB1fWySn2gfd39po", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -370,19 +370,19 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393593, + "created": 1713871231, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": { - "charge": "ch_3P6h8vKuuB1fWySn1dijUtHM", + "charge": "ch_3P8hOlKuuB1fWySn2U29gWfE", "code": "card_declined", "decline_code": "insufficient_funds", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card has insufficient funds.", "payment_method": { - "id": "pm_1P6h8vKuuB1fWySnVKifRHk9", + "id": "pm_1P8hOlKuuB1fWySnMz294q8D", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -424,7 +424,7 @@ http_interactions: }, "wallet": null }, - "created": 1713393593, + "created": 1713871231, "customer": null, "livemode": false, "metadata": { @@ -433,7 +433,7 @@ http_interactions: }, "type": "card_error" }, - "latest_charge": "ch_3P6h8vKuuB1fWySn1dijUtHM", + "latest_charge": "ch_3P8hOlKuuB1fWySn2U29gWfE", "livemode": false, "metadata": { }, @@ -465,7 +465,7 @@ http_interactions: "transfer_group": null }, "payment_method": { - "id": "pm_1P6h8vKuuB1fWySnVKifRHk9", + "id": "pm_1P8hOlKuuB1fWySnMz294q8D", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -507,16 +507,16 @@ http_interactions: }, "wallet": null }, - "created": 1713393593, + "created": 1713871231, "customer": null, "livemode": false, "metadata": { }, "type": "card" }, - "request_log_url": "https://dashboard.stripe.com/test/logs/req_Uinf6vD8KZj9v4?t=1713393594", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_ZIPBAdotb8jZg4?t=1713871232", "type": "card_error" } } - recorded_at: Wed, 17 Apr 2024 22:39:55 GMT + recorded_at: Tue, 23 Apr 2024 11:20:33 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Lost_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Lost_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml similarity index 89% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Lost_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Lost_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml index 0fc939c873..58edacb702 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Lost_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Lost_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_tdGmWRacIg71uZ","request_duration_ms":509}}' + - '{"last_request_metrics":{"request_id":"req_4GGugKYm02eIx4","request_duration_ms":415}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:55 GMT + - Tue, 23 Apr 2024 11:20:33 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - d0d41881-d7af-4ce4-a47c-4ae4b0843c6e + - 4d397d2a-d89b-4fd8-866f-74c03f9ae451 Original-Request: - - req_xLfba5hGPhEt2G + - req_Tk2Da6Ib9v7iwQ Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_xLfba5hGPhEt2G + - req_Tk2Da6Ib9v7iwQ Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h8xKuuB1fWySnLRqxbX0I", + "id": "pm_1P8hOnKuuB1fWySnx8EJpGhb", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393595, + "created": 1713871233, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:39:55 GMT + recorded_at: Tue, 23 Apr 2024 11:20:33 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h8xKuuB1fWySnLRqxbX0I&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hOnKuuB1fWySnx8EJpGhb&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_xLfba5hGPhEt2G","request_duration_ms":496}}' + - '{"last_request_metrics":{"request_id":"req_Tk2Da6Ib9v7iwQ","request_duration_ms":439}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:56 GMT + - Tue, 23 Apr 2024 11:20:34 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - c8d47cf3-ea2b-4a50-8591-18fa853b3a59 + - c39f7b2f-badb-4c89-b5e4-ec3627b4f0e7 Original-Request: - - req_64JFtjubv6sXiB + - req_HbCKCMYMlXyGXr Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_64JFtjubv6sXiB + - req_HbCKCMYMlXyGXr Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8xKuuB1fWySn1DJmrN9c", + "id": "pi_3P8hOnKuuB1fWySn1Lfg4kYU", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393595, + "created": 1713871233, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8xKuuB1fWySnLRqxbX0I", + "payment_method": "pm_1P8hOnKuuB1fWySnx8EJpGhb", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:56 GMT + recorded_at: Tue, 23 Apr 2024 11:20:34 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8xKuuB1fWySn1DJmrN9c/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOnKuuB1fWySn1Lfg4kYU/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_64JFtjubv6sXiB","request_duration_ms":509}}' + - '{"last_request_metrics":{"request_id":"req_HbCKCMYMlXyGXr","request_duration_ms":411}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:57 GMT + - Tue, 23 Apr 2024 11:20:35 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 0a23bb08-3af7-4271-a71c-8bcfc1270f8d + - 21964356-c5c7-4e3a-97e2-d163adf94548 Original-Request: - - req_pHn2N3UwZjAJka + - req_MzZhKZKuZqs3iH Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_pHn2N3UwZjAJka + - req_MzZhKZKuZqs3iH Stripe-Should-Retry: - 'false' Stripe-Version: @@ -347,13 +347,13 @@ http_interactions: string: | { "error": { - "charge": "ch_3P6h8xKuuB1fWySn1og4ys7e", + "charge": "ch_3P8hOnKuuB1fWySn12NqEdJr", "code": "card_declined", "decline_code": "lost_card", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card was declined.", "payment_intent": { - "id": "pi_3P6h8xKuuB1fWySn1DJmrN9c", + "id": "pi_3P8hOnKuuB1fWySn1Lfg4kYU", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -370,19 +370,19 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393595, + "created": 1713871233, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": { - "charge": "ch_3P6h8xKuuB1fWySn1og4ys7e", + "charge": "ch_3P8hOnKuuB1fWySn12NqEdJr", "code": "card_declined", "decline_code": "lost_card", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card was declined.", "payment_method": { - "id": "pm_1P6h8xKuuB1fWySnLRqxbX0I", + "id": "pm_1P8hOnKuuB1fWySnx8EJpGhb", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -424,7 +424,7 @@ http_interactions: }, "wallet": null }, - "created": 1713393595, + "created": 1713871233, "customer": null, "livemode": false, "metadata": { @@ -433,7 +433,7 @@ http_interactions: }, "type": "card_error" }, - "latest_charge": "ch_3P6h8xKuuB1fWySn1og4ys7e", + "latest_charge": "ch_3P8hOnKuuB1fWySn12NqEdJr", "livemode": false, "metadata": { }, @@ -465,7 +465,7 @@ http_interactions: "transfer_group": null }, "payment_method": { - "id": "pm_1P6h8xKuuB1fWySnLRqxbX0I", + "id": "pm_1P8hOnKuuB1fWySnx8EJpGhb", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -507,16 +507,16 @@ http_interactions: }, "wallet": null }, - "created": 1713393595, + "created": 1713871233, "customer": null, "livemode": false, "metadata": { }, "type": "card" }, - "request_log_url": "https://dashboard.stripe.com/test/logs/req_pHn2N3UwZjAJka?t=1713393596", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_MzZhKZKuZqs3iH?t=1713871234", "type": "card_error" } } - recorded_at: Wed, 17 Apr 2024 22:39:57 GMT + recorded_at: Tue, 23 Apr 2024 11:20:35 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Processing_error_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Processing_error_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml similarity index 89% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Processing_error_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Processing_error_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml index 295baaa8f7..27adaf9c49 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Processing_error_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Processing_error_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_wjgo9m5BZbNXmh","request_duration_ms":509}}' + - '{"last_request_metrics":{"request_id":"req_UFCEYmCStF5gkT","request_duration_ms":416}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:40:05 GMT + - Tue, 23 Apr 2024 11:20:41 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - d5fc1c0d-9ed9-4c00-acf9-f4be04c6b19a + - 60897254-a14b-4cc0-ab5d-edcaec713df6 Original-Request: - - req_vIHentAe5XkqId + - req_0ABTeq9p7qRCrY Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_vIHentAe5XkqId + - req_0ABTeq9p7qRCrY Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h96KuuB1fWySnYl63gMcD", + "id": "pm_1P8hOvKuuB1fWySnmICExK3O", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393604, + "created": 1713871241, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:40:05 GMT + recorded_at: Tue, 23 Apr 2024 11:20:41 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h96KuuB1fWySnYl63gMcD&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hOvKuuB1fWySnmICExK3O&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_vIHentAe5XkqId","request_duration_ms":577}}' + - '{"last_request_metrics":{"request_id":"req_0ABTeq9p7qRCrY","request_duration_ms":463}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:40:05 GMT + - Tue, 23 Apr 2024 11:20:41 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - c11e2fb3-ceab-4dfe-8d7a-96280372a227 + - 0ef06f67-601c-499c-9882-04a35311c597 Original-Request: - - req_MTnLIBxp9QZPi2 + - req_0P0dFe67uRApKs Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_MTnLIBxp9QZPi2 + - req_0P0dFe67uRApKs Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h97KuuB1fWySn0bvt3XeL", + "id": "pi_3P8hOvKuuB1fWySn0gssyD54", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393605, + "created": 1713871241, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h96KuuB1fWySnYl63gMcD", + "payment_method": "pm_1P8hOvKuuB1fWySnmICExK3O", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:40:05 GMT + recorded_at: Tue, 23 Apr 2024 11:20:41 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h97KuuB1fWySn0bvt3XeL/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOvKuuB1fWySn0gssyD54/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_MTnLIBxp9QZPi2","request_duration_ms":529}}' + - '{"last_request_metrics":{"request_id":"req_0P0dFe67uRApKs","request_duration_ms":409}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:40:06 GMT + - Tue, 23 Apr 2024 11:20:42 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 483ca1ff-5a07-41ab-bebf-f2ca9dc6531e + - 3fe19571-82c8-4409-9e74-910a63b99ef3 Original-Request: - - req_wyhh7XdnfzCAm0 + - req_QTxZT4if0gpdwK Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_wyhh7XdnfzCAm0 + - req_QTxZT4if0gpdwK Stripe-Should-Retry: - 'false' Stripe-Version: @@ -347,12 +347,12 @@ http_interactions: string: | { "error": { - "charge": "ch_3P6h97KuuB1fWySn07xJWGvn", + "charge": "ch_3P8hOvKuuB1fWySn0Q1qaMc9", "code": "processing_error", "doc_url": "https://stripe.com/docs/error-codes/processing-error", "message": "An error occurred while processing your card. Try again in a little bit.", "payment_intent": { - "id": "pi_3P6h97KuuB1fWySn0bvt3XeL", + "id": "pi_3P8hOvKuuB1fWySn0gssyD54", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -369,18 +369,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393605, + "created": 1713871241, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": { - "charge": "ch_3P6h97KuuB1fWySn07xJWGvn", + "charge": "ch_3P8hOvKuuB1fWySn0Q1qaMc9", "code": "processing_error", "doc_url": "https://stripe.com/docs/error-codes/processing-error", "message": "An error occurred while processing your card. Try again in a little bit.", "payment_method": { - "id": "pm_1P6h96KuuB1fWySnYl63gMcD", + "id": "pm_1P8hOvKuuB1fWySnmICExK3O", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -422,7 +422,7 @@ http_interactions: }, "wallet": null }, - "created": 1713393604, + "created": 1713871241, "customer": null, "livemode": false, "metadata": { @@ -431,7 +431,7 @@ http_interactions: }, "type": "card_error" }, - "latest_charge": "ch_3P6h97KuuB1fWySn07xJWGvn", + "latest_charge": "ch_3P8hOvKuuB1fWySn0Q1qaMc9", "livemode": false, "metadata": { }, @@ -463,7 +463,7 @@ http_interactions: "transfer_group": null }, "payment_method": { - "id": "pm_1P6h96KuuB1fWySnYl63gMcD", + "id": "pm_1P8hOvKuuB1fWySnmICExK3O", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -505,16 +505,16 @@ http_interactions: }, "wallet": null }, - "created": 1713393604, + "created": 1713871241, "customer": null, "livemode": false, "metadata": { }, "type": "card" }, - "request_log_url": "https://dashboard.stripe.com/test/logs/req_wyhh7XdnfzCAm0?t=1713393605", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_QTxZT4if0gpdwK?t=1713871241", "type": "card_error" } } - recorded_at: Wed, 17 Apr 2024 22:40:06 GMT + recorded_at: Tue, 23 Apr 2024 11:20:42 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Stolen_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Stolen_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml similarity index 89% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Stolen_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Stolen_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml index 160c03b9af..372cba76f7 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Stolen_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Stolen_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_64JFtjubv6sXiB","request_duration_ms":509}}' + - '{"last_request_metrics":{"request_id":"req_HbCKCMYMlXyGXr","request_duration_ms":411}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:57 GMT + - Tue, 23 Apr 2024 11:20:35 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 9b80cc2a-8752-4ccc-949c-427e3892c6f8 + - 03e5054a-e24b-4f76-81d6-55cf44579543 Original-Request: - - req_VroYwmmGAe7bGf + - req_zP0BeHy4YnIt0l Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_VroYwmmGAe7bGf + - req_zP0BeHy4YnIt0l Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h8zKuuB1fWySnyte7TuZO", + "id": "pm_1P8hOpKuuB1fWySnOlYgiKQ7", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393597, + "created": 1713871235, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:39:57 GMT + recorded_at: Tue, 23 Apr 2024 11:20:35 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h8zKuuB1fWySnyte7TuZO&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hOpKuuB1fWySnOlYgiKQ7&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_VroYwmmGAe7bGf","request_duration_ms":499}}' + - '{"last_request_metrics":{"request_id":"req_zP0BeHy4YnIt0l","request_duration_ms":433}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:58 GMT + - Tue, 23 Apr 2024 11:20:36 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 005b8a2f-5672-4d21-aebe-188d3bb56506 + - 7857cdf4-bb31-4f83-b0ba-764680363e61 Original-Request: - - req_91pHPi8RnhHsyR + - req_FTXU1ZIbyaeQkr Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_91pHPi8RnhHsyR + - req_FTXU1ZIbyaeQkr Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h90KuuB1fWySn2SMGU8mf", + "id": "pi_3P8hOpKuuB1fWySn02Y7jLP8", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393598, + "created": 1713871235, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8zKuuB1fWySnyte7TuZO", + "payment_method": "pm_1P8hOpKuuB1fWySnOlYgiKQ7", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:58 GMT + recorded_at: Tue, 23 Apr 2024 11:20:36 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h90KuuB1fWySn2SMGU8mf/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOpKuuB1fWySn02Y7jLP8/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_91pHPi8RnhHsyR","request_duration_ms":1226}}' + - '{"last_request_metrics":{"request_id":"req_FTXU1ZIbyaeQkr","request_duration_ms":432}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:59 GMT + - Tue, 23 Apr 2024 11:20:37 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 37315a7f-b15c-4f95-88ad-0ef2f556d2da + - f77c4d0f-c4e8-49aa-98b4-29df76dbb935 Original-Request: - - req_tJpyXlIUqME2C6 + - req_bEvAJU8I9JI3lP Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_tJpyXlIUqME2C6 + - req_bEvAJU8I9JI3lP Stripe-Should-Retry: - 'false' Stripe-Version: @@ -347,13 +347,13 @@ http_interactions: string: | { "error": { - "charge": "ch_3P6h90KuuB1fWySn2uILaF5P", + "charge": "ch_3P8hOpKuuB1fWySn03R1BqjO", "code": "card_declined", "decline_code": "stolen_card", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card was declined.", "payment_intent": { - "id": "pi_3P6h90KuuB1fWySn2SMGU8mf", + "id": "pi_3P8hOpKuuB1fWySn02Y7jLP8", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -370,19 +370,19 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393598, + "created": 1713871235, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": { - "charge": "ch_3P6h90KuuB1fWySn2uILaF5P", + "charge": "ch_3P8hOpKuuB1fWySn03R1BqjO", "code": "card_declined", "decline_code": "stolen_card", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card was declined.", "payment_method": { - "id": "pm_1P6h8zKuuB1fWySnyte7TuZO", + "id": "pm_1P8hOpKuuB1fWySnOlYgiKQ7", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -424,7 +424,7 @@ http_interactions: }, "wallet": null }, - "created": 1713393597, + "created": 1713871235, "customer": null, "livemode": false, "metadata": { @@ -433,7 +433,7 @@ http_interactions: }, "type": "card_error" }, - "latest_charge": "ch_3P6h90KuuB1fWySn2uILaF5P", + "latest_charge": "ch_3P8hOpKuuB1fWySn03R1BqjO", "livemode": false, "metadata": { }, @@ -465,7 +465,7 @@ http_interactions: "transfer_group": null }, "payment_method": { - "id": "pm_1P6h8zKuuB1fWySnyte7TuZO", + "id": "pm_1P8hOpKuuB1fWySnOlYgiKQ7", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -507,16 +507,16 @@ http_interactions: }, "wallet": null }, - "created": 1713393597, + "created": 1713871235, "customer": null, "livemode": false, "metadata": { }, "type": "card" }, - "request_log_url": "https://dashboard.stripe.com/test/logs/req_tJpyXlIUqME2C6?t=1713393599", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_bEvAJU8I9JI3lP?t=1713871236", "type": "card_error" } } - recorded_at: Wed, 17 Apr 2024 22:39:59 GMT + recorded_at: Tue, 23 Apr 2024 11:20:37 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/captures_the_payment.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/captures_the_payment.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/captures_the_payment.yml index 87d9f2b0f0..044f8e4852 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_8RoSQ8dLWnQaG2","request_duration_ms":946}}' + - '{"last_request_metrics":{"request_id":"req_kYtLGywFxGssP5","request_duration_ms":1022}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:56 GMT + - Tue, 23 Apr 2024 11:19:37 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - dc2bb939-488a-4e51-acd0-f41ddadbff8e + - 7dd9ec98-ec26-49e5-8a2e-e55271f1e8ca Original-Request: - - req_yDVoUX6jGomVz3 + - req_NRjdFQhRkTMioQ Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_yDVoUX6jGomVz3 + - req_NRjdFQhRkTMioQ Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h80KuuB1fWySnKLIYVtP4", + "id": "pm_1P8hNtKuuB1fWySnC8hS8ai0", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393536, + "created": 1713871177, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:38:56 GMT + recorded_at: Tue, 23 Apr 2024 11:19:37 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h80KuuB1fWySnKLIYVtP4&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hNtKuuB1fWySnC8hS8ai0&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_yDVoUX6jGomVz3","request_duration_ms":521}}' + - '{"last_request_metrics":{"request_id":"req_NRjdFQhRkTMioQ","request_duration_ms":512}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:57 GMT + - Tue, 23 Apr 2024 11:19:37 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - d56f56a8-973f-4586-baed-3d6321ccfedd + - 97db8c6b-3383-421e-9ccd-99f12dcd4b37 Original-Request: - - req_7zJLlUTwf7naGK + - req_NrilVTb819m4pV Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_7zJLlUTwf7naGK + - req_NrilVTb819m4pV Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h81KuuB1fWySn1i3iTLoX", + "id": "pi_3P8hNtKuuB1fWySn2oOeGD9B", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393537, + "created": 1713871177, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h80KuuB1fWySnKLIYVtP4", + "payment_method": "pm_1P8hNtKuuB1fWySnC8hS8ai0", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:57 GMT + recorded_at: Tue, 23 Apr 2024 11:19:38 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h81KuuB1fWySn1i3iTLoX/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNtKuuB1fWySn2oOeGD9B/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_7zJLlUTwf7naGK","request_duration_ms":509}}' + - '{"last_request_metrics":{"request_id":"req_NrilVTb819m4pV","request_duration_ms":612}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:58 GMT + - Tue, 23 Apr 2024 11:19:39 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - e0e61825-c787-4fce-8f17-c83e0ef3e61c + - 9308d030-49e2-49b5-83cf-35abd58e60b2 Original-Request: - - req_79R8PUCuDi3D9P + - req_FKzxCoUcrbqye9 Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_79R8PUCuDi3D9P + - req_FKzxCoUcrbqye9 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h81KuuB1fWySn1i3iTLoX", + "id": "pi_3P8hNtKuuB1fWySn2oOeGD9B", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393537, + "created": 1713871177, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h81KuuB1fWySn1eMa5DyD", + "latest_charge": "ch_3P8hNtKuuB1fWySn27ThUZBq", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h80KuuB1fWySnKLIYVtP4", + "payment_method": "pm_1P8hNtKuuB1fWySnC8hS8ai0", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,10 +398,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:58 GMT + recorded_at: Tue, 23 Apr 2024 11:19:39 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h81KuuB1fWySn1i3iTLoX + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNtKuuB1fWySn2oOeGD9B body: encoding: US-ASCII string: '' @@ -413,7 +413,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_79R8PUCuDi3D9P","request_duration_ms":993}}' + - '{"last_request_metrics":{"request_id":"req_FKzxCoUcrbqye9","request_duration_ms":983}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -430,7 +430,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:58 GMT + - Tue, 23 Apr 2024 11:19:39 GMT Content-Type: - application/json Content-Length: @@ -462,7 +462,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_8YvzhYldSRubBW + - req_TIRR4OFr4m0I4b Stripe-Version: - '2024-04-10' Vary: @@ -475,7 +475,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h81KuuB1fWySn1i3iTLoX", + "id": "pi_3P8hNtKuuB1fWySn2oOeGD9B", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -491,18 +491,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393537, + "created": 1713871177, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h81KuuB1fWySn1eMa5DyD", + "latest_charge": "ch_3P8hNtKuuB1fWySn27ThUZBq", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h80KuuB1fWySnKLIYVtP4", + "payment_method": "pm_1P8hNtKuuB1fWySnC8hS8ai0", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -527,10 +527,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:58 GMT + recorded_at: Tue, 23 Apr 2024 11:19:39 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h81KuuB1fWySn1i3iTLoX/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNtKuuB1fWySn2oOeGD9B/capture body: encoding: US-ASCII string: '' @@ -542,7 +542,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_8YvzhYldSRubBW","request_duration_ms":435}}' + - '{"last_request_metrics":{"request_id":"req_TIRR4OFr4m0I4b","request_duration_ms":340}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -559,7 +559,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:00 GMT + - Tue, 23 Apr 2024 11:19:40 GMT Content-Type: - application/json Content-Length: @@ -587,15 +587,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 25ffa565-65dd-44f1-b1de-5d1f834d0c07 + - 14f9ae29-367b-4368-b016-8ef7cb7793c8 Original-Request: - - req_QHmUBQF84F7qG1 + - req_Hk2fDQ8IvV95Jc Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_QHmUBQF84F7qG1 + - req_Hk2fDQ8IvV95Jc Stripe-Should-Retry: - 'false' Stripe-Version: @@ -610,7 +610,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h81KuuB1fWySn1i3iTLoX", + "id": "pi_3P8hNtKuuB1fWySn2oOeGD9B", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -626,18 +626,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393537, + "created": 1713871177, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h81KuuB1fWySn1eMa5DyD", + "latest_charge": "ch_3P8hNtKuuB1fWySn27ThUZBq", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h80KuuB1fWySnKLIYVtP4", + "payment_method": "pm_1P8hNtKuuB1fWySnC8hS8ai0", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -662,10 +662,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:00 GMT + recorded_at: Tue, 23 Apr 2024 11:19:40 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h81KuuB1fWySn1i3iTLoX + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNtKuuB1fWySn2oOeGD9B body: encoding: US-ASCII string: '' @@ -677,7 +677,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_QHmUBQF84F7qG1","request_duration_ms":1124}}' + - '{"last_request_metrics":{"request_id":"req_Hk2fDQ8IvV95Jc","request_duration_ms":1001}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -694,7 +694,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:00 GMT + - Tue, 23 Apr 2024 11:19:40 GMT Content-Type: - application/json Content-Length: @@ -726,7 +726,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_lW3Bslok4Lawnx + - req_LKa5sZbf9NNCJ0 Stripe-Version: - '2024-04-10' Vary: @@ -739,7 +739,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h81KuuB1fWySn1i3iTLoX", + "id": "pi_3P8hNtKuuB1fWySn2oOeGD9B", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -755,18 +755,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393537, + "created": 1713871177, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h81KuuB1fWySn1eMa5DyD", + "latest_charge": "ch_3P8hNtKuuB1fWySn27ThUZBq", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h80KuuB1fWySnKLIYVtP4", + "payment_method": "pm_1P8hNtKuuB1fWySnC8hS8ai0", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -791,5 +791,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:00 GMT + recorded_at: Tue, 23 Apr 2024 11:19:40 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/returns_payment_intent_id_and_does_not_raise.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/returns_payment_intent_id_and_does_not_raise.yml index 0a231d2704..260b75c1db 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_Op5E047dEuFump","request_duration_ms":405}}' + - '{"last_request_metrics":{"request_id":"req_azV3R41xItqtxT","request_duration_ms":408}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:54 GMT + - Tue, 23 Apr 2024 11:19:34 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - c2c01d7e-8dba-4820-944c-529925047b7e + - 55cdc358-de43-428d-a4e2-73ef80c0e8de Original-Request: - - req_sQ1BbnbMqtgWCv + - req_h51EmrXIH4HXSy Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_sQ1BbnbMqtgWCv + - req_h51EmrXIH4HXSy Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h7yKuuB1fWySnAjXTMD0L", + "id": "pm_1P8hNqKuuB1fWySnJ6XqeFlN", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393534, + "created": 1713871174, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:38:54 GMT + recorded_at: Tue, 23 Apr 2024 11:19:35 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h7yKuuB1fWySnAjXTMD0L&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hNqKuuB1fWySnJ6XqeFlN&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_sQ1BbnbMqtgWCv","request_duration_ms":496}}' + - '{"last_request_metrics":{"request_id":"req_h51EmrXIH4HXSy","request_duration_ms":421}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:55 GMT + - Tue, 23 Apr 2024 11:19:35 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 9386dac8-1c19-4906-83cf-f2af342a6229 + - 1883fad3-3893-403c-a2f8-e4610272a7da Original-Request: - - req_mXHokzUAHJQ1zS + - req_sDHNMgqJB65g50 Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_mXHokzUAHJQ1zS + - req_sDHNMgqJB65g50 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7zKuuB1fWySn1IOJf23O", + "id": "pi_3P8hNrKuuB1fWySn2DJrs4FT", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393535, + "created": 1713871175, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7yKuuB1fWySnAjXTMD0L", + "payment_method": "pm_1P8hNqKuuB1fWySnJ6XqeFlN", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:55 GMT + recorded_at: Tue, 23 Apr 2024 11:19:35 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7zKuuB1fWySn1IOJf23O/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNrKuuB1fWySn2DJrs4FT/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_mXHokzUAHJQ1zS","request_duration_ms":508}}' + - '{"last_request_metrics":{"request_id":"req_sDHNMgqJB65g50","request_duration_ms":444}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:56 GMT + - Tue, 23 Apr 2024 11:19:36 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 0e55b45a-9dfe-478d-8533-891777278c6d + - 2ad557c9-fa28-4f41-8a0b-2003b801b68b Original-Request: - - req_8RoSQ8dLWnQaG2 + - req_kYtLGywFxGssP5 Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_8RoSQ8dLWnQaG2 + - req_kYtLGywFxGssP5 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7zKuuB1fWySn1IOJf23O", + "id": "pi_3P8hNrKuuB1fWySn2DJrs4FT", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393535, + "created": 1713871175, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7zKuuB1fWySn12dvB53S", + "latest_charge": "ch_3P8hNrKuuB1fWySn2XcS6yFA", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7yKuuB1fWySnAjXTMD0L", + "payment_method": "pm_1P8hNqKuuB1fWySnJ6XqeFlN", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,5 +398,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:56 GMT + recorded_at: Tue, 23 Apr 2024 11:19:36 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/captures_the_payment.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/captures_the_payment.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/captures_the_payment.yml index ace626cb3a..e4016493d7 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_3z0b70bAwXWXdV","request_duration_ms":1021}}' + - '{"last_request_metrics":{"request_id":"req_bR8Ns6vD0QQNye","request_duration_ms":894}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:29 GMT + - Tue, 23 Apr 2024 11:20:08 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 85034cd4-c0be-46d4-9682-7dd3ebcf5da9 + - d6622af2-c973-40ff-8461-e836f2dfc59d Original-Request: - - req_belJapNFhTfYji + - req_AKQ9x6bEHaqp7O Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_belJapNFhTfYji + - req_AKQ9x6bEHaqp7O Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h8XKuuB1fWySnVdMtfDOI", + "id": "pm_1P8hONKuuB1fWySno9Mcl2ic", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393569, + "created": 1713871208, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:39:29 GMT + recorded_at: Tue, 23 Apr 2024 11:20:08 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h8XKuuB1fWySnVdMtfDOI&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hONKuuB1fWySno9Mcl2ic&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_belJapNFhTfYji","request_duration_ms":455}}' + - '{"last_request_metrics":{"request_id":"req_AKQ9x6bEHaqp7O","request_duration_ms":423}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:30 GMT + - Tue, 23 Apr 2024 11:20:08 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - c33adf33-7e60-4ee6-b785-38eb34dcfe33 + - cb90cc82-5704-4771-930f-fdf5f9a6fcd2 Original-Request: - - req_H8BuN9wUGP5BSM + - req_nmIHWKLnoJo04s Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_H8BuN9wUGP5BSM + - req_nmIHWKLnoJo04s Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8XKuuB1fWySn2MhbFPiK", + "id": "pi_3P8hOOKuuB1fWySn2Odt72kl", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393569, + "created": 1713871208, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8XKuuB1fWySnVdMtfDOI", + "payment_method": "pm_1P8hONKuuB1fWySno9Mcl2ic", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:30 GMT + recorded_at: Tue, 23 Apr 2024 11:20:08 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8XKuuB1fWySn2MhbFPiK/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOOKuuB1fWySn2Odt72kl/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_H8BuN9wUGP5BSM","request_duration_ms":537}}' + - '{"last_request_metrics":{"request_id":"req_nmIHWKLnoJo04s","request_duration_ms":508}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:31 GMT + - Tue, 23 Apr 2024 11:20:09 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 607660cd-97a2-4ec4-a5be-b9813e87360f + - 100c875c-35f0-4c72-a966-bbb696c46fed Original-Request: - - req_VfWUNSJ16yKaDM + - req_DKBvjDBoTGkeUT Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_VfWUNSJ16yKaDM + - req_DKBvjDBoTGkeUT Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8XKuuB1fWySn2MhbFPiK", + "id": "pi_3P8hOOKuuB1fWySn2Odt72kl", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393569, + "created": 1713871208, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8XKuuB1fWySn27vTFz5x", + "latest_charge": "ch_3P8hOOKuuB1fWySn230U2EUB", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8XKuuB1fWySnVdMtfDOI", + "payment_method": "pm_1P8hONKuuB1fWySno9Mcl2ic", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,10 +398,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:31 GMT + recorded_at: Tue, 23 Apr 2024 11:20:09 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8XKuuB1fWySn2MhbFPiK + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOOKuuB1fWySn2Odt72kl body: encoding: US-ASCII string: '' @@ -413,7 +413,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_VfWUNSJ16yKaDM","request_duration_ms":996}}' + - '{"last_request_metrics":{"request_id":"req_DKBvjDBoTGkeUT","request_duration_ms":938}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -430,7 +430,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:31 GMT + - Tue, 23 Apr 2024 11:20:09 GMT Content-Type: - application/json Content-Length: @@ -462,7 +462,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_V3NhiQRMAVdhG5 + - req_p0BWdhdkOVIWYG Stripe-Version: - '2024-04-10' Vary: @@ -475,7 +475,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8XKuuB1fWySn2MhbFPiK", + "id": "pi_3P8hOOKuuB1fWySn2Odt72kl", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -491,18 +491,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393569, + "created": 1713871208, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8XKuuB1fWySn27vTFz5x", + "latest_charge": "ch_3P8hOOKuuB1fWySn230U2EUB", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8XKuuB1fWySnVdMtfDOI", + "payment_method": "pm_1P8hONKuuB1fWySno9Mcl2ic", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -527,10 +527,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:31 GMT + recorded_at: Tue, 23 Apr 2024 11:20:09 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8XKuuB1fWySn2MhbFPiK/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOOKuuB1fWySn2Odt72kl/capture body: encoding: US-ASCII string: '' @@ -542,7 +542,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_V3NhiQRMAVdhG5","request_duration_ms":407}}' + - '{"last_request_metrics":{"request_id":"req_p0BWdhdkOVIWYG","request_duration_ms":314}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -559,7 +559,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:32 GMT + - Tue, 23 Apr 2024 11:20:10 GMT Content-Type: - application/json Content-Length: @@ -587,15 +587,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 9ed1472d-bee6-44be-84b5-3295c458d1e4 + - a95287aa-0422-4a15-bfe5-81f03857c889 Original-Request: - - req_Zm7KQZK83zAent + - req_pK8yffh9OIdizQ Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_Zm7KQZK83zAent + - req_pK8yffh9OIdizQ Stripe-Should-Retry: - 'false' Stripe-Version: @@ -610,7 +610,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8XKuuB1fWySn2MhbFPiK", + "id": "pi_3P8hOOKuuB1fWySn2Odt72kl", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -626,18 +626,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393569, + "created": 1713871208, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8XKuuB1fWySn27vTFz5x", + "latest_charge": "ch_3P8hOOKuuB1fWySn230U2EUB", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8XKuuB1fWySnVdMtfDOI", + "payment_method": "pm_1P8hONKuuB1fWySno9Mcl2ic", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -662,10 +662,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:32 GMT + recorded_at: Tue, 23 Apr 2024 11:20:11 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8XKuuB1fWySn2MhbFPiK + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOOKuuB1fWySn2Odt72kl body: encoding: US-ASCII string: '' @@ -677,7 +677,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_Zm7KQZK83zAent","request_duration_ms":1124}}' + - '{"last_request_metrics":{"request_id":"req_pK8yffh9OIdizQ","request_duration_ms":1033}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -694,7 +694,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:32 GMT + - Tue, 23 Apr 2024 11:20:11 GMT Content-Type: - application/json Content-Length: @@ -726,7 +726,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_hfwFTTxVfnyp1F + - req_JAV7p6VHbcflfL Stripe-Version: - '2024-04-10' Vary: @@ -739,7 +739,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8XKuuB1fWySn2MhbFPiK", + "id": "pi_3P8hOOKuuB1fWySn2Odt72kl", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -755,18 +755,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393569, + "created": 1713871208, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8XKuuB1fWySn27vTFz5x", + "latest_charge": "ch_3P8hOOKuuB1fWySn230U2EUB", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8XKuuB1fWySnVdMtfDOI", + "payment_method": "pm_1P8hONKuuB1fWySno9Mcl2ic", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -791,5 +791,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:33 GMT + recorded_at: Tue, 23 Apr 2024 11:20:11 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/returns_payment_intent_id_and_does_not_raise.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/returns_payment_intent_id_and_does_not_raise.yml index 154c7ef553..e410bd911e 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_I3pl4WWcmSdR3t","request_duration_ms":323}}' + - '{"last_request_metrics":{"request_id":"req_ddoELzhmVk5L54","request_duration_ms":306}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:27 GMT + - Tue, 23 Apr 2024 11:20:05 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 7e7c53f3-778d-4cf6-99b8-e9d2e323847c + - a9cc5447-3eca-4e18-a389-75afbedf4303 Original-Request: - - req_R5sPMLGXRV4s9f + - req_XOTBaA5jnWCyEJ Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_R5sPMLGXRV4s9f + - req_XOTBaA5jnWCyEJ Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h8VKuuB1fWySnG6WGYjOq", + "id": "pm_1P8hOLKuuB1fWySn72k0uhtc", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393567, + "created": 1713871205, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:39:27 GMT + recorded_at: Tue, 23 Apr 2024 11:20:05 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h8VKuuB1fWySnG6WGYjOq&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hOLKuuB1fWySn72k0uhtc&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_R5sPMLGXRV4s9f","request_duration_ms":476}}' + - '{"last_request_metrics":{"request_id":"req_XOTBaA5jnWCyEJ","request_duration_ms":442}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:27 GMT + - Tue, 23 Apr 2024 11:20:06 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 9f4c16b6-e857-4835-a8c0-a898a480bc8d + - d568f439-f540-48be-8b8a-d333b20e6271 Original-Request: - - req_oiMNzBLhwBnOq5 + - req_hkoU27ho7VXuVC Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_oiMNzBLhwBnOq5 + - req_hkoU27ho7VXuVC Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8VKuuB1fWySn20Fo9znJ", + "id": "pi_3P8hOMKuuB1fWySn0xktqmNp", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393567, + "created": 1713871206, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8VKuuB1fWySnG6WGYjOq", + "payment_method": "pm_1P8hOLKuuB1fWySn72k0uhtc", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:27 GMT + recorded_at: Tue, 23 Apr 2024 11:20:06 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8VKuuB1fWySn20Fo9znJ/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOMKuuB1fWySn0xktqmNp/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_oiMNzBLhwBnOq5","request_duration_ms":509}}' + - '{"last_request_metrics":{"request_id":"req_hkoU27ho7VXuVC","request_duration_ms":407}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:28 GMT + - Tue, 23 Apr 2024 11:20:07 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - f5c42d6a-7ba8-484a-9729-b77ccd7e9702 + - aa80c1db-6bf5-40dd-bd27-4d3e30ff2d5a Original-Request: - - req_3z0b70bAwXWXdV + - req_bR8Ns6vD0QQNye Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_3z0b70bAwXWXdV + - req_bR8Ns6vD0QQNye Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8VKuuB1fWySn20Fo9znJ", + "id": "pi_3P8hOMKuuB1fWySn0xktqmNp", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393567, + "created": 1713871206, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8VKuuB1fWySn27KfJTAK", + "latest_charge": "ch_3P8hOMKuuB1fWySn0i4KPr2P", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8VKuuB1fWySnG6WGYjOq", + "payment_method": "pm_1P8hOLKuuB1fWySn72k0uhtc", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,5 +398,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:28 GMT + recorded_at: Tue, 23 Apr 2024 11:20:07 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/captures_the_payment.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/captures_the_payment.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/captures_the_payment.yml index fad9014f66..9e09e73af2 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_eMip2uJLGOAsUL","request_duration_ms":1021}}' + - '{"last_request_metrics":{"request_id":"req_ffAR0hNG0OYgX2","request_duration_ms":1124}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:17 GMT + - Tue, 23 Apr 2024 11:19:56 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 1a4570da-468a-4b3d-89fc-5e09e5f2139f + - f875e0ac-f59f-442f-aebd-f642fc83560a Original-Request: - - req_MJFLj7xyGzTDVH + - req_IEMrcHsXh2Eax0 Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_MJFLj7xyGzTDVH + - req_IEMrcHsXh2Eax0 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h8LKuuB1fWySnLJ1Se1NW", + "id": "pm_1P8hOCKuuB1fWySnMsprBNZg", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393557, + "created": 1713871196, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:39:17 GMT + recorded_at: Tue, 23 Apr 2024 11:19:56 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h8LKuuB1fWySnLJ1Se1NW&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hOCKuuB1fWySnMsprBNZg&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_MJFLj7xyGzTDVH","request_duration_ms":470}}' + - '{"last_request_metrics":{"request_id":"req_IEMrcHsXh2Eax0","request_duration_ms":402}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:17 GMT + - Tue, 23 Apr 2024 11:19:56 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - '091a9024-bc8e-4ae1-974b-ea8c9444cb5c' + - be163a3d-683e-4e2f-aabc-9a83fc7ec3df Original-Request: - - req_fnovB9YHqPYxKh + - req_SOQ2fhN5iPFv7u Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_fnovB9YHqPYxKh + - req_SOQ2fhN5iPFv7u Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8LKuuB1fWySn2zowFGx3", + "id": "pi_3P8hOCKuuB1fWySn1JhOQVab", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393557, + "created": 1713871196, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8LKuuB1fWySnLJ1Se1NW", + "payment_method": "pm_1P8hOCKuuB1fWySnMsprBNZg", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:17 GMT + recorded_at: Tue, 23 Apr 2024 11:19:56 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8LKuuB1fWySn2zowFGx3/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOCKuuB1fWySn1JhOQVab/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_fnovB9YHqPYxKh","request_duration_ms":509}}' + - '{"last_request_metrics":{"request_id":"req_SOQ2fhN5iPFv7u","request_duration_ms":397}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:18 GMT + - Tue, 23 Apr 2024 11:19:57 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 474e1a09-5f2b-45b0-b6ef-04074541ad2c + - f2fbde41-efcd-4895-a239-70d3f7e63854 Original-Request: - - req_C7H2INDfTs3Tjy + - req_iw9oL8XP2dNuKP Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_C7H2INDfTs3Tjy + - req_iw9oL8XP2dNuKP Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8LKuuB1fWySn2zowFGx3", + "id": "pi_3P8hOCKuuB1fWySn1JhOQVab", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393557, + "created": 1713871196, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8LKuuB1fWySn2JuiHUdy", + "latest_charge": "ch_3P8hOCKuuB1fWySn1hv7Nwzr", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8LKuuB1fWySnLJ1Se1NW", + "payment_method": "pm_1P8hOCKuuB1fWySnMsprBNZg", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,10 +398,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:18 GMT + recorded_at: Tue, 23 Apr 2024 11:19:57 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8LKuuB1fWySn2zowFGx3 + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOCKuuB1fWySn1JhOQVab body: encoding: US-ASCII string: '' @@ -413,7 +413,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_C7H2INDfTs3Tjy","request_duration_ms":1021}}' + - '{"last_request_metrics":{"request_id":"req_iw9oL8XP2dNuKP","request_duration_ms":918}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -430,7 +430,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:19 GMT + - Tue, 23 Apr 2024 11:19:57 GMT Content-Type: - application/json Content-Length: @@ -462,7 +462,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_DOVGWJrVI35T4X + - req_fqNjDj939l3JjY Stripe-Version: - '2024-04-10' Vary: @@ -475,7 +475,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8LKuuB1fWySn2zowFGx3", + "id": "pi_3P8hOCKuuB1fWySn1JhOQVab", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -491,18 +491,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393557, + "created": 1713871196, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8LKuuB1fWySn2JuiHUdy", + "latest_charge": "ch_3P8hOCKuuB1fWySn1hv7Nwzr", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8LKuuB1fWySnLJ1Se1NW", + "payment_method": "pm_1P8hOCKuuB1fWySnMsprBNZg", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -527,10 +527,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:19 GMT + recorded_at: Tue, 23 Apr 2024 11:19:57 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8LKuuB1fWySn2zowFGx3/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOCKuuB1fWySn1JhOQVab/capture body: encoding: US-ASCII string: '' @@ -542,7 +542,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_DOVGWJrVI35T4X","request_duration_ms":407}}' + - '{"last_request_metrics":{"request_id":"req_fqNjDj939l3JjY","request_duration_ms":303}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -559,7 +559,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:20 GMT + - Tue, 23 Apr 2024 11:19:58 GMT Content-Type: - application/json Content-Length: @@ -587,15 +587,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - d900647d-2aec-4e64-98d1-f15c83461c8f + - 8a57705c-3908-4d53-9e32-0cecb040c9fd Original-Request: - - req_PsYDkuQdjXeUiU + - req_bk7uF9eamRsrzT Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_PsYDkuQdjXeUiU + - req_bk7uF9eamRsrzT Stripe-Should-Retry: - 'false' Stripe-Version: @@ -610,7 +610,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8LKuuB1fWySn2zowFGx3", + "id": "pi_3P8hOCKuuB1fWySn1JhOQVab", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -626,18 +626,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393557, + "created": 1713871196, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8LKuuB1fWySn2JuiHUdy", + "latest_charge": "ch_3P8hOCKuuB1fWySn1hv7Nwzr", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8LKuuB1fWySnLJ1Se1NW", + "payment_method": "pm_1P8hOCKuuB1fWySnMsprBNZg", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -662,10 +662,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:20 GMT + recorded_at: Tue, 23 Apr 2024 11:19:58 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8LKuuB1fWySn2zowFGx3 + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOCKuuB1fWySn1JhOQVab body: encoding: US-ASCII string: '' @@ -677,7 +677,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_PsYDkuQdjXeUiU","request_duration_ms":1129}}' + - '{"last_request_metrics":{"request_id":"req_bk7uF9eamRsrzT","request_duration_ms":985}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -694,7 +694,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:20 GMT + - Tue, 23 Apr 2024 11:19:59 GMT Content-Type: - application/json Content-Length: @@ -726,7 +726,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_O9M1jcSqndJOJC + - req_hv5wGyvlDCpZ4q Stripe-Version: - '2024-04-10' Vary: @@ -739,7 +739,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8LKuuB1fWySn2zowFGx3", + "id": "pi_3P8hOCKuuB1fWySn1JhOQVab", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -755,18 +755,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393557, + "created": 1713871196, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8LKuuB1fWySn2JuiHUdy", + "latest_charge": "ch_3P8hOCKuuB1fWySn1hv7Nwzr", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8LKuuB1fWySnLJ1Se1NW", + "payment_method": "pm_1P8hOCKuuB1fWySnMsprBNZg", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -791,5 +791,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:20 GMT + recorded_at: Tue, 23 Apr 2024 11:19:59 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/returns_payment_intent_id_and_does_not_raise.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/returns_payment_intent_id_and_does_not_raise.yml index 8781fce420..03bf3d774b 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_51gEEe58VXMvAb","request_duration_ms":464}}' + - '{"last_request_metrics":{"request_id":"req_QpAFzYIN9Npz9E","request_duration_ms":407}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:15 GMT + - Tue, 23 Apr 2024 11:19:53 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 3d62fb8d-e2d2-4a85-9cbf-db3f4eefc828 + - 89eeb309-a34b-4df4-b547-3509a1a1f2c1 Original-Request: - - req_8nJ9m62uUKZ1BT + - req_3OWdpekseC1OHc Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_8nJ9m62uUKZ1BT + - req_3OWdpekseC1OHc Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h8IKuuB1fWySnR0Y3X7ef", + "id": "pm_1P8hO9KuuB1fWySnW0a4nkXb", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393554, + "created": 1713871193, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:39:15 GMT + recorded_at: Tue, 23 Apr 2024 11:19:53 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h8IKuuB1fWySnR0Y3X7ef&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hO9KuuB1fWySnW0a4nkXb&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_8nJ9m62uUKZ1BT","request_duration_ms":572}}' + - '{"last_request_metrics":{"request_id":"req_3OWdpekseC1OHc","request_duration_ms":460}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:15 GMT + - Tue, 23 Apr 2024 11:19:54 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 91901a1a-fd2b-4876-b05c-bf94c201b9f6 + - 206fc4e9-d57b-41d7-8315-ea83924a960b Original-Request: - - req_vinBkTBwWki9qy + - req_hYzCOvueIy5BeU Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_vinBkTBwWki9qy + - req_hYzCOvueIy5BeU Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8JKuuB1fWySn2yadc0B1", + "id": "pi_3P8hOAKuuB1fWySn2WBXSlwq", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393555, + "created": 1713871194, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8IKuuB1fWySnR0Y3X7ef", + "payment_method": "pm_1P8hO9KuuB1fWySnW0a4nkXb", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:15 GMT + recorded_at: Tue, 23 Apr 2024 11:19:54 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8JKuuB1fWySn2yadc0B1/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOAKuuB1fWySn2WBXSlwq/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_vinBkTBwWki9qy","request_duration_ms":509}}' + - '{"last_request_metrics":{"request_id":"req_hYzCOvueIy5BeU","request_duration_ms":507}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:16 GMT + - Tue, 23 Apr 2024 11:19:55 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - e2fe3772-c299-4588-81a1-bdad8e9b314b + - 8be4ebdd-2a0e-471d-8065-de8dd1be088a Original-Request: - - req_eMip2uJLGOAsUL + - req_ffAR0hNG0OYgX2 Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_eMip2uJLGOAsUL + - req_ffAR0hNG0OYgX2 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8JKuuB1fWySn2yadc0B1", + "id": "pi_3P8hOAKuuB1fWySn2WBXSlwq", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393555, + "created": 1713871194, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8JKuuB1fWySn26uIchSq", + "latest_charge": "ch_3P8hOAKuuB1fWySn2Uidmutm", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8IKuuB1fWySnR0Y3X7ef", + "payment_method": "pm_1P8hO9KuuB1fWySnW0a4nkXb", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,5 +398,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:16 GMT + recorded_at: Tue, 23 Apr 2024 11:19:55 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/captures_the_payment.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/captures_the_payment.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/captures_the_payment.yml index ed30b7c4f3..4b20403343 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_0ok5x8RVmzx0fI","request_duration_ms":1022}}' + - '{"last_request_metrics":{"request_id":"req_F50bsJAfpjP1no","request_duration_ms":1020}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:23 GMT + - Tue, 23 Apr 2024 11:20:02 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - bdd25ab2-01bf-4d8a-b996-790be486e8f5 + - 68142e73-7169-4fd0-8d60-238cd3b2f51f Original-Request: - - req_aW2iJeMUdsXpdu + - req_W7p2bvM5ekTGhy Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_aW2iJeMUdsXpdu + - req_W7p2bvM5ekTGhy Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h8RKuuB1fWySnfA4I9N8P", + "id": "pm_1P8hOHKuuB1fWySn4wnEZUnj", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393563, + "created": 1713871202, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:39:23 GMT + recorded_at: Tue, 23 Apr 2024 11:20:02 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h8RKuuB1fWySnfA4I9N8P&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hOHKuuB1fWySn4wnEZUnj&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_aW2iJeMUdsXpdu","request_duration_ms":476}}' + - '{"last_request_metrics":{"request_id":"req_W7p2bvM5ekTGhy","request_duration_ms":464}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:23 GMT + - Tue, 23 Apr 2024 11:20:02 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - f38730a5-9b88-41bb-af95-f3f0d1b6db51 + - 7895f41e-8196-4746-804f-7a476dffc8bd Original-Request: - - req_EKgkqCB3ZJn6mK + - req_EuXVMstokQQw3n Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_EKgkqCB3ZJn6mK + - req_EuXVMstokQQw3n Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8RKuuB1fWySn2f9Q1nED", + "id": "pi_3P8hOIKuuB1fWySn21HOyA6i", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393563, + "created": 1713871202, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8RKuuB1fWySnfA4I9N8P", + "payment_method": "pm_1P8hOHKuuB1fWySn4wnEZUnj", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:24 GMT + recorded_at: Tue, 23 Apr 2024 11:20:02 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8RKuuB1fWySn2f9Q1nED/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOIKuuB1fWySn21HOyA6i/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_EKgkqCB3ZJn6mK","request_duration_ms":509}}' + - '{"last_request_metrics":{"request_id":"req_EuXVMstokQQw3n","request_duration_ms":509}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:24 GMT + - Tue, 23 Apr 2024 11:20:03 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 11732f20-6777-4a68-b1a7-99963f769446 + - 38511fda-290e-4fce-a5b3-f4aee43b8b4b Original-Request: - - req_lvzjZr0RkFNeES + - req_NNPzzTeg5bGDdZ Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_lvzjZr0RkFNeES + - req_NNPzzTeg5bGDdZ Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8RKuuB1fWySn2f9Q1nED", + "id": "pi_3P8hOIKuuB1fWySn21HOyA6i", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393563, + "created": 1713871202, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8RKuuB1fWySn2G5g1Oav", + "latest_charge": "ch_3P8hOIKuuB1fWySn2LL7XqVG", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8RKuuB1fWySnfA4I9N8P", + "payment_method": "pm_1P8hOHKuuB1fWySn4wnEZUnj", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,10 +398,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:25 GMT + recorded_at: Tue, 23 Apr 2024 11:20:03 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8RKuuB1fWySn2f9Q1nED + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOIKuuB1fWySn21HOyA6i body: encoding: US-ASCII string: '' @@ -413,7 +413,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_lvzjZr0RkFNeES","request_duration_ms":1022}}' + - '{"last_request_metrics":{"request_id":"req_NNPzzTeg5bGDdZ","request_duration_ms":945}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -430,7 +430,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:25 GMT + - Tue, 23 Apr 2024 11:20:04 GMT Content-Type: - application/json Content-Length: @@ -462,7 +462,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_mZY27L2xmuWtnA + - req_uOm7zegugymQDX Stripe-Version: - '2024-04-10' Vary: @@ -475,7 +475,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8RKuuB1fWySn2f9Q1nED", + "id": "pi_3P8hOIKuuB1fWySn21HOyA6i", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -491,18 +491,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393563, + "created": 1713871202, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8RKuuB1fWySn2G5g1Oav", + "latest_charge": "ch_3P8hOIKuuB1fWySn2LL7XqVG", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8RKuuB1fWySnfA4I9N8P", + "payment_method": "pm_1P8hOHKuuB1fWySn4wnEZUnj", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -527,10 +527,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:25 GMT + recorded_at: Tue, 23 Apr 2024 11:20:04 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8RKuuB1fWySn2f9Q1nED/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOIKuuB1fWySn21HOyA6i/capture body: encoding: US-ASCII string: '' @@ -542,7 +542,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_mZY27L2xmuWtnA","request_duration_ms":407}}' + - '{"last_request_metrics":{"request_id":"req_uOm7zegugymQDX","request_duration_ms":379}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -559,7 +559,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:26 GMT + - Tue, 23 Apr 2024 11:20:05 GMT Content-Type: - application/json Content-Length: @@ -587,15 +587,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - e01d3351-bd95-4c93-82f2-f68eb2c70b77 + - 2894fcfb-1365-416c-8fd0-1ee06b7bc3d7 Original-Request: - - req_eZOI1S6A1Np124 + - req_hNaSGKKhYrdaBI Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_eZOI1S6A1Np124 + - req_hNaSGKKhYrdaBI Stripe-Should-Retry: - 'false' Stripe-Version: @@ -610,7 +610,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8RKuuB1fWySn2f9Q1nED", + "id": "pi_3P8hOIKuuB1fWySn21HOyA6i", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -626,18 +626,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393563, + "created": 1713871202, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8RKuuB1fWySn2G5g1Oav", + "latest_charge": "ch_3P8hOIKuuB1fWySn2LL7XqVG", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8RKuuB1fWySnfA4I9N8P", + "payment_method": "pm_1P8hOHKuuB1fWySn4wnEZUnj", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -662,10 +662,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:26 GMT + recorded_at: Tue, 23 Apr 2024 11:20:05 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8RKuuB1fWySn2f9Q1nED + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOIKuuB1fWySn21HOyA6i body: encoding: US-ASCII string: '' @@ -677,7 +677,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_eZOI1S6A1Np124","request_duration_ms":1125}}' + - '{"last_request_metrics":{"request_id":"req_hNaSGKKhYrdaBI","request_duration_ms":1058}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -694,7 +694,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:26 GMT + - Tue, 23 Apr 2024 11:20:05 GMT Content-Type: - application/json Content-Length: @@ -726,7 +726,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_I3pl4WWcmSdR3t + - req_ddoELzhmVk5L54 Stripe-Version: - '2024-04-10' Vary: @@ -739,7 +739,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8RKuuB1fWySn2f9Q1nED", + "id": "pi_3P8hOIKuuB1fWySn21HOyA6i", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -755,18 +755,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393563, + "created": 1713871202, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8RKuuB1fWySn2G5g1Oav", + "latest_charge": "ch_3P8hOIKuuB1fWySn2LL7XqVG", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8RKuuB1fWySnfA4I9N8P", + "payment_method": "pm_1P8hOHKuuB1fWySn4wnEZUnj", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -791,5 +791,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:26 GMT + recorded_at: Tue, 23 Apr 2024 11:20:05 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/returns_payment_intent_id_and_does_not_raise.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/returns_payment_intent_id_and_does_not_raise.yml index 41d07ffa7f..8977ad1ddc 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_O9M1jcSqndJOJC","request_duration_ms":401}}' + - '{"last_request_metrics":{"request_id":"req_hv5wGyvlDCpZ4q","request_duration_ms":339}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:21 GMT + - Tue, 23 Apr 2024 11:19:59 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - d26715a9-307d-47f4-a2cf-bf33c3162e70 + - 796aa49b-c388-47db-a20a-f14dfee541e2 Original-Request: - - req_XdePxbRUWKTvjI + - req_WSVbwrOSeKTiWr Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_XdePxbRUWKTvjI + - req_WSVbwrOSeKTiWr Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h8PKuuB1fWySnIah9Di2G", + "id": "pm_1P8hOFKuuB1fWySn1mu7MDlw", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393561, + "created": 1713871199, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:39:21 GMT + recorded_at: Tue, 23 Apr 2024 11:19:59 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h8PKuuB1fWySnIah9Di2G&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hOFKuuB1fWySn1mu7MDlw&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_XdePxbRUWKTvjI","request_duration_ms":494}}' + - '{"last_request_metrics":{"request_id":"req_WSVbwrOSeKTiWr","request_duration_ms":463}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:21 GMT + - Tue, 23 Apr 2024 11:20:00 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - a5265d51-79c9-42f7-b184-6dbe3bd95491 + - 0dda9a0d-cf2f-4fe3-a4b9-dcfee8b3429c Original-Request: - - req_s14CejPPZfzuMk + - req_vFWYulKIEYjdV7 Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_s14CejPPZfzuMk + - req_vFWYulKIEYjdV7 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8PKuuB1fWySn1OZkfwQc", + "id": "pi_3P8hOGKuuB1fWySn0s6S7d1V", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393561, + "created": 1713871200, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8PKuuB1fWySnIah9Di2G", + "payment_method": "pm_1P8hOFKuuB1fWySn1mu7MDlw", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:21 GMT + recorded_at: Tue, 23 Apr 2024 11:20:00 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8PKuuB1fWySn1OZkfwQc/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOGKuuB1fWySn0s6S7d1V/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_s14CejPPZfzuMk","request_duration_ms":509}}' + - '{"last_request_metrics":{"request_id":"req_vFWYulKIEYjdV7","request_duration_ms":496}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:22 GMT + - Tue, 23 Apr 2024 11:20:01 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - eab99991-a8d9-4da4-862a-53dba0b7e794 + - f2ba89d6-ebc3-40f2-befc-9b678db6064a Original-Request: - - req_0ok5x8RVmzx0fI + - req_F50bsJAfpjP1no Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_0ok5x8RVmzx0fI + - req_F50bsJAfpjP1no Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8PKuuB1fWySn1OZkfwQc", + "id": "pi_3P8hOGKuuB1fWySn0s6S7d1V", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393561, + "created": 1713871200, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8PKuuB1fWySn1mhyBhEE", + "latest_charge": "ch_3P8hOGKuuB1fWySn0ijMLscI", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8PKuuB1fWySnIah9Di2G", + "payment_method": "pm_1P8hOFKuuB1fWySn1mu7MDlw", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,5 +398,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:22 GMT + recorded_at: Tue, 23 Apr 2024 11:20:01 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/captures_the_payment.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/captures_the_payment.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/captures_the_payment.yml index 04091ae801..0fa5dc5ff2 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_Jro1T0jxbpxK3y","request_duration_ms":1021}}' + - '{"last_request_metrics":{"request_id":"req_hUelEOGt0XpqHS","request_duration_ms":1002}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:03 GMT + - Tue, 23 Apr 2024 11:19:43 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - fddb89f6-f813-470a-9e0a-0f81b7f597c9 + - d040ffac-52c8-4b68-b2c0-35bde2a0b790 Original-Request: - - req_DSWHOaVc1vEG2s + - req_mrcp2OjDSEhD4U Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_DSWHOaVc1vEG2s + - req_mrcp2OjDSEhD4U Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h87KuuB1fWySn9X4uRzJb", + "id": "pm_1P8hNzKuuB1fWySn7MxPo4mD", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393543, + "created": 1713871183, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:39:03 GMT + recorded_at: Tue, 23 Apr 2024 11:19:43 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h87KuuB1fWySn9X4uRzJb&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hNzKuuB1fWySn7MxPo4mD&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_DSWHOaVc1vEG2s","request_duration_ms":568}}' + - '{"last_request_metrics":{"request_id":"req_mrcp2OjDSEhD4U","request_duration_ms":434}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:04 GMT + - Tue, 23 Apr 2024 11:19:44 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - fb05d59c-5b57-4ff2-9698-8b86e8804653 + - e2f3f42f-7402-44e0-b802-f67cbee7fdd6 Original-Request: - - req_j8c27KKn1Qvu5O + - req_pJSWbZv3aRPI2J Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_j8c27KKn1Qvu5O + - req_pJSWbZv3aRPI2J Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h87KuuB1fWySn2axL111t", + "id": "pi_3P8hNzKuuB1fWySn1GYHjyQr", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393543, + "created": 1713871183, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h87KuuB1fWySn9X4uRzJb", + "payment_method": "pm_1P8hNzKuuB1fWySn7MxPo4mD", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:04 GMT + recorded_at: Tue, 23 Apr 2024 11:19:44 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h87KuuB1fWySn2axL111t/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNzKuuB1fWySn1GYHjyQr/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_j8c27KKn1Qvu5O","request_duration_ms":509}}' + - '{"last_request_metrics":{"request_id":"req_pJSWbZv3aRPI2J","request_duration_ms":523}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:05 GMT + - Tue, 23 Apr 2024 11:19:45 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 6de1b6ae-ab05-4390-9a15-b24623b2d1ab + - bba37f04-e7a0-4225-b165-91416ca762c9 Original-Request: - - req_qoa8w5ai6YeE1N + - req_r0DDvG3XCitRVS Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_qoa8w5ai6YeE1N + - req_r0DDvG3XCitRVS Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h87KuuB1fWySn2axL111t", + "id": "pi_3P8hNzKuuB1fWySn1GYHjyQr", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393543, + "created": 1713871183, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h87KuuB1fWySn2262lqw1", + "latest_charge": "ch_3P8hNzKuuB1fWySn1PWScwqp", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h87KuuB1fWySn9X4uRzJb", + "payment_method": "pm_1P8hNzKuuB1fWySn7MxPo4mD", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,10 +398,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:05 GMT + recorded_at: Tue, 23 Apr 2024 11:19:45 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h87KuuB1fWySn2axL111t + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNzKuuB1fWySn1GYHjyQr body: encoding: US-ASCII string: '' @@ -413,7 +413,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_qoa8w5ai6YeE1N","request_duration_ms":1021}}' + - '{"last_request_metrics":{"request_id":"req_r0DDvG3XCitRVS","request_duration_ms":912}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -430,7 +430,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:05 GMT + - Tue, 23 Apr 2024 11:19:45 GMT Content-Type: - application/json Content-Length: @@ -462,7 +462,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_qNYhyui7rxxXIa + - req_qChjEMQoRLH3qD Stripe-Version: - '2024-04-10' Vary: @@ -475,7 +475,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h87KuuB1fWySn2axL111t", + "id": "pi_3P8hNzKuuB1fWySn1GYHjyQr", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -491,18 +491,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393543, + "created": 1713871183, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h87KuuB1fWySn2262lqw1", + "latest_charge": "ch_3P8hNzKuuB1fWySn1PWScwqp", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h87KuuB1fWySn9X4uRzJb", + "payment_method": "pm_1P8hNzKuuB1fWySn7MxPo4mD", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -527,10 +527,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:05 GMT + recorded_at: Tue, 23 Apr 2024 11:19:45 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h87KuuB1fWySn2axL111t/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNzKuuB1fWySn1GYHjyQr/capture body: encoding: US-ASCII string: '' @@ -542,7 +542,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_qNYhyui7rxxXIa","request_duration_ms":407}}' + - '{"last_request_metrics":{"request_id":"req_qChjEMQoRLH3qD","request_duration_ms":413}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -559,7 +559,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:06 GMT + - Tue, 23 Apr 2024 11:19:46 GMT Content-Type: - application/json Content-Length: @@ -587,15 +587,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 9d88bb19-5593-4165-ab78-67d0c09ab47a + - 9fa89161-a992-4291-8b79-d402734179e6 Original-Request: - - req_RqO941hfsyaP41 + - req_mV2mn21SBOfoGe Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_RqO941hfsyaP41 + - req_mV2mn21SBOfoGe Stripe-Should-Retry: - 'false' Stripe-Version: @@ -610,7 +610,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h87KuuB1fWySn2axL111t", + "id": "pi_3P8hNzKuuB1fWySn1GYHjyQr", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -626,18 +626,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393543, + "created": 1713871183, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h87KuuB1fWySn2262lqw1", + "latest_charge": "ch_3P8hNzKuuB1fWySn1PWScwqp", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h87KuuB1fWySn9X4uRzJb", + "payment_method": "pm_1P8hNzKuuB1fWySn7MxPo4mD", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -662,10 +662,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:06 GMT + recorded_at: Tue, 23 Apr 2024 11:19:46 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h87KuuB1fWySn2axL111t + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNzKuuB1fWySn1GYHjyQr body: encoding: US-ASCII string: '' @@ -677,7 +677,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_RqO941hfsyaP41","request_duration_ms":1021}}' + - '{"last_request_metrics":{"request_id":"req_mV2mn21SBOfoGe","request_duration_ms":974}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -694,7 +694,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:07 GMT + - Tue, 23 Apr 2024 11:19:46 GMT Content-Type: - application/json Content-Length: @@ -726,7 +726,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_Ig3AJuIzfGoNOE + - req_RgFOb6snLO0WMi Stripe-Version: - '2024-04-10' Vary: @@ -739,7 +739,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h87KuuB1fWySn2axL111t", + "id": "pi_3P8hNzKuuB1fWySn1GYHjyQr", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -755,18 +755,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393543, + "created": 1713871183, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h87KuuB1fWySn2262lqw1", + "latest_charge": "ch_3P8hNzKuuB1fWySn1PWScwqp", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h87KuuB1fWySn9X4uRzJb", + "payment_method": "pm_1P8hNzKuuB1fWySn7MxPo4mD", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -791,5 +791,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:07 GMT + recorded_at: Tue, 23 Apr 2024 11:19:46 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/returns_payment_intent_id_and_does_not_raise.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/returns_payment_intent_id_and_does_not_raise.yml index b3ec3daf51..9063ae098a 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_lW3Bslok4Lawnx","request_duration_ms":0}}' + - '{"last_request_metrics":{"request_id":"req_LKa5sZbf9NNCJ0","request_duration_ms":8}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:01 GMT + - Tue, 23 Apr 2024 11:19:41 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - e67d2503-043f-45aa-bc19-c5cbf2448460 + - b71c72c1-0192-47f2-9212-489aba6fd1af Original-Request: - - req_1C24OBfM43wStd + - req_mLo9zfWfizkzUY Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_1C24OBfM43wStd + - req_mLo9zfWfizkzUY Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h85KuuB1fWySnyP9ccuXz", + "id": "pm_1P8hNxKuuB1fWySnfmO4yubj", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393541, + "created": 1713871181, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:39:01 GMT + recorded_at: Tue, 23 Apr 2024 11:19:41 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h85KuuB1fWySnyP9ccuXz&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hNxKuuB1fWySnfmO4yubj&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_1C24OBfM43wStd","request_duration_ms":724}}' + - '{"last_request_metrics":{"request_id":"req_mLo9zfWfizkzUY","request_duration_ms":533}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:01 GMT + - Tue, 23 Apr 2024 11:19:41 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 1750454d-cbef-4b4b-9948-a0a8d667c377 + - f3c1bb3f-1522-4527-8b5a-93da30ba2cda Original-Request: - - req_K1co9pzQLmxWV0 + - req_sF5Wv9QV3DwmcO Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_K1co9pzQLmxWV0 + - req_sF5Wv9QV3DwmcO Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h85KuuB1fWySn0Vn41J29", + "id": "pi_3P8hNxKuuB1fWySn01XI65KY", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393541, + "created": 1713871181, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h85KuuB1fWySnyP9ccuXz", + "payment_method": "pm_1P8hNxKuuB1fWySnfmO4yubj", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:01 GMT + recorded_at: Tue, 23 Apr 2024 11:19:42 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h85KuuB1fWySn0Vn41J29/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNxKuuB1fWySn01XI65KY/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_K1co9pzQLmxWV0","request_duration_ms":509}}' + - '{"last_request_metrics":{"request_id":"req_sF5Wv9QV3DwmcO","request_duration_ms":399}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:02 GMT + - Tue, 23 Apr 2024 11:19:42 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 69edc941-3f42-413c-b67b-34babe4bef61 + - 36247346-4c20-434b-bf06-63367b77b954 Original-Request: - - req_Jro1T0jxbpxK3y + - req_hUelEOGt0XpqHS Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_Jro1T0jxbpxK3y + - req_hUelEOGt0XpqHS Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h85KuuB1fWySn0Vn41J29", + "id": "pi_3P8hNxKuuB1fWySn01XI65KY", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393541, + "created": 1713871181, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h85KuuB1fWySn07C9hnvW", + "latest_charge": "ch_3P8hNxKuuB1fWySn0MW5J9bO", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h85KuuB1fWySnyP9ccuXz", + "payment_method": "pm_1P8hNxKuuB1fWySnfmO4yubj", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,5 +398,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:02 GMT + recorded_at: Tue, 23 Apr 2024 11:19:43 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/captures_the_payment.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/captures_the_payment.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/captures_the_payment.yml index 8d8991e463..1d72365cb6 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_wY4B9jGNDMtMfn","request_duration_ms":1025}}' + - '{"last_request_metrics":{"request_id":"req_fAlf1ANzZpDMNt","request_duration_ms":954}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:10 GMT + - Tue, 23 Apr 2024 11:19:50 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 2241cd18-8e05-445c-974e-8415a457fa84 + - ac9184bb-b326-4149-be1a-182155ad7b46 Original-Request: - - req_4IP4EqUc5hGbSe + - req_5tYNRKSrMEPncv Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_4IP4EqUc5hGbSe + - req_5tYNRKSrMEPncv Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h8EKuuB1fWySnyWld9oNi", + "id": "pm_1P8hO5KuuB1fWySnqHXCiMaz", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393550, + "created": 1713871189, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:39:10 GMT + recorded_at: Tue, 23 Apr 2024 11:19:50 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h8EKuuB1fWySnyWld9oNi&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hO5KuuB1fWySnqHXCiMaz&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_4IP4EqUc5hGbSe","request_duration_ms":475}}' + - '{"last_request_metrics":{"request_id":"req_5tYNRKSrMEPncv","request_duration_ms":421}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:11 GMT + - Tue, 23 Apr 2024 11:19:50 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 4f2f7788-7139-4924-b357-4daa3a479fa8 + - 3ee07a73-455d-4ad7-a528-350f2e02aeaa Original-Request: - - req_pv5d4X4q5cn45x + - req_WSjjJfvrG3kK4c Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_pv5d4X4q5cn45x + - req_WSjjJfvrG3kK4c Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8EKuuB1fWySn2pZzJXzz", + "id": "pi_3P8hO6KuuB1fWySn1IwrPXzP", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393550, + "created": 1713871190, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8EKuuB1fWySnyWld9oNi", + "payment_method": "pm_1P8hO5KuuB1fWySnqHXCiMaz", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:11 GMT + recorded_at: Tue, 23 Apr 2024 11:19:50 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8EKuuB1fWySn2pZzJXzz/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hO6KuuB1fWySn1IwrPXzP/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_pv5d4X4q5cn45x","request_duration_ms":578}}' + - '{"last_request_metrics":{"request_id":"req_WSjjJfvrG3kK4c","request_duration_ms":423}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:12 GMT + - Tue, 23 Apr 2024 11:19:51 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - fee95263-7a25-4762-8fe4-86e1a87bbfe9 + - d02cccc9-34d6-4c71-a4a6-b0bd477f1ba7 Original-Request: - - req_YP4sNK7buFgJiP + - req_MO4YL2nMwG7MXK Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_YP4sNK7buFgJiP + - req_MO4YL2nMwG7MXK Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8EKuuB1fWySn2pZzJXzz", + "id": "pi_3P8hO6KuuB1fWySn1IwrPXzP", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393550, + "created": 1713871190, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8EKuuB1fWySn24dbBR1i", + "latest_charge": "ch_3P8hO6KuuB1fWySn1ig8dB77", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8EKuuB1fWySnyWld9oNi", + "payment_method": "pm_1P8hO5KuuB1fWySnqHXCiMaz", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,10 +398,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:12 GMT + recorded_at: Tue, 23 Apr 2024 11:19:51 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8EKuuB1fWySn2pZzJXzz + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hO6KuuB1fWySn1IwrPXzP body: encoding: US-ASCII string: '' @@ -413,7 +413,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_YP4sNK7buFgJiP","request_duration_ms":1226}}' + - '{"last_request_metrics":{"request_id":"req_MO4YL2nMwG7MXK","request_duration_ms":919}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -430,7 +430,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:12 GMT + - Tue, 23 Apr 2024 11:19:51 GMT Content-Type: - application/json Content-Length: @@ -462,7 +462,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_tM97ZW0ucJ8jxO + - req_g7XHae1FaSx5Ba Stripe-Version: - '2024-04-10' Vary: @@ -475,7 +475,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8EKuuB1fWySn2pZzJXzz", + "id": "pi_3P8hO6KuuB1fWySn1IwrPXzP", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -491,18 +491,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393550, + "created": 1713871190, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8EKuuB1fWySn24dbBR1i", + "latest_charge": "ch_3P8hO6KuuB1fWySn1ig8dB77", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8EKuuB1fWySnyWld9oNi", + "payment_method": "pm_1P8hO5KuuB1fWySnqHXCiMaz", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -527,10 +527,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:12 GMT + recorded_at: Tue, 23 Apr 2024 11:19:51 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8EKuuB1fWySn2pZzJXzz/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hO6KuuB1fWySn1IwrPXzP/capture body: encoding: US-ASCII string: '' @@ -542,7 +542,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_tM97ZW0ucJ8jxO","request_duration_ms":407}}' + - '{"last_request_metrics":{"request_id":"req_g7XHae1FaSx5Ba","request_duration_ms":407}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -559,7 +559,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:14 GMT + - Tue, 23 Apr 2024 11:19:52 GMT Content-Type: - application/json Content-Length: @@ -587,15 +587,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - a04cd255-ba11-4624-a52a-555c3b4fc020 + - 0c4e5c8b-a2b5-47ba-836b-ed85e2cf82a7 Original-Request: - - req_Sy7n2RgT7nbSAm + - req_cCJKr1t50pPyIF Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_Sy7n2RgT7nbSAm + - req_cCJKr1t50pPyIF Stripe-Should-Retry: - 'false' Stripe-Version: @@ -610,7 +610,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8EKuuB1fWySn2pZzJXzz", + "id": "pi_3P8hO6KuuB1fWySn1IwrPXzP", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -626,18 +626,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393550, + "created": 1713871190, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8EKuuB1fWySn24dbBR1i", + "latest_charge": "ch_3P8hO6KuuB1fWySn1ig8dB77", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8EKuuB1fWySnyWld9oNi", + "payment_method": "pm_1P8hO5KuuB1fWySnqHXCiMaz", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -662,10 +662,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:14 GMT + recorded_at: Tue, 23 Apr 2024 11:19:53 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8EKuuB1fWySn2pZzJXzz + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hO6KuuB1fWySn1IwrPXzP body: encoding: US-ASCII string: '' @@ -677,7 +677,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_Sy7n2RgT7nbSAm","request_duration_ms":1168}}' + - '{"last_request_metrics":{"request_id":"req_cCJKr1t50pPyIF","request_duration_ms":1224}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -694,7 +694,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:14 GMT + - Tue, 23 Apr 2024 11:19:53 GMT Content-Type: - application/json Content-Length: @@ -726,7 +726,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_51gEEe58VXMvAb + - req_QpAFzYIN9Npz9E Stripe-Version: - '2024-04-10' Vary: @@ -739,7 +739,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8EKuuB1fWySn2pZzJXzz", + "id": "pi_3P8hO6KuuB1fWySn1IwrPXzP", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -755,18 +755,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393550, + "created": 1713871190, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8EKuuB1fWySn24dbBR1i", + "latest_charge": "ch_3P8hO6KuuB1fWySn1ig8dB77", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8EKuuB1fWySnyWld9oNi", + "payment_method": "pm_1P8hO5KuuB1fWySnqHXCiMaz", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -791,5 +791,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:14 GMT + recorded_at: Tue, 23 Apr 2024 11:19:53 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/returns_payment_intent_id_and_does_not_raise.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/returns_payment_intent_id_and_does_not_raise.yml index 19a441486e..7ec3b2a5e7 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_Ig3AJuIzfGoNOE","request_duration_ms":0}}' + - '{"last_request_metrics":{"request_id":"req_RgFOb6snLO0WMi","request_duration_ms":2}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:08 GMT + - Tue, 23 Apr 2024 11:19:47 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - a3d1e9b9-1762-4194-aa0f-bcfa32002963 + - 9e2abb26-3297-4c73-990f-757e2674d462 Original-Request: - - req_JiR92vYhr5TM50 + - req_tf2Rs1eihoUNxK Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_JiR92vYhr5TM50 + - req_tf2Rs1eihoUNxK Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h8CKuuB1fWySnn2XdeHK9", + "id": "pm_1P8hO3KuuB1fWySnY7BZKiff", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393548, + "created": 1713871187, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:39:08 GMT + recorded_at: Tue, 23 Apr 2024 11:19:47 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h8CKuuB1fWySnn2XdeHK9&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hO3KuuB1fWySnY7BZKiff&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_JiR92vYhr5TM50","request_duration_ms":649}}' + - '{"last_request_metrics":{"request_id":"req_tf2Rs1eihoUNxK","request_duration_ms":611}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:08 GMT + - Tue, 23 Apr 2024 11:19:48 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 9853ac76-700d-4823-90b5-5d52fc9d8635 + - 368b0e6c-ff08-450c-a7e2-c4c66563bb17 Original-Request: - - req_8jGk89mm1ODvyk + - req_3p5Z7xay6hP4RH Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_8jGk89mm1ODvyk + - req_3p5Z7xay6hP4RH Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8CKuuB1fWySn10MMn2hm", + "id": "pi_3P8hO3KuuB1fWySn1HOnd9p1", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393548, + "created": 1713871187, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8CKuuB1fWySnn2XdeHK9", + "payment_method": "pm_1P8hO3KuuB1fWySnY7BZKiff", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:09 GMT + recorded_at: Tue, 23 Apr 2024 11:19:48 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8CKuuB1fWySn10MMn2hm/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hO3KuuB1fWySn1HOnd9p1/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_8jGk89mm1ODvyk","request_duration_ms":511}}' + - '{"last_request_metrics":{"request_id":"req_3p5Z7xay6hP4RH","request_duration_ms":406}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:10 GMT + - Tue, 23 Apr 2024 11:19:49 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 6a66637e-54e0-4fc5-ac45-3720f80d9700 + - 5e3cd5fe-4bc1-478c-ad1b-24eb5f4be301 Original-Request: - - req_wY4B9jGNDMtMfn + - req_fAlf1ANzZpDMNt Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_wY4B9jGNDMtMfn + - req_fAlf1ANzZpDMNt Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8CKuuB1fWySn10MMn2hm", + "id": "pi_3P8hO3KuuB1fWySn1HOnd9p1", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393548, + "created": 1713871187, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8CKuuB1fWySn129qcNTE", + "latest_charge": "ch_3P8hO3KuuB1fWySn1899AcR4", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8CKuuB1fWySnn2XdeHK9", + "payment_method": "pm_1P8hO3KuuB1fWySnY7BZKiff", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,5 +398,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:10 GMT + recorded_at: Tue, 23 Apr 2024 11:19:49 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/captures_the_payment.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/captures_the_payment.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/captures_the_payment.yml index 2796157516..885412ee9f 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_XU3WFVYNTliEXC","request_duration_ms":1021}}' + - '{"last_request_metrics":{"request_id":"req_kl1l8tZ8m0kbDf","request_duration_ms":1002}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:35 GMT + - Tue, 23 Apr 2024 11:20:13 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 357da29a-e2b7-43cc-bd9e-161b9d520bdc + - a40dc133-7ca3-4b09-8e6f-e8c61d370584 Original-Request: - - req_7UNFeEXr46vI6L + - req_mUyu5seUEEfMGE Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_7UNFeEXr46vI6L + - req_mUyu5seUEEfMGE Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h8dKuuB1fWySnhCOEVBGj", + "id": "pm_1P8hOTKuuB1fWySnkItqUgEU", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393575, + "created": 1713871213, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:39:35 GMT + recorded_at: Tue, 23 Apr 2024 11:20:14 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h8dKuuB1fWySnhCOEVBGj&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hOTKuuB1fWySnkItqUgEU&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_7UNFeEXr46vI6L","request_duration_ms":548}}' + - '{"last_request_metrics":{"request_id":"req_mUyu5seUEEfMGE","request_duration_ms":455}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:36 GMT + - Tue, 23 Apr 2024 11:20:14 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 4bdc362a-568f-46e0-8bf5-ead8998c4194 + - 1cb2b91a-4dc4-4046-93fa-8c875120ee62 Original-Request: - - req_rRa1jvM4JlQWMg + - req_axYjMwHkPhMAM7 Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_rRa1jvM4JlQWMg + - req_axYjMwHkPhMAM7 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8eKuuB1fWySn1b9CxAKe", + "id": "pi_3P8hOUKuuB1fWySn0OCzn8IF", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393576, + "created": 1713871214, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8dKuuB1fWySnhCOEVBGj", + "payment_method": "pm_1P8hOTKuuB1fWySnkItqUgEU", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:36 GMT + recorded_at: Tue, 23 Apr 2024 11:20:14 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8eKuuB1fWySn1b9CxAKe/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOUKuuB1fWySn0OCzn8IF/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_rRa1jvM4JlQWMg","request_duration_ms":510}}' + - '{"last_request_metrics":{"request_id":"req_axYjMwHkPhMAM7","request_duration_ms":388}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:37 GMT + - Tue, 23 Apr 2024 11:20:15 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - a9d0ea38-5bed-4c67-a252-966681874216 + - ac7c0a58-37d5-425c-8b04-b043f2855864 Original-Request: - - req_ENWSMHqZcGMWpK + - req_TuBek7AQPiM0nt Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_ENWSMHqZcGMWpK + - req_TuBek7AQPiM0nt Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8eKuuB1fWySn1b9CxAKe", + "id": "pi_3P8hOUKuuB1fWySn0OCzn8IF", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393576, + "created": 1713871214, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8eKuuB1fWySn1YNttyDS", + "latest_charge": "ch_3P8hOUKuuB1fWySn0xp8MWNk", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8dKuuB1fWySnhCOEVBGj", + "payment_method": "pm_1P8hOTKuuB1fWySnkItqUgEU", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,10 +398,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:37 GMT + recorded_at: Tue, 23 Apr 2024 11:20:15 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8eKuuB1fWySn1b9CxAKe + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOUKuuB1fWySn0OCzn8IF body: encoding: US-ASCII string: '' @@ -413,7 +413,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_ENWSMHqZcGMWpK","request_duration_ms":1021}}' + - '{"last_request_metrics":{"request_id":"req_TuBek7AQPiM0nt","request_duration_ms":976}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -430,7 +430,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:37 GMT + - Tue, 23 Apr 2024 11:20:15 GMT Content-Type: - application/json Content-Length: @@ -462,7 +462,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_gZ7FYVaBhGNqpm + - req_kdelbdfbggTPaa Stripe-Version: - '2024-04-10' Vary: @@ -475,7 +475,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8eKuuB1fWySn1b9CxAKe", + "id": "pi_3P8hOUKuuB1fWySn0OCzn8IF", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -491,18 +491,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393576, + "created": 1713871214, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8eKuuB1fWySn1YNttyDS", + "latest_charge": "ch_3P8hOUKuuB1fWySn0xp8MWNk", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8dKuuB1fWySnhCOEVBGj", + "payment_method": "pm_1P8hOTKuuB1fWySnkItqUgEU", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -527,10 +527,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:37 GMT + recorded_at: Tue, 23 Apr 2024 11:20:15 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8eKuuB1fWySn1b9CxAKe/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOUKuuB1fWySn0OCzn8IF/capture body: encoding: US-ASCII string: '' @@ -542,7 +542,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_gZ7FYVaBhGNqpm","request_duration_ms":406}}' + - '{"last_request_metrics":{"request_id":"req_kdelbdfbggTPaa","request_duration_ms":407}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -559,7 +559,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:38 GMT + - Tue, 23 Apr 2024 11:20:16 GMT Content-Type: - application/json Content-Length: @@ -587,15 +587,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 285699b9-4dbc-4957-9c63-1e566b6cc8ee + - 0673b866-665c-491c-bc27-21aa00e8f09d Original-Request: - - req_x019kO3n2Z4x3w + - req_GpEipF4MI3yx0T Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_x019kO3n2Z4x3w + - req_GpEipF4MI3yx0T Stripe-Should-Retry: - 'false' Stripe-Version: @@ -610,7 +610,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8eKuuB1fWySn1b9CxAKe", + "id": "pi_3P8hOUKuuB1fWySn0OCzn8IF", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -626,18 +626,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393576, + "created": 1713871214, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8eKuuB1fWySn1YNttyDS", + "latest_charge": "ch_3P8hOUKuuB1fWySn0xp8MWNk", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8dKuuB1fWySnhCOEVBGj", + "payment_method": "pm_1P8hOTKuuB1fWySnkItqUgEU", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -662,10 +662,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:38 GMT + recorded_at: Tue, 23 Apr 2024 11:20:16 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8eKuuB1fWySn1b9CxAKe + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOUKuuB1fWySn0OCzn8IF body: encoding: US-ASCII string: '' @@ -677,7 +677,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_x019kO3n2Z4x3w","request_duration_ms":1021}}' + - '{"last_request_metrics":{"request_id":"req_GpEipF4MI3yx0T","request_duration_ms":1009}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -694,7 +694,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:39 GMT + - Tue, 23 Apr 2024 11:20:17 GMT Content-Type: - application/json Content-Length: @@ -726,7 +726,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_e3is6LFByX27Sh + - req_aZYwq636amcQQc Stripe-Version: - '2024-04-10' Vary: @@ -739,7 +739,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8eKuuB1fWySn1b9CxAKe", + "id": "pi_3P8hOUKuuB1fWySn0OCzn8IF", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -755,18 +755,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393576, + "created": 1713871214, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8eKuuB1fWySn1YNttyDS", + "latest_charge": "ch_3P8hOUKuuB1fWySn0xp8MWNk", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8dKuuB1fWySnhCOEVBGj", + "payment_method": "pm_1P8hOTKuuB1fWySnkItqUgEU", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -791,5 +791,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:39 GMT + recorded_at: Tue, 23 Apr 2024 11:20:17 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/returns_payment_intent_id_and_does_not_raise.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/returns_payment_intent_id_and_does_not_raise.yml index a8f2b95f22..41e3981b40 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_hfwFTTxVfnyp1F","request_duration_ms":407}}' + - '{"last_request_metrics":{"request_id":"req_JAV7p6VHbcflfL","request_duration_ms":363}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:33 GMT + - Tue, 23 Apr 2024 11:20:11 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - ec6ae87e-5372-4823-a3c1-048be735cbe9 + - 96c811e1-f032-4603-83f7-ddfe1ba57f16 Original-Request: - - req_o3NQREyRyHqUeQ + - req_gN71qbyBhbSCaV Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_o3NQREyRyHqUeQ + - req_gN71qbyBhbSCaV Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h8bKuuB1fWySnV3EVs9rr", + "id": "pm_1P8hORKuuB1fWySnpgvVFNXR", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393573, + "created": 1713871211, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:39:33 GMT + recorded_at: Tue, 23 Apr 2024 11:20:11 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h8bKuuB1fWySnV3EVs9rr&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hORKuuB1fWySnpgvVFNXR&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_o3NQREyRyHqUeQ","request_duration_ms":470}}' + - '{"last_request_metrics":{"request_id":"req_gN71qbyBhbSCaV","request_duration_ms":460}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:33 GMT + - Tue, 23 Apr 2024 11:20:12 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 7d15d187-e69f-4492-a8e7-5ab0af825e8f + - dbb3f060-b47b-40c3-9f4b-110c01f5dd82 Original-Request: - - req_5XJ8dCbnt9VCWt + - req_l0GRMW8ha1y6ZY Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_5XJ8dCbnt9VCWt + - req_l0GRMW8ha1y6ZY Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8bKuuB1fWySn2iWXlsFV", + "id": "pi_3P8hOSKuuB1fWySn0jMpjzSN", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393573, + "created": 1713871212, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8bKuuB1fWySnV3EVs9rr", + "payment_method": "pm_1P8hORKuuB1fWySnpgvVFNXR", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:34 GMT + recorded_at: Tue, 23 Apr 2024 11:20:12 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8bKuuB1fWySn2iWXlsFV/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOSKuuB1fWySn0jMpjzSN/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_5XJ8dCbnt9VCWt","request_duration_ms":510}}' + - '{"last_request_metrics":{"request_id":"req_l0GRMW8ha1y6ZY","request_duration_ms":409}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:34 GMT + - Tue, 23 Apr 2024 11:20:13 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - b3de6aaa-c28c-4574-bed6-bf885213bcc1 + - 35a65fd7-95f6-4d2b-a295-4b3a9e2c0881 Original-Request: - - req_XU3WFVYNTliEXC + - req_kl1l8tZ8m0kbDf Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_XU3WFVYNTliEXC + - req_kl1l8tZ8m0kbDf Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8bKuuB1fWySn2iWXlsFV", + "id": "pi_3P8hOSKuuB1fWySn0jMpjzSN", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393573, + "created": 1713871212, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8bKuuB1fWySn2ZYaHWqC", + "latest_charge": "ch_3P8hOSKuuB1fWySn0eEJgg3W", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8bKuuB1fWySnV3EVs9rr", + "payment_method": "pm_1P8hORKuuB1fWySnpgvVFNXR", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,5 +398,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:35 GMT + recorded_at: Tue, 23 Apr 2024 11:20:13 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/captures_the_payment.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/captures_the_payment.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/captures_the_payment.yml index f815907d41..432ee72102 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_g8fpJ3tSDgxYPQ","request_duration_ms":1020}}' + - '{"last_request_metrics":{"request_id":"req_eIInMRZ1eXZU41","request_duration_ms":1016}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:31 GMT + - Tue, 23 Apr 2024 11:19:13 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - e21b93d0-027e-44c7-98c8-ea1baa84af7f + - 5ceec80c-a100-460a-8a03-84ed8bb7f5c0 Original-Request: - - req_OzvqmGMnvaWaBl + - req_jqcXi4NJ8WV0n4 Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_OzvqmGMnvaWaBl + - req_jqcXi4NJ8WV0n4 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h7bKuuB1fWySnmKTufvU0", + "id": "pm_1P8hNVKuuB1fWySnVxlVNCjV", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393511, + "created": 1713871153, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:38:32 GMT + recorded_at: Tue, 23 Apr 2024 11:19:13 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h7bKuuB1fWySnmKTufvU0&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hNVKuuB1fWySnVxlVNCjV&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_OzvqmGMnvaWaBl","request_duration_ms":560}}' + - '{"last_request_metrics":{"request_id":"req_jqcXi4NJ8WV0n4","request_duration_ms":479}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:32 GMT + - Tue, 23 Apr 2024 11:19:13 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 4a1f364f-085d-4591-8d13-696b5b052464 + - 220209d4-9049-4517-af7c-08490432ee4d Original-Request: - - req_5I1uIn6AbfwyeA + - req_sPHq2BjlP1unjJ Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_5I1uIn6AbfwyeA + - req_sPHq2BjlP1unjJ Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7cKuuB1fWySn2TjKl4Mh", + "id": "pi_3P8hNVKuuB1fWySn1DL7rhUi", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393512, + "created": 1713871153, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7bKuuB1fWySnmKTufvU0", + "payment_method": "pm_1P8hNVKuuB1fWySnVxlVNCjV", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:32 GMT + recorded_at: Tue, 23 Apr 2024 11:19:14 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7cKuuB1fWySn2TjKl4Mh/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNVKuuB1fWySn1DL7rhUi/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_5I1uIn6AbfwyeA","request_duration_ms":508}}' + - '{"last_request_metrics":{"request_id":"req_sPHq2BjlP1unjJ","request_duration_ms":383}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:33 GMT + - Tue, 23 Apr 2024 11:19:14 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 6711bdc3-7014-4a10-92c5-4e6297b59d90 + - 71122f42-4394-4b01-8772-9969cdbed905 Original-Request: - - req_qGBXUK9Cyg5bMl + - req_QOY3UnPSJbztPn Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_qGBXUK9Cyg5bMl + - req_QOY3UnPSJbztPn Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7cKuuB1fWySn2TjKl4Mh", + "id": "pi_3P8hNVKuuB1fWySn1DL7rhUi", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393512, + "created": 1713871153, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7cKuuB1fWySn2UMZdoWi", + "latest_charge": "ch_3P8hNVKuuB1fWySn1qxnZG1M", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7bKuuB1fWySnmKTufvU0", + "payment_method": "pm_1P8hNVKuuB1fWySnVxlVNCjV", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,10 +398,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:33 GMT + recorded_at: Tue, 23 Apr 2024 11:19:15 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7cKuuB1fWySn2TjKl4Mh + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNVKuuB1fWySn1DL7rhUi body: encoding: US-ASCII string: '' @@ -413,7 +413,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_qGBXUK9Cyg5bMl","request_duration_ms":1021}}' + - '{"last_request_metrics":{"request_id":"req_QOY3UnPSJbztPn","request_duration_ms":1039}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -430,7 +430,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:33 GMT + - Tue, 23 Apr 2024 11:19:15 GMT Content-Type: - application/json Content-Length: @@ -462,7 +462,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_c0GSQTvUz0RucZ + - req_wl40jfIqsJltcH Stripe-Version: - '2024-04-10' Vary: @@ -475,7 +475,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7cKuuB1fWySn2TjKl4Mh", + "id": "pi_3P8hNVKuuB1fWySn1DL7rhUi", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -491,18 +491,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393512, + "created": 1713871153, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7cKuuB1fWySn2UMZdoWi", + "latest_charge": "ch_3P8hNVKuuB1fWySn1qxnZG1M", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7bKuuB1fWySnmKTufvU0", + "payment_method": "pm_1P8hNVKuuB1fWySnVxlVNCjV", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -527,10 +527,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:33 GMT + recorded_at: Tue, 23 Apr 2024 11:19:15 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7cKuuB1fWySn2TjKl4Mh/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNVKuuB1fWySn1DL7rhUi/capture body: encoding: US-ASCII string: '' @@ -542,7 +542,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_c0GSQTvUz0RucZ","request_duration_ms":406}}' + - '{"last_request_metrics":{"request_id":"req_wl40jfIqsJltcH","request_duration_ms":406}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -559,7 +559,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:34 GMT + - Tue, 23 Apr 2024 11:19:16 GMT Content-Type: - application/json Content-Length: @@ -587,15 +587,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 199b836c-b997-4ce4-a40d-41f209ab3e9b + - 83d55169-9ec4-41ae-8f7d-5a54fea71870 Original-Request: - - req_qxbgYtm9mjH1jt + - req_wB5IUmdP1EYXMA Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_qxbgYtm9mjH1jt + - req_wB5IUmdP1EYXMA Stripe-Should-Retry: - 'false' Stripe-Version: @@ -610,7 +610,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7cKuuB1fWySn2TjKl4Mh", + "id": "pi_3P8hNVKuuB1fWySn1DL7rhUi", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -626,18 +626,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393512, + "created": 1713871153, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7cKuuB1fWySn2UMZdoWi", + "latest_charge": "ch_3P8hNVKuuB1fWySn1qxnZG1M", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7bKuuB1fWySnmKTufvU0", + "payment_method": "pm_1P8hNVKuuB1fWySnVxlVNCjV", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -662,10 +662,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:35 GMT + recorded_at: Tue, 23 Apr 2024 11:19:16 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7cKuuB1fWySn2TjKl4Mh + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNVKuuB1fWySn1DL7rhUi body: encoding: US-ASCII string: '' @@ -677,7 +677,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_qxbgYtm9mjH1jt","request_duration_ms":1056}}' + - '{"last_request_metrics":{"request_id":"req_wB5IUmdP1EYXMA","request_duration_ms":1020}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -694,7 +694,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:35 GMT + - Tue, 23 Apr 2024 11:19:16 GMT Content-Type: - application/json Content-Length: @@ -726,7 +726,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_1TBVTn0lfprC7a + - req_SSRtzR6wWky9D6 Stripe-Version: - '2024-04-10' Vary: @@ -739,7 +739,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7cKuuB1fWySn2TjKl4Mh", + "id": "pi_3P8hNVKuuB1fWySn1DL7rhUi", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -755,18 +755,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393512, + "created": 1713871153, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7cKuuB1fWySn2UMZdoWi", + "latest_charge": "ch_3P8hNVKuuB1fWySn1qxnZG1M", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7bKuuB1fWySnmKTufvU0", + "payment_method": "pm_1P8hNVKuuB1fWySnVxlVNCjV", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -791,5 +791,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:35 GMT + recorded_at: Tue, 23 Apr 2024 11:19:16 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/returns_payment_intent_id_and_does_not_raise.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/returns_payment_intent_id_and_does_not_raise.yml index 956a3491aa..b2dbf14ea2 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_VCkHzjjHMXrfND","request_duration_ms":405}}' + - '{"last_request_metrics":{"request_id":"req_nTq52MOanuOx3G","request_duration_ms":414}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:29 GMT + - Tue, 23 Apr 2024 11:19:11 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 637171ff-19eb-48b9-8401-d23a8f9e5214 + - 7976a805-223e-4e5b-a59c-55d0a6fc3e75 Original-Request: - - req_McZwC6YjxsbAEP + - req_Ca4xWT8rQNwZH1 Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_McZwC6YjxsbAEP + - req_Ca4xWT8rQNwZH1 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h7ZKuuB1fWySnxHBASqdf", + "id": "pm_1P8hNSKuuB1fWySn4dpMW2My", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393509, + "created": 1713871151, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:38:29 GMT + recorded_at: Tue, 23 Apr 2024 11:19:11 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h7ZKuuB1fWySnxHBASqdf&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hNSKuuB1fWySn4dpMW2My&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_McZwC6YjxsbAEP","request_duration_ms":493}}' + - '{"last_request_metrics":{"request_id":"req_Ca4xWT8rQNwZH1","request_duration_ms":467}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:30 GMT + - Tue, 23 Apr 2024 11:19:11 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 5a404a67-bdd7-4648-bbf3-e6fa3647c924 + - 4acd1a5c-2904-4cef-a24c-df22988652af Original-Request: - - req_NgaDMPUptcH1lw + - req_wv6lC78dnzLGrQ Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_NgaDMPUptcH1lw + - req_wv6lC78dnzLGrQ Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7ZKuuB1fWySn0Epjo3Ys", + "id": "pi_3P8hNTKuuB1fWySn19SCwgTp", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393509, + "created": 1713871151, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7ZKuuB1fWySnxHBASqdf", + "payment_method": "pm_1P8hNSKuuB1fWySn4dpMW2My", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:30 GMT + recorded_at: Tue, 23 Apr 2024 11:19:11 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7ZKuuB1fWySn0Epjo3Ys/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNTKuuB1fWySn19SCwgTp/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_NgaDMPUptcH1lw","request_duration_ms":509}}' + - '{"last_request_metrics":{"request_id":"req_wv6lC78dnzLGrQ","request_duration_ms":412}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:31 GMT + - Tue, 23 Apr 2024 11:19:12 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - ddbf9dc3-4691-49dd-82d6-15ce020d7ac7 + - b6253b97-24c3-4f95-9d90-8448b0354929 Original-Request: - - req_g8fpJ3tSDgxYPQ + - req_eIInMRZ1eXZU41 Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_g8fpJ3tSDgxYPQ + - req_eIInMRZ1eXZU41 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7ZKuuB1fWySn0Epjo3Ys", + "id": "pi_3P8hNTKuuB1fWySn19SCwgTp", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393509, + "created": 1713871151, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7ZKuuB1fWySn09Ti3WUV", + "latest_charge": "ch_3P8hNTKuuB1fWySn1Lmu3kRA", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7ZKuuB1fWySnxHBASqdf", + "payment_method": "pm_1P8hNSKuuB1fWySn4dpMW2My", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,5 +398,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:31 GMT + recorded_at: Tue, 23 Apr 2024 11:19:12 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/captures_the_payment.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/captures_the_payment.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/captures_the_payment.yml index 90cd0b7c64..56990a5012 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_Baoct8gPfc5IXe","request_duration_ms":1124}}' + - '{"last_request_metrics":{"request_id":"req_ygkJQozQtkURDT","request_duration_ms":1018}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:38 GMT + - Tue, 23 Apr 2024 11:19:19 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 155ba9ef-7af4-4b55-a1b0-b28a42a43a4a + - cb6e26f7-2bd0-4ccf-9375-bbb5ad649a41 Original-Request: - - req_aitA9tdDrHSICN + - req_IPdDMbOxGLlNqg Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_aitA9tdDrHSICN + - req_IPdDMbOxGLlNqg Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h7iKuuB1fWySnJyTtWbWH", + "id": "pm_1P8hNbKuuB1fWySnuDwN50nq", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393518, + "created": 1713871159, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:38:38 GMT + recorded_at: Tue, 23 Apr 2024 11:19:19 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h7iKuuB1fWySnJyTtWbWH&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hNbKuuB1fWySnuDwN50nq&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_aitA9tdDrHSICN","request_duration_ms":460}}' + - '{"last_request_metrics":{"request_id":"req_IPdDMbOxGLlNqg","request_duration_ms":474}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:38 GMT + - Tue, 23 Apr 2024 11:19:20 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 5984f7d2-a8b3-4223-86db-64603fb29ca5 + - 3ec55a49-5395-43d0-bc83-7227bba04153 Original-Request: - - req_AYqcfGX1gF01Lp + - req_c9usRMhk51o6Ac Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_AYqcfGX1gF01Lp + - req_c9usRMhk51o6Ac Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7iKuuB1fWySn085HPtaw", + "id": "pi_3P8hNbKuuB1fWySn16kVbAJ6", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393518, + "created": 1713871159, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7iKuuB1fWySnJyTtWbWH", + "payment_method": "pm_1P8hNbKuuB1fWySnuDwN50nq", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:39 GMT + recorded_at: Tue, 23 Apr 2024 11:19:20 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7iKuuB1fWySn085HPtaw/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNbKuuB1fWySn16kVbAJ6/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_AYqcfGX1gF01Lp","request_duration_ms":508}}' + - '{"last_request_metrics":{"request_id":"req_c9usRMhk51o6Ac","request_duration_ms":413}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:40 GMT + - Tue, 23 Apr 2024 11:19:20 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - c4e41b64-9dbb-4b18-9126-05c223d27f1b + - 21e61612-80e3-4284-b8a5-acd4ab9d3441 Original-Request: - - req_tN8OhC5SoBlYkK + - req_DbJHhKNFUljKyc Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_tN8OhC5SoBlYkK + - req_DbJHhKNFUljKyc Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7iKuuB1fWySn085HPtaw", + "id": "pi_3P8hNbKuuB1fWySn16kVbAJ6", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393518, + "created": 1713871159, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7iKuuB1fWySn0z4PW3rG", + "latest_charge": "ch_3P8hNbKuuB1fWySn1BvV6OsL", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7iKuuB1fWySnJyTtWbWH", + "payment_method": "pm_1P8hNbKuuB1fWySnuDwN50nq", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,10 +398,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:40 GMT + recorded_at: Tue, 23 Apr 2024 11:19:21 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7iKuuB1fWySn085HPtaw + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNbKuuB1fWySn16kVbAJ6 body: encoding: US-ASCII string: '' @@ -413,7 +413,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_tN8OhC5SoBlYkK","request_duration_ms":996}}' + - '{"last_request_metrics":{"request_id":"req_DbJHhKNFUljKyc","request_duration_ms":1013}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -430,7 +430,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:40 GMT + - Tue, 23 Apr 2024 11:19:21 GMT Content-Type: - application/json Content-Length: @@ -462,7 +462,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_hYHnMmN9ZeEqzM + - req_gWXHq55AgDqueS Stripe-Version: - '2024-04-10' Vary: @@ -475,7 +475,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7iKuuB1fWySn085HPtaw", + "id": "pi_3P8hNbKuuB1fWySn16kVbAJ6", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -491,18 +491,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393518, + "created": 1713871159, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7iKuuB1fWySn0z4PW3rG", + "latest_charge": "ch_3P8hNbKuuB1fWySn1BvV6OsL", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7iKuuB1fWySnJyTtWbWH", + "payment_method": "pm_1P8hNbKuuB1fWySnuDwN50nq", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -527,10 +527,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:40 GMT + recorded_at: Tue, 23 Apr 2024 11:19:21 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7iKuuB1fWySn085HPtaw/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNbKuuB1fWySn16kVbAJ6/capture body: encoding: US-ASCII string: '' @@ -542,7 +542,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_hYHnMmN9ZeEqzM","request_duration_ms":433}}' + - '{"last_request_metrics":{"request_id":"req_gWXHq55AgDqueS","request_duration_ms":305}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -559,7 +559,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:41 GMT + - Tue, 23 Apr 2024 11:19:22 GMT Content-Type: - application/json Content-Length: @@ -587,15 +587,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - fae3960c-ce41-4337-ba82-f2c6b537376d + - e7389e27-8f99-48f2-9032-e4c8d02fe66d Original-Request: - - req_fjJzgMgYlPR4DL + - req_6CfV62JgOuhgli Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_fjJzgMgYlPR4DL + - req_6CfV62JgOuhgli Stripe-Should-Retry: - 'false' Stripe-Version: @@ -610,7 +610,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7iKuuB1fWySn085HPtaw", + "id": "pi_3P8hNbKuuB1fWySn16kVbAJ6", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -626,18 +626,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393518, + "created": 1713871159, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7iKuuB1fWySn0z4PW3rG", + "latest_charge": "ch_3P8hNbKuuB1fWySn1BvV6OsL", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7iKuuB1fWySnJyTtWbWH", + "payment_method": "pm_1P8hNbKuuB1fWySnuDwN50nq", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -662,10 +662,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:41 GMT + recorded_at: Tue, 23 Apr 2024 11:19:22 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7iKuuB1fWySn085HPtaw + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNbKuuB1fWySn16kVbAJ6 body: encoding: US-ASCII string: '' @@ -677,7 +677,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_fjJzgMgYlPR4DL","request_duration_ms":1022}}' + - '{"last_request_metrics":{"request_id":"req_6CfV62JgOuhgli","request_duration_ms":1020}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -694,7 +694,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:41 GMT + - Tue, 23 Apr 2024 11:19:22 GMT Content-Type: - application/json Content-Length: @@ -726,7 +726,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_0gpLm2PRfuTefq + - req_mRbMJOdTu3yIY8 Stripe-Version: - '2024-04-10' Vary: @@ -739,7 +739,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7iKuuB1fWySn085HPtaw", + "id": "pi_3P8hNbKuuB1fWySn16kVbAJ6", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -755,18 +755,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393518, + "created": 1713871159, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7iKuuB1fWySn0z4PW3rG", + "latest_charge": "ch_3P8hNbKuuB1fWySn1BvV6OsL", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7iKuuB1fWySnJyTtWbWH", + "payment_method": "pm_1P8hNbKuuB1fWySnuDwN50nq", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -791,5 +791,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:41 GMT + recorded_at: Tue, 23 Apr 2024 11:19:22 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/returns_payment_intent_id_and_does_not_raise.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/returns_payment_intent_id_and_does_not_raise.yml index 5f0eba6cd9..8e1542d600 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_1TBVTn0lfprC7a","request_duration_ms":372}}' + - '{"last_request_metrics":{"request_id":"req_SSRtzR6wWky9D6","request_duration_ms":304}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:35 GMT + - Tue, 23 Apr 2024 11:19:17 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 58b3dc0d-d859-4aec-ad64-81fd829057f5 + - 8b37c4cf-b4a8-43dc-ac9b-324061ceaa48 Original-Request: - - req_TVHZ0jBYHD52eU + - req_cW83qnxUvfANtm Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_TVHZ0jBYHD52eU + - req_cW83qnxUvfANtm Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h7fKuuB1fWySnznMVKuJP", + "id": "pm_1P8hNZKuuB1fWySnl5x9fTeS", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393515, + "created": 1713871157, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:38:35 GMT + recorded_at: Tue, 23 Apr 2024 11:19:17 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h7fKuuB1fWySnznMVKuJP&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hNZKuuB1fWySnl5x9fTeS&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_TVHZ0jBYHD52eU","request_duration_ms":573}}' + - '{"last_request_metrics":{"request_id":"req_cW83qnxUvfANtm","request_duration_ms":413}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:36 GMT + - Tue, 23 Apr 2024 11:19:17 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 88b2ff41-8267-4e23-976e-14bef7f4dec3 + - 24dae735-2012-459e-bade-fc441ffb277f Original-Request: - - req_9lxpOGazNVrrTb + - req_Gtx8Vh5lqpsfIB Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_9lxpOGazNVrrTb + - req_Gtx8Vh5lqpsfIB Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7gKuuB1fWySn1X1xIIbG", + "id": "pi_3P8hNZKuuB1fWySn0YrMo2ze", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393516, + "created": 1713871157, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7fKuuB1fWySnznMVKuJP", + "payment_method": "pm_1P8hNZKuuB1fWySnl5x9fTeS", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:36 GMT + recorded_at: Tue, 23 Apr 2024 11:19:17 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7gKuuB1fWySn1X1xIIbG/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNZKuuB1fWySn0YrMo2ze/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_9lxpOGazNVrrTb","request_duration_ms":815}}' + - '{"last_request_metrics":{"request_id":"req_Gtx8Vh5lqpsfIB","request_duration_ms":454}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:37 GMT + - Tue, 23 Apr 2024 11:19:18 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - a577ba88-3c2d-4ba6-8a69-812963a05746 + - c38a9c4c-a01d-4e8f-b1d8-95861b8b364a Original-Request: - - req_Baoct8gPfc5IXe + - req_ygkJQozQtkURDT Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_Baoct8gPfc5IXe + - req_ygkJQozQtkURDT Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7gKuuB1fWySn1X1xIIbG", + "id": "pi_3P8hNZKuuB1fWySn0YrMo2ze", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393516, + "created": 1713871157, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7gKuuB1fWySn1yt01OWS", + "latest_charge": "ch_3P8hNZKuuB1fWySn0gAo8fu2", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7fKuuB1fWySnznMVKuJP", + "payment_method": "pm_1P8hNZKuuB1fWySnl5x9fTeS", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,5 +398,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:37 GMT + recorded_at: Tue, 23 Apr 2024 11:19:18 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/captures_the_payment.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/captures_the_payment.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/captures_the_payment.yml index 41427c758b..52d93bbd9c 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_u0ATTx9OcSqYEk","request_duration_ms":1023}}' + - '{"last_request_metrics":{"request_id":"req_vGSuRwCcR1RyAj","request_duration_ms":1021}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:44 GMT + - Tue, 23 Apr 2024 11:19:25 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - ea370f42-3dc3-4315-af92-6232ea741f11 + - 82d1cd6f-2d19-4acd-9459-53e42b796785 Original-Request: - - req_z2IxgLmQP4XsOi + - req_v9WiVetN61i25Q Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_z2IxgLmQP4XsOi + - req_v9WiVetN61i25Q Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h7oKuuB1fWySnyFTNOWm1", + "id": "pm_1P8hNhKuuB1fWySn8sb4JhFU", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393524, + "created": 1713871165, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:38:44 GMT + recorded_at: Tue, 23 Apr 2024 11:19:25 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h7oKuuB1fWySnyFTNOWm1&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hNhKuuB1fWySn8sb4JhFU&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_z2IxgLmQP4XsOi","request_duration_ms":509}}' + - '{"last_request_metrics":{"request_id":"req_v9WiVetN61i25Q","request_duration_ms":434}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:45 GMT + - Tue, 23 Apr 2024 11:19:26 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - c43a598b-483e-40fb-9c30-350c1995da11 + - e2ac6842-4c60-4343-b7e2-b8c0da78f857 Original-Request: - - req_KaAaukm0qPOKiL + - req_j8reuQxyiungfx Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_KaAaukm0qPOKiL + - req_j8reuQxyiungfx Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7oKuuB1fWySn1is54UOr", + "id": "pi_3P8hNhKuuB1fWySn2qjDLIwr", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393524, + "created": 1713871165, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7oKuuB1fWySnyFTNOWm1", + "payment_method": "pm_1P8hNhKuuB1fWySn8sb4JhFU", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:45 GMT + recorded_at: Tue, 23 Apr 2024 11:19:26 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7oKuuB1fWySn1is54UOr/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNhKuuB1fWySn2qjDLIwr/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_KaAaukm0qPOKiL","request_duration_ms":508}}' + - '{"last_request_metrics":{"request_id":"req_j8reuQxyiungfx","request_duration_ms":508}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:46 GMT + - Tue, 23 Apr 2024 11:19:26 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 20e1d8fd-31b7-4db5-b920-727c6ec8e1a5 + - d701ad83-98d7-469d-b63d-2433a0e37d76 Original-Request: - - req_4fRJWIkacIhtYr + - req_E8zwsU76kNilMK Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_4fRJWIkacIhtYr + - req_E8zwsU76kNilMK Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7oKuuB1fWySn1is54UOr", + "id": "pi_3P8hNhKuuB1fWySn2qjDLIwr", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393524, + "created": 1713871165, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7oKuuB1fWySn1Lmj8fEo", + "latest_charge": "ch_3P8hNhKuuB1fWySn2p3hpQaM", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7oKuuB1fWySnyFTNOWm1", + "payment_method": "pm_1P8hNhKuuB1fWySn8sb4JhFU", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,10 +398,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:46 GMT + recorded_at: Tue, 23 Apr 2024 11:19:27 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7oKuuB1fWySn1is54UOr + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNhKuuB1fWySn2qjDLIwr body: encoding: US-ASCII string: '' @@ -413,7 +413,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_4fRJWIkacIhtYr","request_duration_ms":1023}}' + - '{"last_request_metrics":{"request_id":"req_E8zwsU76kNilMK","request_duration_ms":919}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -430,7 +430,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:46 GMT + - Tue, 23 Apr 2024 11:19:27 GMT Content-Type: - application/json Content-Length: @@ -462,7 +462,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_lRsRRyRRsiSjey + - req_TK5D8Co2zE26qf Stripe-Version: - '2024-04-10' Vary: @@ -475,7 +475,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7oKuuB1fWySn1is54UOr", + "id": "pi_3P8hNhKuuB1fWySn2qjDLIwr", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -491,18 +491,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393524, + "created": 1713871165, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7oKuuB1fWySn1Lmj8fEo", + "latest_charge": "ch_3P8hNhKuuB1fWySn2p3hpQaM", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7oKuuB1fWySnyFTNOWm1", + "payment_method": "pm_1P8hNhKuuB1fWySn8sb4JhFU", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -527,10 +527,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:46 GMT + recorded_at: Tue, 23 Apr 2024 11:19:27 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7oKuuB1fWySn1is54UOr/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNhKuuB1fWySn2qjDLIwr/capture body: encoding: US-ASCII string: '' @@ -542,7 +542,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_lRsRRyRRsiSjey","request_duration_ms":408}}' + - '{"last_request_metrics":{"request_id":"req_TK5D8Co2zE26qf","request_duration_ms":323}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -559,7 +559,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:47 GMT + - Tue, 23 Apr 2024 11:19:28 GMT Content-Type: - application/json Content-Length: @@ -587,15 +587,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 15695f82-de91-43c9-9f1b-3f2df3c316e3 + - 10dad9b1-2c30-48db-97a5-c36c7a03b59c Original-Request: - - req_xMpudJ6IknmEGY + - req_HXV8nXhQy2SJn4 Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_xMpudJ6IknmEGY + - req_HXV8nXhQy2SJn4 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -610,7 +610,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7oKuuB1fWySn1is54UOr", + "id": "pi_3P8hNhKuuB1fWySn2qjDLIwr", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -626,18 +626,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393524, + "created": 1713871165, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7oKuuB1fWySn1Lmj8fEo", + "latest_charge": "ch_3P8hNhKuuB1fWySn2p3hpQaM", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7oKuuB1fWySnyFTNOWm1", + "payment_method": "pm_1P8hNhKuuB1fWySn8sb4JhFU", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -662,10 +662,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:47 GMT + recorded_at: Tue, 23 Apr 2024 11:19:28 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7oKuuB1fWySn1is54UOr + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNhKuuB1fWySn2qjDLIwr body: encoding: US-ASCII string: '' @@ -677,7 +677,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_xMpudJ6IknmEGY","request_duration_ms":1125}}' + - '{"last_request_metrics":{"request_id":"req_HXV8nXhQy2SJn4","request_duration_ms":1103}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -694,7 +694,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:48 GMT + - Tue, 23 Apr 2024 11:19:28 GMT Content-Type: - application/json Content-Length: @@ -726,7 +726,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_v6DoSIIwC27Nmc + - req_wvPt0Yl7w6VCqT Stripe-Version: - '2024-04-10' Vary: @@ -739,7 +739,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7oKuuB1fWySn1is54UOr", + "id": "pi_3P8hNhKuuB1fWySn2qjDLIwr", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -755,18 +755,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393524, + "created": 1713871165, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7oKuuB1fWySn1Lmj8fEo", + "latest_charge": "ch_3P8hNhKuuB1fWySn2p3hpQaM", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7oKuuB1fWySnyFTNOWm1", + "payment_method": "pm_1P8hNhKuuB1fWySn8sb4JhFU", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -791,5 +791,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:48 GMT + recorded_at: Tue, 23 Apr 2024 11:19:28 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/returns_payment_intent_id_and_does_not_raise.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/returns_payment_intent_id_and_does_not_raise.yml index ce059551c7..17252e7ba6 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_0gpLm2PRfuTefq","request_duration_ms":408}}' + - '{"last_request_metrics":{"request_id":"req_mRbMJOdTu3yIY8","request_duration_ms":309}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:42 GMT + - Tue, 23 Apr 2024 11:19:23 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - e64e2cc4-76f2-4cd4-9918-a015bd58e3a9 + - '039a00fd-e5dd-40ad-b793-9628bd52a735' Original-Request: - - req_Ol9XydrU5YLSvA + - req_UyvUYS7xGrZret Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_Ol9XydrU5YLSvA + - req_UyvUYS7xGrZret Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h7mKuuB1fWySndBLUaRTW", + "id": "pm_1P8hNeKuuB1fWySnHp3wAfDo", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393522, + "created": 1713871163, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:38:42 GMT + recorded_at: Tue, 23 Apr 2024 11:19:23 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h7mKuuB1fWySndBLUaRTW&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hNeKuuB1fWySnHp3wAfDo&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_Ol9XydrU5YLSvA","request_duration_ms":491}}' + - '{"last_request_metrics":{"request_id":"req_UyvUYS7xGrZret","request_duration_ms":440}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:42 GMT + - Tue, 23 Apr 2024 11:19:23 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - a4e96058-ee65-4eb9-a91c-13b93abb4871 + - 481dfc12-44b8-4d0f-b2f3-ae50c65b78c6 Original-Request: - - req_za8Lt2fdNu3nL4 + - req_YGKSqZMtxwJgiA Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_za8Lt2fdNu3nL4 + - req_YGKSqZMtxwJgiA Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7mKuuB1fWySn0LrIvmS2", + "id": "pi_3P8hNfKuuB1fWySn2Yk2egJU", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393522, + "created": 1713871163, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7mKuuB1fWySndBLUaRTW", + "payment_method": "pm_1P8hNeKuuB1fWySnHp3wAfDo", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:42 GMT + recorded_at: Tue, 23 Apr 2024 11:19:23 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7mKuuB1fWySn0LrIvmS2/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNfKuuB1fWySn2Yk2egJU/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_za8Lt2fdNu3nL4","request_duration_ms":507}}' + - '{"last_request_metrics":{"request_id":"req_YGKSqZMtxwJgiA","request_duration_ms":507}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:43 GMT + - Tue, 23 Apr 2024 11:19:24 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - bf9ffa33-9c08-43b9-ac00-94b218b14498 + - e95f9c8b-1133-4b97-aa86-56c1f07da7d7 Original-Request: - - req_u0ATTx9OcSqYEk + - req_vGSuRwCcR1RyAj Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_u0ATTx9OcSqYEk + - req_vGSuRwCcR1RyAj Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7mKuuB1fWySn0LrIvmS2", + "id": "pi_3P8hNfKuuB1fWySn2Yk2egJU", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393522, + "created": 1713871163, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7mKuuB1fWySn0hGVmP6d", + "latest_charge": "ch_3P8hNfKuuB1fWySn2KRq6wRh", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7mKuuB1fWySndBLUaRTW", + "payment_method": "pm_1P8hNeKuuB1fWySnHp3wAfDo", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,5 +398,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:43 GMT + recorded_at: Tue, 23 Apr 2024 11:19:24 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/captures_the_payment.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/captures_the_payment.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/captures_the_payment.yml index e4ef2a590f..e9aa5d1a4c 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_HOGc3LwxQ8bbGA","request_duration_ms":1148}}' + - '{"last_request_metrics":{"request_id":"req_EZhonT4B1HHjbS","request_duration_ms":885}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:50 GMT + - Tue, 23 Apr 2024 11:19:31 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 1fe1438c-841f-4f5e-a299-2fabc1d46ecf + - df315c23-b165-4b1d-b420-435681f9ed8e Original-Request: - - req_1vVVBpVly5LReT + - req_fmRH5Y0cHaybeg Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_1vVVBpVly5LReT + - req_fmRH5Y0cHaybeg Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h7uKuuB1fWySnWpeF7LMi", + "id": "pm_1P8hNnKuuB1fWySnmPDg77iE", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393530, + "created": 1713871171, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:38:51 GMT + recorded_at: Tue, 23 Apr 2024 11:19:31 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h7uKuuB1fWySnWpeF7LMi&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hNnKuuB1fWySnmPDg77iE&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_1vVVBpVly5LReT","request_duration_ms":550}}' + - '{"last_request_metrics":{"request_id":"req_fmRH5Y0cHaybeg","request_duration_ms":444}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:51 GMT + - Tue, 23 Apr 2024 11:19:31 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 94e711e6-c607-4fc1-9392-21269895f6be + - 5d75f5ab-15ab-4c78-900a-68b4c33a470d Original-Request: - - req_TpAtg2osej6eim + - req_Vh4PEBHZLLpESl Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_TpAtg2osej6eim + - req_Vh4PEBHZLLpESl Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7vKuuB1fWySn18JZEKhK", + "id": "pi_3P8hNnKuuB1fWySn2FRVl7Gc", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393531, + "created": 1713871171, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7uKuuB1fWySnWpeF7LMi", + "payment_method": "pm_1P8hNnKuuB1fWySnmPDg77iE", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:51 GMT + recorded_at: Tue, 23 Apr 2024 11:19:31 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7vKuuB1fWySn18JZEKhK/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNnKuuB1fWySn2FRVl7Gc/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_TpAtg2osej6eim","request_duration_ms":508}}' + - '{"last_request_metrics":{"request_id":"req_Vh4PEBHZLLpESl","request_duration_ms":384}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:52 GMT + - Tue, 23 Apr 2024 11:19:32 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - e452b479-3f40-4c93-a412-0030ea9331a4 + - 6a9dc13d-6e93-48db-a5b3-98ff10f174c0 Original-Request: - - req_9qMGS66xdSElVa + - req_RFa6ZTWEZIs069 Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_9qMGS66xdSElVa + - req_RFa6ZTWEZIs069 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7vKuuB1fWySn18JZEKhK", + "id": "pi_3P8hNnKuuB1fWySn2FRVl7Gc", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393531, + "created": 1713871171, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7vKuuB1fWySn17xjSwFI", + "latest_charge": "ch_3P8hNnKuuB1fWySn2qm1d1OQ", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7uKuuB1fWySnWpeF7LMi", + "payment_method": "pm_1P8hNnKuuB1fWySnmPDg77iE", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,10 +398,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:52 GMT + recorded_at: Tue, 23 Apr 2024 11:19:32 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7vKuuB1fWySn18JZEKhK + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNnKuuB1fWySn2FRVl7Gc body: encoding: US-ASCII string: '' @@ -413,7 +413,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_9qMGS66xdSElVa","request_duration_ms":922}}' + - '{"last_request_metrics":{"request_id":"req_RFa6ZTWEZIs069","request_duration_ms":943}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -430,7 +430,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:52 GMT + - Tue, 23 Apr 2024 11:19:33 GMT Content-Type: - application/json Content-Length: @@ -462,7 +462,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_SiW8OzK5f1KQ8y + - req_sr4TlLw3DLOUtd Stripe-Version: - '2024-04-10' Vary: @@ -475,7 +475,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7vKuuB1fWySn18JZEKhK", + "id": "pi_3P8hNnKuuB1fWySn2FRVl7Gc", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -491,18 +491,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393531, + "created": 1713871171, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7vKuuB1fWySn17xjSwFI", + "latest_charge": "ch_3P8hNnKuuB1fWySn2qm1d1OQ", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7uKuuB1fWySnWpeF7LMi", + "payment_method": "pm_1P8hNnKuuB1fWySnmPDg77iE", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -527,10 +527,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:52 GMT + recorded_at: Tue, 23 Apr 2024 11:19:33 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7vKuuB1fWySn18JZEKhK/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNnKuuB1fWySn2FRVl7Gc/capture body: encoding: US-ASCII string: '' @@ -542,7 +542,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_SiW8OzK5f1KQ8y","request_duration_ms":407}}' + - '{"last_request_metrics":{"request_id":"req_sr4TlLw3DLOUtd","request_duration_ms":314}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -559,7 +559,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:53 GMT + - Tue, 23 Apr 2024 11:19:34 GMT Content-Type: - application/json Content-Length: @@ -587,15 +587,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 6f7efa79-439f-4d6c-9dce-28aa175753a2 + - 330ea30b-03fa-41c7-8902-e0b00cf174c4 Original-Request: - - req_inyBfL3HezoHfX + - req_XVXG040I2GPJwr Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_inyBfL3HezoHfX + - req_XVXG040I2GPJwr Stripe-Should-Retry: - 'false' Stripe-Version: @@ -610,7 +610,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7vKuuB1fWySn18JZEKhK", + "id": "pi_3P8hNnKuuB1fWySn2FRVl7Gc", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -626,18 +626,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393531, + "created": 1713871171, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7vKuuB1fWySn17xjSwFI", + "latest_charge": "ch_3P8hNnKuuB1fWySn2qm1d1OQ", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7uKuuB1fWySnWpeF7LMi", + "payment_method": "pm_1P8hNnKuuB1fWySnmPDg77iE", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -662,10 +662,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:53 GMT + recorded_at: Tue, 23 Apr 2024 11:19:34 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7vKuuB1fWySn18JZEKhK + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNnKuuB1fWySn2FRVl7Gc body: encoding: US-ASCII string: '' @@ -677,7 +677,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_inyBfL3HezoHfX","request_duration_ms":1022}}' + - '{"last_request_metrics":{"request_id":"req_XVXG040I2GPJwr","request_duration_ms":1007}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -694,7 +694,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:54 GMT + - Tue, 23 Apr 2024 11:19:34 GMT Content-Type: - application/json Content-Length: @@ -726,7 +726,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_Op5E047dEuFump + - req_azV3R41xItqtxT Stripe-Version: - '2024-04-10' Vary: @@ -739,7 +739,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7vKuuB1fWySn18JZEKhK", + "id": "pi_3P8hNnKuuB1fWySn2FRVl7Gc", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -755,18 +755,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393531, + "created": 1713871171, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7vKuuB1fWySn17xjSwFI", + "latest_charge": "ch_3P8hNnKuuB1fWySn2qm1d1OQ", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7uKuuB1fWySnWpeF7LMi", + "payment_method": "pm_1P8hNnKuuB1fWySnmPDg77iE", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -791,5 +791,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:54 GMT + recorded_at: Tue, 23 Apr 2024 11:19:34 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/returns_payment_intent_id_and_does_not_raise.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/returns_payment_intent_id_and_does_not_raise.yml index 9eecdc19bd..5f305bde57 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_v6DoSIIwC27Nmc","request_duration_ms":353}}' + - '{"last_request_metrics":{"request_id":"req_wvPt0Yl7w6VCqT","request_duration_ms":296}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:48 GMT + - Tue, 23 Apr 2024 11:19:29 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 9c7f88f2-e81c-413f-bce1-341de7cf7292 + - 3a49e803-5cf9-48e2-ade1-97c65e3e422a Original-Request: - - req_UdvCKCkgZIuBiZ + - req_N9tbjVepiS2OV1 Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_UdvCKCkgZIuBiZ + - req_N9tbjVepiS2OV1 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h7sKuuB1fWySnWFyGsEIQ", + "id": "pm_1P8hNkKuuB1fWySnFdjTt6h1", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393528, + "created": 1713871169, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:38:48 GMT + recorded_at: Tue, 23 Apr 2024 11:19:29 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h7sKuuB1fWySnWFyGsEIQ&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hNkKuuB1fWySnFdjTt6h1&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_UdvCKCkgZIuBiZ","request_duration_ms":551}}' + - '{"last_request_metrics":{"request_id":"req_N9tbjVepiS2OV1","request_duration_ms":476}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:49 GMT + - Tue, 23 Apr 2024 11:19:29 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 1fcf81b3-f980-4602-9b72-85370ab4d77a + - 4563e951-b286-4fc8-89cd-4d84d7ec04de Original-Request: - - req_vtUgVf43aiVJ8f + - req_7BkHqxN6YUu4fr Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_vtUgVf43aiVJ8f + - req_7BkHqxN6YUu4fr Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7sKuuB1fWySn0BTYrhF6", + "id": "pi_3P8hNlKuuB1fWySn0ZdGMla3", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393528, + "created": 1713871169, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7sKuuB1fWySnWFyGsEIQ", + "payment_method": "pm_1P8hNkKuuB1fWySnFdjTt6h1", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:49 GMT + recorded_at: Tue, 23 Apr 2024 11:19:29 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7sKuuB1fWySn0BTYrhF6/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNlKuuB1fWySn0ZdGMla3/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_vtUgVf43aiVJ8f","request_duration_ms":512}}' + - '{"last_request_metrics":{"request_id":"req_7BkHqxN6YUu4fr","request_duration_ms":406}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:50 GMT + - Tue, 23 Apr 2024 11:19:30 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - b8ea7e88-797c-4cdb-aa85-3b48de057a7e + - cdd14215-b031-4a61-bc4b-92da40a0841c Original-Request: - - req_HOGc3LwxQ8bbGA + - req_EZhonT4B1HHjbS Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_HOGc3LwxQ8bbGA + - req_EZhonT4B1HHjbS Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7sKuuB1fWySn0BTYrhF6", + "id": "pi_3P8hNlKuuB1fWySn0ZdGMla3", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393528, + "created": 1713871169, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7sKuuB1fWySn0vJDrxH0", + "latest_charge": "ch_3P8hNlKuuB1fWySn0ITByrSy", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7sKuuB1fWySnWFyGsEIQ", + "payment_method": "pm_1P8hNkKuuB1fWySnFdjTt6h1", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,5 +398,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:50 GMT + recorded_at: Tue, 23 Apr 2024 11:19:30 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/captures_the_payment.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/captures_the_payment.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/captures_the_payment.yml index dbb80c2b06..582d364258 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_JvAWETBQMvlvuD","request_duration_ms":908}}' + - '{"last_request_metrics":{"request_id":"req_bP4NkTLpFzZbuW","request_duration_ms":1027}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:41 GMT + - Tue, 23 Apr 2024 11:20:19 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - a1bbde01-ca0d-4c26-93cd-1e4f1954f573 + - bb3b4158-6c85-4c9b-a25f-f8748203051f Original-Request: - - req_WbHGXVY9PjhJVD + - req_EVB9gawZ0NO0cM Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_WbHGXVY9PjhJVD + - req_EVB9gawZ0NO0cM Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h8jKuuB1fWySn9AdWGLTZ", + "id": "pm_1P8hOZKuuB1fWySncTeaMaWz", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393581, + "created": 1713871219, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:39:41 GMT + recorded_at: Tue, 23 Apr 2024 11:20:20 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h8jKuuB1fWySn9AdWGLTZ&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hOZKuuB1fWySncTeaMaWz&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_WbHGXVY9PjhJVD","request_duration_ms":471}}' + - '{"last_request_metrics":{"request_id":"req_EVB9gawZ0NO0cM","request_duration_ms":418}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:42 GMT + - Tue, 23 Apr 2024 11:20:20 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 944e09dd-006c-422b-b5bb-eb6c77469cdd + - 0a313119-e25a-41cb-bbd3-b93289bb6178 Original-Request: - - req_kSQNmUwiVuPkG4 + - req_SJ5xytVAZIFOgh Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_kSQNmUwiVuPkG4 + - req_SJ5xytVAZIFOgh Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8jKuuB1fWySn250YdCNa", + "id": "pi_3P8hOaKuuB1fWySn1Yu4g8ob", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393581, + "created": 1713871220, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8jKuuB1fWySn9AdWGLTZ", + "payment_method": "pm_1P8hOZKuuB1fWySncTeaMaWz", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:42 GMT + recorded_at: Tue, 23 Apr 2024 11:20:20 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8jKuuB1fWySn250YdCNa/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOaKuuB1fWySn1Yu4g8ob/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_kSQNmUwiVuPkG4","request_duration_ms":512}}' + - '{"last_request_metrics":{"request_id":"req_SJ5xytVAZIFOgh","request_duration_ms":425}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:43 GMT + - Tue, 23 Apr 2024 11:20:21 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 7bef0dec-19ab-4366-9d74-eb26636d7431 + - 5ad3574a-b45c-429c-9de6-e7de7f9481c1 Original-Request: - - req_GIYOLCt5eqstCR + - req_rozwNpdZfaAWUK Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_GIYOLCt5eqstCR + - req_rozwNpdZfaAWUK Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8jKuuB1fWySn250YdCNa", + "id": "pi_3P8hOaKuuB1fWySn1Yu4g8ob", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393581, + "created": 1713871220, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8jKuuB1fWySn2qTroa6X", + "latest_charge": "ch_3P8hOaKuuB1fWySn1YRaPZ42", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8jKuuB1fWySn9AdWGLTZ", + "payment_method": "pm_1P8hOZKuuB1fWySncTeaMaWz", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,10 +398,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:43 GMT + recorded_at: Tue, 23 Apr 2024 11:20:21 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8jKuuB1fWySn250YdCNa + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOaKuuB1fWySn1Yu4g8ob body: encoding: US-ASCII string: '' @@ -413,7 +413,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_GIYOLCt5eqstCR","request_duration_ms":918}}' + - '{"last_request_metrics":{"request_id":"req_rozwNpdZfaAWUK","request_duration_ms":1019}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -430,7 +430,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:43 GMT + - Tue, 23 Apr 2024 11:20:21 GMT Content-Type: - application/json Content-Length: @@ -462,7 +462,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_R7dwVAyi9FFDep + - req_RuVKIBS7HioGF9 Stripe-Version: - '2024-04-10' Vary: @@ -475,7 +475,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8jKuuB1fWySn250YdCNa", + "id": "pi_3P8hOaKuuB1fWySn1Yu4g8ob", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -491,18 +491,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393581, + "created": 1713871220, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8jKuuB1fWySn2qTroa6X", + "latest_charge": "ch_3P8hOaKuuB1fWySn1YRaPZ42", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8jKuuB1fWySn9AdWGLTZ", + "payment_method": "pm_1P8hOZKuuB1fWySncTeaMaWz", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -527,10 +527,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:43 GMT + recorded_at: Tue, 23 Apr 2024 11:20:21 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8jKuuB1fWySn250YdCNa/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOaKuuB1fWySn1Yu4g8ob/capture body: encoding: US-ASCII string: '' @@ -542,7 +542,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_R7dwVAyi9FFDep","request_duration_ms":406}}' + - '{"last_request_metrics":{"request_id":"req_RuVKIBS7HioGF9","request_duration_ms":324}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -559,7 +559,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:44 GMT + - Tue, 23 Apr 2024 11:20:22 GMT Content-Type: - application/json Content-Length: @@ -587,15 +587,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 2b32b0fd-f726-4792-9a3c-55a372de1cf8 + - 4bb9f1bc-2642-4e97-afcf-91bc470e4bba Original-Request: - - req_y6Fs9bKxfUuhaR + - req_IofHT9JafBnq1r Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_y6Fs9bKxfUuhaR + - req_IofHT9JafBnq1r Stripe-Should-Retry: - 'false' Stripe-Version: @@ -610,7 +610,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8jKuuB1fWySn250YdCNa", + "id": "pi_3P8hOaKuuB1fWySn1Yu4g8ob", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -626,18 +626,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393581, + "created": 1713871220, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8jKuuB1fWySn2qTroa6X", + "latest_charge": "ch_3P8hOaKuuB1fWySn1YRaPZ42", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8jKuuB1fWySn9AdWGLTZ", + "payment_method": "pm_1P8hOZKuuB1fWySncTeaMaWz", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -662,10 +662,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:44 GMT + recorded_at: Tue, 23 Apr 2024 11:20:22 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8jKuuB1fWySn250YdCNa + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOaKuuB1fWySn1Yu4g8ob body: encoding: US-ASCII string: '' @@ -677,7 +677,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_y6Fs9bKxfUuhaR","request_duration_ms":1127}}' + - '{"last_request_metrics":{"request_id":"req_IofHT9JafBnq1r","request_duration_ms":1033}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -694,7 +694,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:44 GMT + - Tue, 23 Apr 2024 11:20:23 GMT Content-Type: - application/json Content-Length: @@ -726,7 +726,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_orhSEXIZyv0Rt7 + - req_v1hTds2XBdLNE0 Stripe-Version: - '2024-04-10' Vary: @@ -739,7 +739,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8jKuuB1fWySn250YdCNa", + "id": "pi_3P8hOaKuuB1fWySn1Yu4g8ob", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -755,18 +755,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393581, + "created": 1713871220, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8jKuuB1fWySn2qTroa6X", + "latest_charge": "ch_3P8hOaKuuB1fWySn1YRaPZ42", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8jKuuB1fWySn9AdWGLTZ", + "payment_method": "pm_1P8hOZKuuB1fWySncTeaMaWz", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -791,5 +791,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:45 GMT + recorded_at: Tue, 23 Apr 2024 11:20:23 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/returns_payment_intent_id_and_does_not_raise.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/returns_payment_intent_id_and_does_not_raise.yml index 08838a6fd3..51ab244735 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_e3is6LFByX27Sh","request_duration_ms":407}}' + - '{"last_request_metrics":{"request_id":"req_aZYwq636amcQQc","request_duration_ms":318}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:39 GMT + - Tue, 23 Apr 2024 11:20:17 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 237c6bea-9582-4bb5-a913-6ba1de54b654 + - f6ae69fe-caa2-4776-ba8b-5a209fba4053 Original-Request: - - req_tWpGVf0e6fNmZ5 + - req_ZY80R85ZYCz9YZ Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_tWpGVf0e6fNmZ5 + - req_ZY80R85ZYCz9YZ Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h8hKuuB1fWySnpRASYAEC", + "id": "pm_1P8hOXKuuB1fWySnGH4SNW9J", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393579, + "created": 1713871217, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:39:39 GMT + recorded_at: Tue, 23 Apr 2024 11:20:17 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h8hKuuB1fWySnpRASYAEC&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hOXKuuB1fWySnGH4SNW9J&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_tWpGVf0e6fNmZ5","request_duration_ms":492}}' + - '{"last_request_metrics":{"request_id":"req_ZY80R85ZYCz9YZ","request_duration_ms":457}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:40 GMT + - Tue, 23 Apr 2024 11:20:18 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - c7e3db0b-4311-4082-8945-e83d7b4d10bd + - 5cea98bf-f945-47b1-900a-3bfa2fa00381 Original-Request: - - req_8x2G5HfJxK0KO5 + - req_dHOX5pEyy1Rwqg Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_8x2G5HfJxK0KO5 + - req_dHOX5pEyy1Rwqg Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8hKuuB1fWySn2vEX8YKz", + "id": "pi_3P8hOXKuuB1fWySn204Us72T", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393579, + "created": 1713871217, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8hKuuB1fWySnpRASYAEC", + "payment_method": "pm_1P8hOXKuuB1fWySnGH4SNW9J", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:40 GMT + recorded_at: Tue, 23 Apr 2024 11:20:18 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8hKuuB1fWySn2vEX8YKz/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOXKuuB1fWySn204Us72T/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_8x2G5HfJxK0KO5","request_duration_ms":417}}' + - '{"last_request_metrics":{"request_id":"req_dHOX5pEyy1Rwqg","request_duration_ms":401}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:41 GMT + - Tue, 23 Apr 2024 11:20:18 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 2d04eaf5-4e5b-400b-81fd-5bc46e1c6c7e + - 1e8391df-7965-48f2-834e-c9e5255856c1 Original-Request: - - req_JvAWETBQMvlvuD + - req_bP4NkTLpFzZbuW Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_JvAWETBQMvlvuD + - req_bP4NkTLpFzZbuW Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8hKuuB1fWySn2vEX8YKz", + "id": "pi_3P8hOXKuuB1fWySn204Us72T", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393579, + "created": 1713871217, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8hKuuB1fWySn2fdTCbTk", + "latest_charge": "ch_3P8hOXKuuB1fWySn2ofgtnCQ", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8hKuuB1fWySnpRASYAEC", + "payment_method": "pm_1P8hOXKuuB1fWySnGH4SNW9J", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,5 +398,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:41 GMT + recorded_at: Tue, 23 Apr 2024 11:20:19 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/captures_the_payment.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/captures_the_payment.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/captures_the_payment.yml index cb383e17ac..68b4007571 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_5M6BDrkfp88ITK","request_duration_ms":1021}}' + - '{"last_request_metrics":{"request_id":"req_RnxUf0JS1gq5pi","request_duration_ms":880}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:47 GMT + - Tue, 23 Apr 2024 11:20:25 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - b8f13c2d-6b72-4bf4-9d1e-6f438a65694d + - e4ed1efc-2736-49c3-8081-dd0dee73bf6f Original-Request: - - req_6KKK2rncrBEXzj + - req_TkgKKJnnyw8IgZ Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_6KKK2rncrBEXzj + - req_TkgKKJnnyw8IgZ Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h8pKuuB1fWySnMcLJE9qc", + "id": "pm_1P8hOfKuuB1fWySnHIvCaKdC", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393587, + "created": 1713871225, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:39:47 GMT + recorded_at: Tue, 23 Apr 2024 11:20:25 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h8pKuuB1fWySnMcLJE9qc&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hOfKuuB1fWySnHIvCaKdC&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_6KKK2rncrBEXzj","request_duration_ms":477}}' + - '{"last_request_metrics":{"request_id":"req_TkgKKJnnyw8IgZ","request_duration_ms":440}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:48 GMT + - Tue, 23 Apr 2024 11:20:26 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 86675ad2-e66f-4fb8-a0ca-2cad53fcd12f + - 3b5b4fe7-0202-49d9-ae13-9e4b8f80da27 Original-Request: - - req_LTpYcCoJAvnCaa + - req_Rs0q7kmXwtQZr4 Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_LTpYcCoJAvnCaa + - req_Rs0q7kmXwtQZr4 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8pKuuB1fWySn0p9t3Nhi", + "id": "pi_3P8hOgKuuB1fWySn0NecCO37", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393587, + "created": 1713871226, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8pKuuB1fWySnMcLJE9qc", + "payment_method": "pm_1P8hOfKuuB1fWySnHIvCaKdC", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:48 GMT + recorded_at: Tue, 23 Apr 2024 11:20:26 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8pKuuB1fWySn0p9t3Nhi/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOgKuuB1fWySn0NecCO37/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_LTpYcCoJAvnCaa","request_duration_ms":511}}' + - '{"last_request_metrics":{"request_id":"req_Rs0q7kmXwtQZr4","request_duration_ms":408}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:49 GMT + - Tue, 23 Apr 2024 11:20:27 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - ec353a06-e37e-4ea6-b2a9-5e54bd365115 + - f51c7265-9f17-4b42-b6c4-50dd4ecf8a56 Original-Request: - - req_DJRhc7k9YcN7Gv + - req_vcysvYlLEhNqwl Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_DJRhc7k9YcN7Gv + - req_vcysvYlLEhNqwl Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8pKuuB1fWySn0p9t3Nhi", + "id": "pi_3P8hOgKuuB1fWySn0NecCO37", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393587, + "created": 1713871226, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8pKuuB1fWySn0cAJ3Nx0", + "latest_charge": "ch_3P8hOgKuuB1fWySn0xd3l2WL", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8pKuuB1fWySnMcLJE9qc", + "payment_method": "pm_1P8hOfKuuB1fWySnHIvCaKdC", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,10 +398,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:49 GMT + recorded_at: Tue, 23 Apr 2024 11:20:27 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8pKuuB1fWySn0p9t3Nhi + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOgKuuB1fWySn0NecCO37 body: encoding: US-ASCII string: '' @@ -413,7 +413,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_DJRhc7k9YcN7Gv","request_duration_ms":966}}' + - '{"last_request_metrics":{"request_id":"req_vcysvYlLEhNqwl","request_duration_ms":1018}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -430,7 +430,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:49 GMT + - Tue, 23 Apr 2024 11:20:27 GMT Content-Type: - application/json Content-Length: @@ -462,7 +462,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_es3p52W7zr7ZNm + - req_2bALfgDj6AgBdB Stripe-Version: - '2024-04-10' Vary: @@ -475,7 +475,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8pKuuB1fWySn0p9t3Nhi", + "id": "pi_3P8hOgKuuB1fWySn0NecCO37", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -491,18 +491,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393587, + "created": 1713871226, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8pKuuB1fWySn0cAJ3Nx0", + "latest_charge": "ch_3P8hOgKuuB1fWySn0xd3l2WL", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8pKuuB1fWySnMcLJE9qc", + "payment_method": "pm_1P8hOfKuuB1fWySnHIvCaKdC", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -527,10 +527,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:49 GMT + recorded_at: Tue, 23 Apr 2024 11:20:27 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8pKuuB1fWySn0p9t3Nhi/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOgKuuB1fWySn0NecCO37/capture body: encoding: US-ASCII string: '' @@ -542,7 +542,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_es3p52W7zr7ZNm","request_duration_ms":364}}' + - '{"last_request_metrics":{"request_id":"req_2bALfgDj6AgBdB","request_duration_ms":406}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -559,7 +559,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:50 GMT + - Tue, 23 Apr 2024 11:20:28 GMT Content-Type: - application/json Content-Length: @@ -587,15 +587,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 165ad06c-1c87-478e-be81-8de26316faea + - 9f32e62f-cfcb-476d-befa-a4632c831673 Original-Request: - - req_taD54UO4v1MIBe + - req_Q1bpHGCcGlxb5Z Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_taD54UO4v1MIBe + - req_Q1bpHGCcGlxb5Z Stripe-Should-Retry: - 'false' Stripe-Version: @@ -610,7 +610,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8pKuuB1fWySn0p9t3Nhi", + "id": "pi_3P8hOgKuuB1fWySn0NecCO37", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -626,18 +626,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393587, + "created": 1713871226, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8pKuuB1fWySn0cAJ3Nx0", + "latest_charge": "ch_3P8hOgKuuB1fWySn0xd3l2WL", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8pKuuB1fWySnMcLJE9qc", + "payment_method": "pm_1P8hOfKuuB1fWySnHIvCaKdC", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -662,10 +662,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:50 GMT + recorded_at: Tue, 23 Apr 2024 11:20:28 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8pKuuB1fWySn0p9t3Nhi + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOgKuuB1fWySn0NecCO37 body: encoding: US-ASCII string: '' @@ -677,7 +677,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_taD54UO4v1MIBe","request_duration_ms":1021}}' + - '{"last_request_metrics":{"request_id":"req_Q1bpHGCcGlxb5Z","request_duration_ms":1018}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -694,7 +694,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:50 GMT + - Tue, 23 Apr 2024 11:20:28 GMT Content-Type: - application/json Content-Length: @@ -726,7 +726,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_zvf4CAVwSgnYlD + - req_CLAQeFdk7h5EGj Stripe-Version: - '2024-04-10' Vary: @@ -739,7 +739,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8pKuuB1fWySn0p9t3Nhi", + "id": "pi_3P8hOgKuuB1fWySn0NecCO37", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -755,18 +755,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393587, + "created": 1713871226, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8pKuuB1fWySn0cAJ3Nx0", + "latest_charge": "ch_3P8hOgKuuB1fWySn0xd3l2WL", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8pKuuB1fWySnMcLJE9qc", + "payment_method": "pm_1P8hOfKuuB1fWySnHIvCaKdC", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -791,5 +791,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:50 GMT + recorded_at: Tue, 23 Apr 2024 11:20:29 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/returns_payment_intent_id_and_does_not_raise.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/returns_payment_intent_id_and_does_not_raise.yml index 47a2a5b85c..de46a20720 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_orhSEXIZyv0Rt7","request_duration_ms":405}}' + - '{"last_request_metrics":{"request_id":"req_v1hTds2XBdLNE0","request_duration_ms":326}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:45 GMT + - Tue, 23 Apr 2024 11:20:23 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - ad63d10c-cb0a-4eb7-8845-89cffbb4a46c + - 538cc1fe-9589-4272-be89-1e21c4a7ca96 Original-Request: - - req_5scTfSWgF8tVBm + - req_0WBclh6fOiomtq Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_5scTfSWgF8tVBm + - req_0WBclh6fOiomtq Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h8nKuuB1fWySn8lYg1dY8", + "id": "pm_1P8hOdKuuB1fWySnaS7LWBFU", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393585, + "created": 1713871223, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:39:45 GMT + recorded_at: Tue, 23 Apr 2024 11:20:23 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h8nKuuB1fWySn8lYg1dY8&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hOdKuuB1fWySnaS7LWBFU&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_5scTfSWgF8tVBm","request_duration_ms":496}}' + - '{"last_request_metrics":{"request_id":"req_0WBclh6fOiomtq","request_duration_ms":425}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:45 GMT + - Tue, 23 Apr 2024 11:20:24 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 92c73f49-fb31-44e6-aa4e-6da9225452ac + - d9e0c093-a716-488d-a7ac-ce6ee9a6b173 Original-Request: - - req_U0ctc0agMjXrZh + - req_aXWW7zXQO3wrcm Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_U0ctc0agMjXrZh + - req_aXWW7zXQO3wrcm Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8nKuuB1fWySn2N7eDEQt", + "id": "pi_3P8hOdKuuB1fWySn2eWYNwxe", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393585, + "created": 1713871223, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8nKuuB1fWySn8lYg1dY8", + "payment_method": "pm_1P8hOdKuuB1fWySnaS7LWBFU", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:46 GMT + recorded_at: Tue, 23 Apr 2024 11:20:24 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h8nKuuB1fWySn2N7eDEQt/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hOdKuuB1fWySn2eWYNwxe/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_U0ctc0agMjXrZh","request_duration_ms":510}}' + - '{"last_request_metrics":{"request_id":"req_aXWW7zXQO3wrcm","request_duration_ms":427}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:39:46 GMT + - Tue, 23 Apr 2024 11:20:24 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - b3a27f7f-5c71-42c5-b19d-11fd62e44765 + - 5ce32ea5-c223-4268-b7bb-bc30816cd714 Original-Request: - - req_5M6BDrkfp88ITK + - req_RnxUf0JS1gq5pi Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_5M6BDrkfp88ITK + - req_RnxUf0JS1gq5pi Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h8nKuuB1fWySn2N7eDEQt", + "id": "pi_3P8hOdKuuB1fWySn2eWYNwxe", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393585, + "created": 1713871223, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h8nKuuB1fWySn2N5ABsKa", + "latest_charge": "ch_3P8hOdKuuB1fWySn2ILu0oRo", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h8nKuuB1fWySn8lYg1dY8", + "payment_method": "pm_1P8hOdKuuB1fWySnaS7LWBFU", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,5 +398,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:39:47 GMT + recorded_at: Tue, 23 Apr 2024 11:20:25 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/captures_the_payment.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/captures_the_payment.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/captures_the_payment.yml index 58a5662db9..96d4fd499c 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_GinJvOrjI3jPoK","request_duration_ms":1124}}' + - '{"last_request_metrics":{"request_id":"req_d5uyFrP9kkS6B8","request_duration_ms":950}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:19 GMT + - Tue, 23 Apr 2024 11:19:01 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 64910d91-161c-4a0a-a7b1-027463f9f932 + - 528b7f7b-a6cf-4405-8092-7d33c26055d2 Original-Request: - - req_EfwFVjR7SzuG4N + - req_dDrPytC5ffagfe Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_EfwFVjR7SzuG4N + - req_dDrPytC5ffagfe Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h7PKuuB1fWySnpJPlGzBx", + "id": "pm_1P8hNIKuuB1fWySn5cotK7tE", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393499, + "created": 1713871141, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:38:19 GMT + recorded_at: Tue, 23 Apr 2024 11:19:01 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h7PKuuB1fWySnpJPlGzBx&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hNIKuuB1fWySn5cotK7tE&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_EfwFVjR7SzuG4N","request_duration_ms":470}}' + - '{"last_request_metrics":{"request_id":"req_dDrPytC5ffagfe","request_duration_ms":541}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:19 GMT + - Tue, 23 Apr 2024 11:19:01 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - c28f48c9-e737-4e5f-a96b-4162ca0d54e5 + - 01a65e32-cad1-4bcf-bc88-d124a4a3d3fd Original-Request: - - req_okNPf46lsUW0NZ + - req_79a299jxBJw8dW Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_okNPf46lsUW0NZ + - req_79a299jxBJw8dW Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7PKuuB1fWySn2KfYVSKl", + "id": "pi_3P8hNJKuuB1fWySn2dkxDwHa", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393499, + "created": 1713871141, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7PKuuB1fWySnpJPlGzBx", + "payment_method": "pm_1P8hNIKuuB1fWySn5cotK7tE", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:19 GMT + recorded_at: Tue, 23 Apr 2024 11:19:01 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7PKuuB1fWySn2KfYVSKl/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNJKuuB1fWySn2dkxDwHa/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_okNPf46lsUW0NZ","request_duration_ms":583}}' + - '{"last_request_metrics":{"request_id":"req_79a299jxBJw8dW","request_duration_ms":422}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:21 GMT + - Tue, 23 Apr 2024 11:19:02 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 60f1d6ad-7f81-4d2a-9ef1-41f19f44e4cc + - 330b9db2-d4d4-48d6-a673-53a39613ffec Original-Request: - - req_4sYqtfUeHgBS1h + - req_UhNEuuDoi3tbC4 Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_4sYqtfUeHgBS1h + - req_UhNEuuDoi3tbC4 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7PKuuB1fWySn2KfYVSKl", + "id": "pi_3P8hNJKuuB1fWySn2dkxDwHa", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393499, + "created": 1713871141, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7PKuuB1fWySn2L8Ip9bg", + "latest_charge": "ch_3P8hNJKuuB1fWySn2CWq8PDc", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7PKuuB1fWySnpJPlGzBx", + "payment_method": "pm_1P8hNIKuuB1fWySn5cotK7tE", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,10 +398,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:21 GMT + recorded_at: Tue, 23 Apr 2024 11:19:02 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7PKuuB1fWySn2KfYVSKl + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNJKuuB1fWySn2dkxDwHa body: encoding: US-ASCII string: '' @@ -413,7 +413,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_4sYqtfUeHgBS1h","request_duration_ms":1052}}' + - '{"last_request_metrics":{"request_id":"req_UhNEuuDoi3tbC4","request_duration_ms":1102}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -430,7 +430,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:21 GMT + - Tue, 23 Apr 2024 11:19:03 GMT Content-Type: - application/json Content-Length: @@ -462,7 +462,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_InA4UXgP7ovZil + - req_KvOZhpfMTPf3Dh Stripe-Version: - '2024-04-10' Vary: @@ -475,7 +475,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7PKuuB1fWySn2KfYVSKl", + "id": "pi_3P8hNJKuuB1fWySn2dkxDwHa", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -491,18 +491,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393499, + "created": 1713871141, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7PKuuB1fWySn2L8Ip9bg", + "latest_charge": "ch_3P8hNJKuuB1fWySn2CWq8PDc", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7PKuuB1fWySnpJPlGzBx", + "payment_method": "pm_1P8hNIKuuB1fWySn5cotK7tE", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -527,10 +527,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:21 GMT + recorded_at: Tue, 23 Apr 2024 11:19:03 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7PKuuB1fWySn2KfYVSKl/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNJKuuB1fWySn2dkxDwHa/capture body: encoding: US-ASCII string: '' @@ -542,7 +542,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_InA4UXgP7ovZil","request_duration_ms":408}}' + - '{"last_request_metrics":{"request_id":"req_KvOZhpfMTPf3Dh","request_duration_ms":407}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -559,7 +559,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:22 GMT + - Tue, 23 Apr 2024 11:19:04 GMT Content-Type: - application/json Content-Length: @@ -587,15 +587,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 211c48d0-f153-469b-a5f7-bc0ec77f4820 + - af9eb1dd-fe0b-43f7-b9c3-56645d113af2 Original-Request: - - req_3pEsevymAurQCW + - req_WH8VJK1GQ8VwJ6 Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_3pEsevymAurQCW + - req_WH8VJK1GQ8VwJ6 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -610,7 +610,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7PKuuB1fWySn2KfYVSKl", + "id": "pi_3P8hNJKuuB1fWySn2dkxDwHa", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -626,18 +626,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393499, + "created": 1713871141, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7PKuuB1fWySn2L8Ip9bg", + "latest_charge": "ch_3P8hNJKuuB1fWySn2CWq8PDc", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7PKuuB1fWySnpJPlGzBx", + "payment_method": "pm_1P8hNIKuuB1fWySn5cotK7tE", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -662,10 +662,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:22 GMT + recorded_at: Tue, 23 Apr 2024 11:19:04 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7PKuuB1fWySn2KfYVSKl + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNJKuuB1fWySn2dkxDwHa body: encoding: US-ASCII string: '' @@ -677,7 +677,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_3pEsevymAurQCW","request_duration_ms":1126}}' + - '{"last_request_metrics":{"request_id":"req_WH8VJK1GQ8VwJ6","request_duration_ms":1123}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -694,7 +694,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:22 GMT + - Tue, 23 Apr 2024 11:19:04 GMT Content-Type: - application/json Content-Length: @@ -726,7 +726,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_tfIcynbnVwUvuZ + - req_xP6oHQTgDjlOHG Stripe-Version: - '2024-04-10' Vary: @@ -739,7 +739,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7PKuuB1fWySn2KfYVSKl", + "id": "pi_3P8hNJKuuB1fWySn2dkxDwHa", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -755,18 +755,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393499, + "created": 1713871141, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7PKuuB1fWySn2L8Ip9bg", + "latest_charge": "ch_3P8hNJKuuB1fWySn2CWq8PDc", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7PKuuB1fWySnpJPlGzBx", + "payment_method": "pm_1P8hNIKuuB1fWySn5cotK7tE", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -791,5 +791,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:22 GMT + recorded_at: Tue, 23 Apr 2024 11:19:04 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/returns_payment_intent_id_and_does_not_raise.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/returns_payment_intent_id_and_does_not_raise.yml index 324b84463d..06aff811cc 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/returns_payment_intent_id_and_does_not_raise.yml @@ -13,8 +13,6 @@ http_interactions: - "" Content-Type: - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_6erFBt8I8770U0","request_duration_ms":1019}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +29,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:16 GMT + - Tue, 23 Apr 2024 11:18:58 GMT Content-Type: - application/json Content-Length: @@ -58,15 +56,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - d437847d-b101-4d30-85e5-ade1f734a58c + - 29eca7b2-af0e-4828-a9a0-896d5ceb00aa Original-Request: - - req_ML8x0xRXjzSwUg + - req_srfnyp4Vm6VFzI Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_ML8x0xRXjzSwUg + - req_srfnyp4Vm6VFzI Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +79,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h7MKuuB1fWySnC2fh20kl", + "id": "pm_1P8hNFKuuB1fWySntyz6ny7q", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +121,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393496, + "created": 1713871138, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:38:17 GMT + recorded_at: Tue, 23 Apr 2024 11:18:58 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h7MKuuB1fWySnC2fh20kl&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hNFKuuB1fWySntyz6ny7q&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +142,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_ML8x0xRXjzSwUg","request_duration_ms":498}}' + - '{"last_request_metrics":{"request_id":"req_srfnyp4Vm6VFzI","request_duration_ms":669}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:17 GMT + - Tue, 23 Apr 2024 11:18:58 GMT Content-Type: - application/json Content-Length: @@ -188,15 +186,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 1c64ce4f-10a5-4d25-b4a3-0770f59fe416 + - 9f47d039-c6ff-454b-b4fe-f984ac0ff197 Original-Request: - - req_byoPGN1UVs38aW + - req_6QkVOZPnSbKaAI Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_byoPGN1UVs38aW + - req_6QkVOZPnSbKaAI Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +209,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7NKuuB1fWySn04AMksxW", + "id": "pi_3P8hNGKuuB1fWySn0dvhu9lG", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +225,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393497, + "created": 1713871138, "currency": "eur", "customer": null, "description": null, @@ -238,7 +236,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7MKuuB1fWySnC2fh20kl", + "payment_method": "pm_1P8hNFKuuB1fWySntyz6ny7q", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +261,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:17 GMT + recorded_at: Tue, 23 Apr 2024 11:18:58 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7NKuuB1fWySn04AMksxW/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNGKuuB1fWySn0dvhu9lG/confirm body: encoding: US-ASCII string: '' @@ -278,7 +276,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_byoPGN1UVs38aW","request_duration_ms":508}}' + - '{"last_request_metrics":{"request_id":"req_6QkVOZPnSbKaAI","request_duration_ms":681}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +293,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:18 GMT + - Tue, 23 Apr 2024 11:18:59 GMT Content-Type: - application/json Content-Length: @@ -323,15 +321,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 71a3372c-0bae-4c21-b1d3-3f15c6395ab5 + - f481e055-83bb-47db-a795-9fe3411f9bb5 Original-Request: - - req_GinJvOrjI3jPoK + - req_d5uyFrP9kkS6B8 Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_GinJvOrjI3jPoK + - req_d5uyFrP9kkS6B8 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +344,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7NKuuB1fWySn04AMksxW", + "id": "pi_3P8hNGKuuB1fWySn0dvhu9lG", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +360,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393497, + "created": 1713871138, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7NKuuB1fWySn0YW3AXzB", + "latest_charge": "ch_3P8hNGKuuB1fWySn0zASG84d", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7MKuuB1fWySnC2fh20kl", + "payment_method": "pm_1P8hNFKuuB1fWySntyz6ny7q", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,5 +396,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:18 GMT + recorded_at: Tue, 23 Apr 2024 11:18:59 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/captures_the_payment.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/captures_the_payment.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/captures_the_payment.yml index 63a1b68cf1..be1da39841 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_pXfL18SxvJbCBU","request_duration_ms":1010}}' + - '{"last_request_metrics":{"request_id":"req_qzjFSWd3iBDt8c","request_duration_ms":1037}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:25 GMT + - Tue, 23 Apr 2024 11:19:07 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - bd815d42-e8c8-4979-b188-e0c462044392 + - e99d6578-ea57-4440-8973-a36e96b2cd95 Original-Request: - - req_219VLTcIujaPsx + - req_n9cAIF63Vn9pzi Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_219VLTcIujaPsx + - req_n9cAIF63Vn9pzi Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h7VKuuB1fWySnsX7ucKLX", + "id": "pm_1P8hNPKuuB1fWySnDHy6ZIyV", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393505, + "created": 1713871147, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:38:25 GMT + recorded_at: Tue, 23 Apr 2024 11:19:07 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h7VKuuB1fWySnsX7ucKLX&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hNPKuuB1fWySnDHy6ZIyV&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_219VLTcIujaPsx","request_duration_ms":458}}' + - '{"last_request_metrics":{"request_id":"req_n9cAIF63Vn9pzi","request_duration_ms":515}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:26 GMT + - Tue, 23 Apr 2024 11:19:07 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 98fe770f-204b-4bf3-ba9c-2a26562a7e09 + - cc5554c9-962a-49b0-a9c6-0ff4a8a161db Original-Request: - - req_QTyZoiVYbbIw5w + - req_FO5ZkOTZ1eJ487 Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_QTyZoiVYbbIw5w + - req_FO5ZkOTZ1eJ487 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7VKuuB1fWySn2XHLMoF9", + "id": "pi_3P8hNPKuuB1fWySn1YmwOcGM", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393505, + "created": 1713871147, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7VKuuB1fWySnsX7ucKLX", + "payment_method": "pm_1P8hNPKuuB1fWySnDHy6ZIyV", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:26 GMT + recorded_at: Tue, 23 Apr 2024 11:19:08 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7VKuuB1fWySn2XHLMoF9/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNPKuuB1fWySn1YmwOcGM/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_QTyZoiVYbbIw5w","request_duration_ms":437}}' + - '{"last_request_metrics":{"request_id":"req_FO5ZkOTZ1eJ487","request_duration_ms":510}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:27 GMT + - Tue, 23 Apr 2024 11:19:09 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - c754d625-abdc-429c-b974-e066f6a364d9 + - be137c15-af71-411d-aecb-81c5d20d0724 Original-Request: - - req_42Ejxtw3ANOc7Z + - req_D4cdH7OWLVrSRp Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_42Ejxtw3ANOc7Z + - req_D4cdH7OWLVrSRp Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7VKuuB1fWySn2XHLMoF9", + "id": "pi_3P8hNPKuuB1fWySn1YmwOcGM", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393505, + "created": 1713871147, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7VKuuB1fWySn28tKnIYE", + "latest_charge": "ch_3P8hNPKuuB1fWySn186LYHZO", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7VKuuB1fWySnsX7ucKLX", + "payment_method": "pm_1P8hNPKuuB1fWySnDHy6ZIyV", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,10 +398,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:27 GMT + recorded_at: Tue, 23 Apr 2024 11:19:09 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7VKuuB1fWySn2XHLMoF9 + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNPKuuB1fWySn1YmwOcGM body: encoding: US-ASCII string: '' @@ -413,7 +413,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_42Ejxtw3ANOc7Z","request_duration_ms":1127}}' + - '{"last_request_metrics":{"request_id":"req_D4cdH7OWLVrSRp","request_duration_ms":1023}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -430,7 +430,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:27 GMT + - Tue, 23 Apr 2024 11:19:09 GMT Content-Type: - application/json Content-Length: @@ -462,7 +462,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_GwCDbtlfFx98Ca + - req_7fET0Vsy8rlAB3 Stripe-Version: - '2024-04-10' Vary: @@ -475,7 +475,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7VKuuB1fWySn2XHLMoF9", + "id": "pi_3P8hNPKuuB1fWySn1YmwOcGM", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -491,18 +491,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393505, + "created": 1713871147, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7VKuuB1fWySn28tKnIYE", + "latest_charge": "ch_3P8hNPKuuB1fWySn186LYHZO", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7VKuuB1fWySnsX7ucKLX", + "payment_method": "pm_1P8hNPKuuB1fWySnDHy6ZIyV", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -527,10 +527,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:27 GMT + recorded_at: Tue, 23 Apr 2024 11:19:09 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7VKuuB1fWySn2XHLMoF9/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNPKuuB1fWySn1YmwOcGM/capture body: encoding: US-ASCII string: '' @@ -542,7 +542,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_GwCDbtlfFx98Ca","request_duration_ms":406}}' + - '{"last_request_metrics":{"request_id":"req_7fET0Vsy8rlAB3","request_duration_ms":300}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -559,7 +559,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:28 GMT + - Tue, 23 Apr 2024 11:19:10 GMT Content-Type: - application/json Content-Length: @@ -587,15 +587,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - e31e1c73-e6ea-4709-aac2-6b25bfbd32bd + - d06e3f1f-3dd3-4e42-9b79-adc58e38f5bd Original-Request: - - req_FFdCC8GBHe6yzl + - req_nd5bj5GUQrrWz3 Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_FFdCC8GBHe6yzl + - req_nd5bj5GUQrrWz3 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -610,7 +610,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7VKuuB1fWySn2XHLMoF9", + "id": "pi_3P8hNPKuuB1fWySn1YmwOcGM", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -626,18 +626,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393505, + "created": 1713871147, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7VKuuB1fWySn28tKnIYE", + "latest_charge": "ch_3P8hNPKuuB1fWySn186LYHZO", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7VKuuB1fWySnsX7ucKLX", + "payment_method": "pm_1P8hNPKuuB1fWySnDHy6ZIyV", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -662,10 +662,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:28 GMT + recorded_at: Tue, 23 Apr 2024 11:19:10 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7VKuuB1fWySn2XHLMoF9 + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNPKuuB1fWySn1YmwOcGM body: encoding: US-ASCII string: '' @@ -677,7 +677,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_FFdCC8GBHe6yzl","request_duration_ms":1124}}' + - '{"last_request_metrics":{"request_id":"req_nd5bj5GUQrrWz3","request_duration_ms":910}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -694,7 +694,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:29 GMT + - Tue, 23 Apr 2024 11:19:10 GMT Content-Type: - application/json Content-Length: @@ -726,7 +726,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_VCkHzjjHMXrfND + - req_nTq52MOanuOx3G Stripe-Version: - '2024-04-10' Vary: @@ -739,7 +739,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7VKuuB1fWySn2XHLMoF9", + "id": "pi_3P8hNPKuuB1fWySn1YmwOcGM", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -755,18 +755,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393505, + "created": 1713871147, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7VKuuB1fWySn28tKnIYE", + "latest_charge": "ch_3P8hNPKuuB1fWySn186LYHZO", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7VKuuB1fWySnsX7ucKLX", + "payment_method": "pm_1P8hNPKuuB1fWySnDHy6ZIyV", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -791,5 +791,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:29 GMT + recorded_at: Tue, 23 Apr 2024 11:19:10 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/returns_payment_intent_id_and_does_not_raise.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/returns_payment_intent_id_and_does_not_raise.yml index 0ed7d06d49..0492deb9ff 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v11.1.0/Stripe_PaymentIntentValidator/_call/as_a_guest/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_tfIcynbnVwUvuZ","request_duration_ms":406}}' + - '{"last_request_metrics":{"request_id":"req_xP6oHQTgDjlOHG","request_duration_ms":406}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -31,7 +31,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:23 GMT + - Tue, 23 Apr 2024 11:19:05 GMT Content-Type: - application/json Content-Length: @@ -58,15 +58,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - a7b996f1-a409-4a18-aa1b-1880b0a5034e + - 7f78fc1e-c46a-4874-a1f6-16c601cbf2b3 Original-Request: - - req_bkXwpvWqb1uGih + - req_yHsbyvzodoQCdC Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_bkXwpvWqb1uGih + - req_yHsbyvzodoQCdC Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +81,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1P6h7TKuuB1fWySnjAMDCuUb", + "id": "pm_1P8hNMKuuB1fWySnJvGqdDRh", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { @@ -123,19 +123,19 @@ http_interactions: }, "wallet": null }, - "created": 1713393503, + "created": 1713871145, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Wed, 17 Apr 2024 22:38:23 GMT + recorded_at: Tue, 23 Apr 2024 11:19:05 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1P6h7TKuuB1fWySnjAMDCuUb&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1P8hNMKuuB1fWySnJvGqdDRh&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/11.1.0 @@ -144,7 +144,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_bkXwpvWqb1uGih","request_duration_ms":573}}' + - '{"last_request_metrics":{"request_id":"req_yHsbyvzodoQCdC","request_duration_ms":470}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -161,7 +161,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:24 GMT + - Tue, 23 Apr 2024 11:19:05 GMT Content-Type: - application/json Content-Length: @@ -188,15 +188,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 554816c3-59e5-4e14-ae85-c157106cfeb6 + - d1d3e86b-bd89-40f7-bc01-f7970fe43035 Original-Request: - - req_F5w6Gb6QlfUAzd + - req_57mU7XA1FJSVyr Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_F5w6Gb6QlfUAzd + - req_57mU7XA1FJSVyr Stripe-Should-Retry: - 'false' Stripe-Version: @@ -211,7 +211,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7TKuuB1fWySn2fA3dJIq", + "id": "pi_3P8hNNKuuB1fWySn2R30XK1N", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -227,7 +227,7 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393503, + "created": 1713871145, "currency": "eur", "customer": null, "description": null, @@ -238,7 +238,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7TKuuB1fWySnjAMDCuUb", + "payment_method": "pm_1P8hNMKuuB1fWySnJvGqdDRh", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -263,10 +263,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:24 GMT + recorded_at: Tue, 23 Apr 2024 11:19:05 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3P6h7TKuuB1fWySn2fA3dJIq/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3P8hNNKuuB1fWySn2R30XK1N/confirm body: encoding: US-ASCII string: '' @@ -278,7 +278,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_F5w6Gb6QlfUAzd","request_duration_ms":507}}' + - '{"last_request_metrics":{"request_id":"req_57mU7XA1FJSVyr","request_duration_ms":384}}' Stripe-Version: - '2024-04-10' X-Stripe-Client-User-Agent: @@ -295,7 +295,7 @@ http_interactions: Server: - nginx Date: - - Wed, 17 Apr 2024 22:38:25 GMT + - Tue, 23 Apr 2024 11:19:06 GMT Content-Type: - application/json Content-Length: @@ -323,15 +323,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - '089dc653-e311-418b-a775-17489143e1dd' + - 0d1579d0-f113-42f9-9f65-5445ea4ec037 Original-Request: - - req_pXfL18SxvJbCBU + - req_qzjFSWd3iBDt8c Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_pXfL18SxvJbCBU + - req_qzjFSWd3iBDt8c Stripe-Should-Retry: - 'false' Stripe-Version: @@ -346,7 +346,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3P6h7TKuuB1fWySn2fA3dJIq", + "id": "pi_3P8hNNKuuB1fWySn2R30XK1N", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -362,18 +362,18 @@ http_interactions: "capture_method": "manual", "client_secret": "", "confirmation_method": "automatic", - "created": 1713393503, + "created": 1713871145, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3P6h7TKuuB1fWySn2rsh6FhI", + "latest_charge": "ch_3P8hNNKuuB1fWySn2UVLjbTL", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1P6h7TKuuB1fWySnjAMDCuUb", + "payment_method": "pm_1P8hNMKuuB1fWySnJvGqdDRh", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -398,5 +398,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Wed, 17 Apr 2024 22:38:25 GMT + recorded_at: Tue, 23 Apr 2024 11:19:06 GMT recorded_with: VCR 6.2.0 diff --git a/spec/lib/stripe/payment_intent_validator_spec.rb b/spec/lib/stripe/payment_intent_validator_spec.rb index d4d37afa2b..64713217fa 100644 --- a/spec/lib/stripe/payment_intent_validator_spec.rb +++ b/spec/lib/stripe/payment_intent_validator_spec.rb @@ -18,131 +18,290 @@ describe Stripe::PaymentIntentValidator do } let(:validator) { Stripe::PaymentIntentValidator.new(payment) } - context "when payment intent is valid" do - shared_examples "payments intents" do |card_type, card_number| - context "from #{card_type}" do - let!(:pm_card) do - Stripe::PaymentMethod.create({ - type: 'card', - card: { - number: card_number, - exp_month: 12, - exp_year: year_valid, - cvc: '314', - }, - }) - end - let!(:payment_intent) do - Stripe::PaymentIntent.create({ - amount: 100, - currency: 'eur', - payment_method: pm_card, - payment_method_types: ['card'], - capture_method: 'manual', - }) - end - let(:payment_intent_response_body) { - [id: payment_intent.id, status: payment_intent.status] - } + describe "as a guest" do + context "when payment intent is valid" do + shared_examples "payments intents" do |card_type, card_number| + context "from #{card_type}" do + let!(:pm_card) do + Stripe::PaymentMethod.create({ + type: 'card', + card: { + number: card_number, + exp_month: 12, + exp_year: year_valid, + cvc: '314', + }, + }) + end + let!(:payment_intent) do + Stripe::PaymentIntent.create({ + amount: 100, + currency: 'eur', + payment_method: pm_card, + payment_method_types: ['card'], + capture_method: 'manual', + }) + end + let(:payment_intent_response_body) { + [id: payment_intent.id, status: payment_intent.status] + } - before do - Stripe::PaymentIntent.confirm(payment_intent.id) - end - it "returns payment intent id and does not raise" do - expect { - result = validator.call - expect(result).to eq payment_intent_response_body - }.not_to raise_error Stripe::StripeError - end + before do + Stripe::PaymentIntent.confirm(payment_intent.id) + end + it "returns payment intent id and does not raise" do + expect { + result = validator.call + expect(result).to eq payment_intent_response_body + }.not_to raise_error Stripe::StripeError + end - it "captures the payment" do - expect(Stripe::PaymentIntent.retrieve( - payment_intent.id - ).status).to eq("requires_capture") + it "captures the payment" do + expect(Stripe::PaymentIntent.retrieve( + payment_intent.id + ).status).to eq("requires_capture") - Stripe::PaymentIntent.capture(payment_intent.id) + Stripe::PaymentIntent.capture(payment_intent.id) - expect(Stripe::PaymentIntent.retrieve( - payment_intent.id - ).status).to eq("succeeded") + expect(Stripe::PaymentIntent.retrieve( + payment_intent.id + ).status).to eq("succeeded") + end end end - end - context "valid non-3D credit cards are correctly handled" do - it_behaves_like "payments intents", "Visa", 4_242_424_242_424_242 - it_behaves_like "payments intents", "Visa (debit)", 4_000_056_655_665_556 - it_behaves_like "payments intents", "Mastercard", 5_555_555_555_554_444 - it_behaves_like "payments intents", "Mastercard (2-series)", 2_223_003_122_003_222 - it_behaves_like "payments intents", "Mastercard (debit)", 5_200_828_282_828_210 - it_behaves_like "payments intents", "Mastercard (prepaid)", 5_105_105_105_105_100 - it_behaves_like "payments intents", "American Express", 378_282_246_310_005 - it_behaves_like "payments intents", "American Express", 371_449_635_398_431 - it_behaves_like "payments intents", "Discover", 6_011_111_111_111_117 - it_behaves_like "payments intents", "Discover", 6_011_000_990_139_424 - it_behaves_like "payments intents", "Discover (debit)", 6_011_981_111_111_113 - it_behaves_like "payments intents", "Diners Club", 3_056_930_009_020_004 - it_behaves_like "payments intents", "Diners Club (14-digit card)", 36_227_206_271_667 - it_behaves_like "payments intents", "BCcard and DinaCard", 6_555_900_000_604_105 - it_behaves_like "payments intents", "JCB", 3_566_002_020_360_505 - it_behaves_like "payments intents", "UnionPay", 6_200_000_000_000_005 - it_behaves_like "payments intents", "UnionPay (19-digit card)", 6_205_500_000_000_000_004 - end + context "valid non-3D credit cards are correctly handled" do + it_behaves_like "payments intents", "Visa", 4_242_424_242_424_242 + it_behaves_like "payments intents", "Visa (debit)", 4_000_056_655_665_556 + it_behaves_like "payments intents", "Mastercard", 5_555_555_555_554_444 + it_behaves_like "payments intents", "Mastercard (2-series)", 2_223_003_122_003_222 + it_behaves_like "payments intents", "Mastercard (debit)", 5_200_828_282_828_210 + it_behaves_like "payments intents", "Mastercard (prepaid)", 5_105_105_105_105_100 + it_behaves_like "payments intents", "American Express", 378_282_246_310_005 + it_behaves_like "payments intents", "American Express", 371_449_635_398_431 + it_behaves_like "payments intents", "Discover", 6_011_111_111_111_117 + it_behaves_like "payments intents", "Discover", 6_011_000_990_139_424 + it_behaves_like "payments intents", "Discover (debit)", 6_011_981_111_111_113 + it_behaves_like "payments intents", "Diners Club", 3_056_930_009_020_004 + it_behaves_like "payments intents", "Diners Club (14-digit card)", 36_227_206_271_667 + it_behaves_like "payments intents", "BCcard and DinaCard", 6_555_900_000_604_105 + it_behaves_like "payments intents", "JCB", 3_566_002_020_360_505 + it_behaves_like "payments intents", "UnionPay", 6_200_000_000_000_005 + it_behaves_like "payments intents", "UnionPay (19-digit card)", 6_205_500_000_000_000_004 + end - xcontext "valid 3D cards are correctly handled" do - pending("updating spec to handle 3D2S cards") - it_behaves_like "payments intents", "UnionPay (debit)", 6_200_000_000_000_047 + xcontext "valid 3D cards are correctly handled" do + pending("updating spec to handle 3D2S cards") + it_behaves_like "payments intents", "UnionPay (debit)", 6_200_000_000_000_047 + end + end + context "when payment intent is invalid" do + shared_examples "payments intents" do |card_type, card_number, error_message| + context "from #{card_type}" do + let!(:pm_card) do + Stripe::PaymentMethod.create({ + type: 'card', + card: { + number: card_number, + exp_month: 12, + exp_year: year_valid, + cvc: '314', + }, + }) + end + let(:payment_intent) do + Stripe::PaymentIntent.create({ + amount: 100, + currency: 'eur', + payment_method: pm_card, + payment_method_types: ['card'], + capture_method: 'manual', + }) + end + it "raises Stripe error with payment intent last_payment_error as message" do + expect { + Stripe::PaymentIntent.confirm(payment_intent.id) + }.to raise_error Stripe::StripeError, error_message + end + end + end + context "invalid credit cards are correctly handled" do + it_behaves_like "payments intents", "Generic decline", 4_000_000_000_000_002, + "Your card was declined." + it_behaves_like "payments intents", "Insufficient funds decline", 4_000_000_000_009_995, + "Your card has insufficient funds." + it_behaves_like "payments intents", "Lost card decline", 4_000_000_000_009_987, + "Your card was declined." + it_behaves_like "payments intents", "Stolen card decline", 4_000_000_000_009_979, + "Your card was declined." + it_behaves_like "payments intents", "Expired card decline", 4_000_000_000_000_069, + "Your card has expired." + it_behaves_like "payments intents", "Incorrect CVC decline", 4_000_000_000_000_127, + "Your card's security code is incorrect." + it_behaves_like "payments intents", "Processing error decline", 4_000_000_000_000_119, + "An error occurred while processing your card. Try again in a little bit." + it_behaves_like "payments intents", "Exceeding velocity limit decline", + 4_000_000_000_006_975, + %(Your card was declined for making repeated attempts too frequently + or exceeding its amount limit.).squish + end end end - context "when payment intent is invalid" do - shared_examples "payments intents" do |card_type, card_number, error_message| - context "from #{card_type}" do - let!(:pm_card) do - Stripe::PaymentMethod.create({ - type: 'card', - card: { - number: card_number, - exp_month: 12, - exp_year: year_valid, - cvc: '314', - }, - }) - end - let(:payment_intent) do - Stripe::PaymentIntent.create({ - amount: 100, - currency: 'eur', - payment_method: pm_card, - payment_method_types: ['card'], - capture_method: 'manual', - }) - end - it "raises Stripe error with payment intent last_payment_error as message" do - expect { + + describe "as a Stripe customer" do + context "when payment intent is valid" do + let(:payment_method_id) { pm_card.id } + let(:customer_id) { customer.id } + let!(:user) { create(:user, email: "apple.customer@example.com") } + let(:credit_card) { create(:credit_card, gateway_payment_profile_id: pm_card.id, user:) } + let(:customer) do + Stripe::Customer.create({ + name: 'Apple Customer', + email: 'applecustomer@example.com', + }) + end + + shared_examples "payments intents" do |card_type, card_number| + context "from #{card_type}" do + let!(:pm_card) do + Stripe::PaymentMethod.create({ + type: 'card', + card: { + number: card_number, + exp_month: 12, + exp_year: year_valid, + cvc: '314', + }, + }) + end + let!(:payment_intent) do + Stripe::PaymentIntent.create({ + amount: 100, + currency: 'eur', + payment_method: pm_card, + payment_method_types: ['card'], + capture_method: 'manual', + customer: customer.id, + setup_future_usage: "off_session" + }) + end + let(:payment_intent_response_body) { + [id: payment_intent.id, status: payment_intent.status] + } + + before do + credit_card.update_attribute :gateway_customer_profile_id, customer_id Stripe::PaymentIntent.confirm(payment_intent.id) - }.to raise_error Stripe::StripeError, error_message + end + it "returns payment intent id and does not raise" do + expect { + result = validator.call + expect(result).to eq payment_intent_response_body + }.not_to raise_error Stripe::StripeError + end + + it "captures the payment" do + expect(Stripe::PaymentIntent.retrieve( + payment_intent.id + ).status).to eq("requires_capture") + + Stripe::PaymentIntent.capture(payment_intent.id) + + expect(Stripe::PaymentIntent.retrieve( + payment_intent.id + ).status).to eq("succeeded") + end end end + + context "valid non-3D credit cards are correctly handled" do + it_behaves_like "payments intents", "Visa", 4_242_424_242_424_242 + it_behaves_like "payments intents", "Visa (debit)", 4_000_056_655_665_556 + it_behaves_like "payments intents", "Mastercard", 5_555_555_555_554_444 + it_behaves_like "payments intents", "Mastercard (2-series)", 2_223_003_122_003_222 + it_behaves_like "payments intents", "Mastercard (debit)", 5_200_828_282_828_210 + it_behaves_like "payments intents", "Mastercard (prepaid)", 5_105_105_105_105_100 + it_behaves_like "payments intents", "American Express", 378_282_246_310_005 + it_behaves_like "payments intents", "American Express", 371_449_635_398_431 + it_behaves_like "payments intents", "Discover", 6_011_111_111_111_117 + it_behaves_like "payments intents", "Discover", 6_011_000_990_139_424 + it_behaves_like "payments intents", "Discover (debit)", 6_011_981_111_111_113 + it_behaves_like "payments intents", "Diners Club", 3_056_930_009_020_004 + it_behaves_like "payments intents", "Diners Club (14-digit card)", 36_227_206_271_667 + it_behaves_like "payments intents", "BCcard and DinaCard", 6_555_900_000_604_105 + it_behaves_like "payments intents", "JCB", 3_566_002_020_360_505 + it_behaves_like "payments intents", "UnionPay", 6_200_000_000_000_005 + it_behaves_like "payments intents", "UnionPay (19-digit card)", 6_205_500_000_000_000_004 + end + + xcontext "valid 3D cards are correctly handled" do + pending("updating spec to handle 3D2S cards") + it_behaves_like "payments intents", "UnionPay (debit)", 6_200_000_000_000_047 + end end - context "invalid credit cards are correctly handled" do - it_behaves_like "payments intents", "Generic decline", 4_000_000_000_000_002, - "Your card was declined." - it_behaves_like "payments intents", "Insufficient funds decline", 4_000_000_000_009_995, - "Your card has insufficient funds." - it_behaves_like "payments intents", "Lost card decline", 4_000_000_000_009_987, - "Your card was declined." - it_behaves_like "payments intents", "Stolen card decline", 4_000_000_000_009_979, - "Your card was declined." - it_behaves_like "payments intents", "Expired card decline", 4_000_000_000_000_069, - "Your card has expired." - it_behaves_like "payments intents", "Incorrect CVC decline", 4_000_000_000_000_127, - "Your card's security code is incorrect." - it_behaves_like "payments intents", "Processing error decline", 4_000_000_000_000_119, - "An error occurred while processing your card. Try again in a little bit." - it_behaves_like "payments intents", "Exceeding velocity limit decline", - 4_000_000_000_006_975, - %(Your card was declined for making repeated attempts too frequently - or exceeding its amount limit.).squish + context "when payment intent is invalid" do + let(:payment_method_id) { pm_card.id } + let(:customer_id) { customer.id } + let!(:user) { create(:user, email: "apple.customer@example.com") } + let(:credit_card) { create(:credit_card, gateway_payment_profile_id: pm_card.id, user:) } + let(:customer) do + Stripe::Customer.create({ + name: 'Apple Customer', + email: 'applecustomer@example.com', + }) + end + + shared_examples "payments intents" do |card_type, card_number, error_message| + context "from #{card_type}" do + let!(:pm_card) do + Stripe::PaymentMethod.create({ + type: 'card', + card: { + number: card_number, + exp_month: 12, + exp_year: year_valid, + cvc: '314', + }, + }) + end + let(:payment_intent) do + Stripe::PaymentIntent.create({ + amount: 100, + currency: 'eur', + payment_method: pm_card, + payment_method_types: ['card'], + capture_method: 'manual', + customer: customer.id, + setup_future_usage: "off_session" + }) + end + it "raises Stripe error with payment intent last_payment_error as message" do + expect { + Stripe::PaymentIntent.confirm(payment_intent.id) + }.to raise_error Stripe::StripeError, error_message + end + end + end + context "invalid credit cards are correctly handled" do + it_behaves_like "payments intents", "Generic decline", 4_000_000_000_000_002, + "Your card was declined." + it_behaves_like "payments intents", "Insufficient funds decline", 4_000_000_000_009_995, + "Your card has insufficient funds." + it_behaves_like "payments intents", "Lost card decline", 4_000_000_000_009_987, + "Your card was declined." + it_behaves_like "payments intents", "Stolen card decline", 4_000_000_000_009_979, + "Your card was declined." + it_behaves_like "payments intents", "Expired card decline", 4_000_000_000_000_069, + "Your card has expired." + it_behaves_like "payments intents", "Incorrect CVC decline", 4_000_000_000_000_127, + "Your card's security code is incorrect." + it_behaves_like "payments intents", "Processing error decline", 4_000_000_000_000_119, + "An error occurred while processing your card. Try again in a little bit." + it_behaves_like "payments intents", "Exceeding velocity limit decline", + 4_000_000_000_006_975, + %(Your card was declined for making repeated attempts too frequently + or exceeding its amount limit.).squish + end end end end