Skip to content

feat: add new endpoints, one for tax settings and one to list customer payment methods, fix CI, payment_intent.latest_charge#5

Merged
tferrerm merged 11 commits into
masterfrom
add-stripe-tax-and-customers-payment-methods-support
Nov 3, 2025
Merged

feat: add new endpoints, one for tax settings and one to list customer payment methods, fix CI, payment_intent.latest_charge#5
tferrerm merged 11 commits into
masterfrom
add-stripe-tax-and-customers-payment-methods-support

Conversation

@tferrerm
Copy link
Copy Markdown

@tferrerm tferrerm commented Aug 29, 2025

The main objective of this PR was to silence the warnings printed all over the tests:

[StripeMock] Warning : Unrecognized endpoint + method : [get /v1/tax/settings]
  • Add new endpoint for Stripe::Tax::Settings.retrieve
  • Add new endpoint for Stripe::Customer.list_payment_methods
  • Replace payment_intent.charges array with payment_intent.latest_charge just as Stripe did
  • Fix CI which was broken
  • Add dependency that might silence some warnings in Ruby 3.3 and beyond

Update: many of these changes have been included into Galina's last merging from upstream. CI is also broken in master branch and the same tests fail.

References:
stripe-ruby-mock#917
stripe-ruby-mock#920
stripe-ruby-mock#925
stripe-ruby-mock#929

Once merged, we should update the gem in all Gemfiles.

Comment thread spec/shared_stripe_examples/tax_settings_examples.rb Outdated
@tferrerm tferrerm marked this pull request as ready for review August 29, 2025 16:29
@tferrerm tferrerm requested a review from yoshka88 August 29, 2025 16:29
@tferrerm tferrerm changed the title feat: add new endpoints, one for tax settings and one to list customer payment methods feat: add new endpoints, one for tax settings and one to list customer payment methods, fix CI, payment_intent.latest_charge Aug 29, 2025
@tferrerm tferrerm self-assigned this Aug 29, 2025
Copy link
Copy Markdown

@yoshka88 yoshka88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somehow missed this PR in August.

✅ perfect addition to stripe mock, no objection codewise

@yoshka88
Copy link
Copy Markdown

Ah, yeah, I broke those tests for Checkout::Session. Will fix

@tferrerm
Copy link
Copy Markdown
Author

@yoshka88 feel free to merge this one!

@tferrerm tferrerm merged commit 792b449 into master Nov 3, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants