Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
216 commits
Select commit Hold shift + click to select a range
1945a43
Remove unnecessary check on customer's currency
coorasse Mar 18, 2020
e0b4d53
support on price api
hidenba Jun 25, 2020
e007c08
Adds some basic call/response mocking of refunds for payment intents
Jun 29, 2020
1120c22
A succeeded PaymentIntent gets a persistent Charge
dadadadave Jul 28, 2020
5cdbf6f
Fix ruby 2.7 deprecation warnings
Oct 1, 2020
35efc5e
[Data] Add receipt_url to charge and refund mock data
Oct 4, 2020
1841093
Add allowed params to subscriptions
dominikdarnel Nov 27, 2020
7fb60fe
Update subscription helper for prices
jamesprior Dec 11, 2020
43b6930
Try adding specs for subscriptions and prices
jamesprior Dec 11, 2020
fa7dce9
List prices by lookup key
jamesprior Dec 11, 2020
2bb93e4
Missing param to validate
jamesprior Dec 11, 2020
4f232c3
Compact plan ids before validating
jamesprior Dec 11, 2020
41841c6
Subscription items keep price info under :plan
jamesprior Dec 14, 2020
45d6541
Better quantity and subscription item id support
jamesprior Dec 14, 2020
7b8eb76
Adds stripe_account header namespace for customers
csalvato Aug 15, 2020
b5921ac
Merge branch 'master' into create-price
jamesprior Jan 12, 2021
a8997c7
Merge pull request #747 from coding-chimp/ruby-2.7
csalvato Feb 18, 2021
0a8870c
Merge pull request #762 from csalvato/support-connect-3
csalvato Feb 18, 2021
bc53213
Merge pull request #758 from jamesprior/create-price
csalvato Feb 18, 2021
fb9793c
Adds more info to changelog.
csalvato Feb 18, 2021
b3dcaed
Fixes erroneous error message.
csalvato Feb 18, 2021
14896d9
Merge pull request #764 from stripe-ruby-mock/fix-erroneous-error-mes…
csalvato Feb 18, 2021
b6c72f0
Properly set the status of a trialing subscription
csalvato Feb 18, 2021
5b2242f
Support trialing when creating subscriptions.
csalvato Feb 18, 2021
86f7a1c
Merge pull request #765 from stripe-ruby-mock/allow-trialing
csalvato Feb 18, 2021
b72c37a
Merge pull request #755 from dominikdarnel/patch-1
csalvato Feb 18, 2021
0287d57
Merge pull request #709 from renuo/feature/remove_currency_check
csalvato Feb 18, 2021
48863ae
Update changelog.
csalvato Feb 18, 2021
f0833d7
Update changelog
csalvato Feb 18, 2021
3f87798
Update version number
csalvato Feb 18, 2021
3bce707
Merge pull request #766 from stripe-ruby-mock/3.1.0
csalvato Feb 18, 2021
f3f061f
Fix version number
csalvato Feb 18, 2021
e35fa52
do not return default currency for customer
bettysteger Feb 18, 2021
e274243
fix undefined method `detect' for nil:NilClass
bettysteger Feb 18, 2021
ff9f7a1
set default currency test to pending
bettysteger Feb 19, 2021
3429ee5
fix tests
bettysteger Feb 21, 2021
c11a9ec
Proper intervals for Prices
b-raines Mar 1, 2021
11d1160
Merge pull request #767 from lpsBetty/master
csalvato Mar 3, 2021
f291ba4
Bump to 3.1.0.rc2
csalvato Mar 3, 2021
f84d9b5
Add balance transaction when creating transfer
ngyv Apr 19, 2021
bd682c4
Fixes Subscription billing_cycle_anchor attribute to return a timesta…
fabianoarruda May 3, 2021
fc6f981
Create dependabot.yml
fabianoarruda May 3, 2021
c9d6f38
Allows filtering prices by currency and product
ingoncalves May 27, 2021
7eb1cc9
Add support for discount IDs
lukeasrodgers Jun 17, 2021
0095865
Pass `**kwargs` through to `mock_request` in `StripeMock::Server`
TastyPi Jul 13, 2021
465e31f
Merge pull request #784 from TastyPi/kwargs
TastyPi Jul 14, 2021
4e1759d
Stop requiring `type` to be set for `Stripe::Product`
TastyPi Jul 13, 2021
953303e
Support expanding `setup_intent` in `Stripe::Checkout::Session`
TastyPi Jul 12, 2021
7e620d5
Update changelog bump version to 3.1.0.rc3
TastyPi Jul 14, 2021
20905e6
Set `price` in `SubscriptionItem` if provided
TastyPi Jul 16, 2021
668909c
Improve the `Checkout::Session` API
TastyPi Jul 26, 2021
805779e
Merge pull request #786 from stripe-ruby-mock/checkout-session-revamp
TastyPi Jul 28, 2021
b459137
Add support for finalising Checkout Sessions
TastyPi Jul 30, 2021
9edc9e5
Support filtering subscriptions be status
TastyPi Aug 2, 2021
71ae9b8
Support expanding `payment_method` in SetupIntent
TastyPi Aug 5, 2021
966d172
Merge pull request #732 from hammerdr/add-payment-intent-refund
TastyPi Aug 9, 2021
7c6b339
Properly set `Stripe::Checkout::Session` URLs
TastyPi Aug 16, 2021
08aba09
Create a webhook fixture for `checkout.session.completed` with `"mode…
TastyPi Aug 17, 2021
a87f66f
Create a webhook fixture for `checkout.session.completed` with `"mode…
TastyPi Aug 17, 2021
59608a2
Add `Stripe::Checkout::Session.list` support
TastyPi Aug 18, 2021
8007b39
Set `Stripe::Checkout::Session.metadata`
TastyPi Aug 18, 2021
1a65368
Set `Stripe::Checkout::Session.customer_email`
TastyPi Aug 18, 2021
10cf8a0
Initialize `Subscription.billing_cycle_anchor`
TastyPi Aug 19, 2021
ff8be4f
Merge pull request #768 from b-raines/master
TastyPi Aug 23, 2021
7bc99f1
Add support for `product_data` with `Stripe::Price.create`
TastyPi Aug 23, 2021
6c74b1a
Add tests for `Subscription.current_period_end`
TastyPi Aug 23, 2021
7dad790
Add a `payment_intent.processing` event
TastyPi Sep 9, 2021
a3bd40a
Allow configuring the base URL for Checkout
TastyPi Sep 16, 2021
975152d
Change to
mpmenne Sep 28, 2021
e0f5177
Merge pull request #792 from mpmenne/fix-require-params-issue
TastyPi Sep 28, 2021
4a796fa
Merge branch 'stripe-ruby-mock:master' into master
fabianoarruda Sep 29, 2021
c3d303d
Adds proration_behavior and backdate_start_date attributes to Subscri…
fabianoarruda Sep 29, 2021
cfe51c6
Use `deep_merge` in `mock_payment_method` so that payment method deta…
TastyPi Oct 6, 2021
b954c59
Improve `PaymentMethod` handling
TastyPi Oct 27, 2021
7b139b6
Allow events to be filtered by created
adamstegman Nov 2, 2021
7721ed2
Use select instead of select!
adamstegman Nov 3, 2021
b0ee38d
Merge pull request #799 from adamstegman/list-events
TastyPi Nov 3, 2021
bf46f3d
Merge branch 'stripe-ruby-mock:master' into master
fabianoarruda Nov 19, 2021
5d48c74
Removes file added by mistake
fabianoarruda Nov 19, 2021
b1e8dc2
set incomplete status when subscription payment_behavior is default_i…
Nov 21, 2021
a8e5376
Merge pull request #801 from NerdyBoyCool/feature/set-incomplete-status
TastyPi Nov 22, 2021
f2944e8
Expand subscription latest_invoice.payment_intent
lukel97 Jul 28, 2021
d0057f0
Handle different types of subscription statuses
lukel97 Nov 24, 2021
aefc082
Merge pull request #787 from bubba/subscription-expand-latest-invoice
TastyPi Nov 25, 2021
73430a8
Add basic `Subscription.transfer_data` support
TastyPi Dec 7, 2021
db74ffd
Merge remote-tracking branch 'upstream/master'
fabianoarruda Dec 8, 2021
be37bc1
Test added
fabianoarruda Dec 9, 2021
4fae19d
Merge pull request #800 from fabianoarruda/master
TastyPi Dec 10, 2021
1f8362e
Add `payment_intent.canceled` fixture
TastyPi Dec 14, 2021
67a2d2a
Improve checkout_session
westonganger Dec 16, 2021
462891f
Merge pull request #806 from westonganger/patch-1
TastyPi Dec 21, 2021
2879016
Add automatic_tax to allowed subscription params
laurenfackler Dec 29, 2021
bb83f45
Changes a #first call with a block to #find
nikz Dec 30, 2021
a45882e
Merge pull request #809 from nikz/first-vs-find-fix
TastyPi Jan 1, 2022
c8f388b
Replace File.exists? with File.exist?
TastyPi Jan 4, 2022
ed45ca0
Merge pull request #808 from laurenfackler/master
TastyPi Jan 4, 2022
9439564
Create SetupIntent with another status is payment method is provided
rtrv Jan 6, 2022
8d68c77
fix: use start_with? instead of starts_with?
augustoccesar Jan 10, 2022
21601d3
Merge pull request #812 from augustoccesar/bugfix/fix-test-usage-of-s…
TastyPi Jan 10, 2022
c95391f
Add webhook fixtures for `invoice.upcoming` event
pmor Jan 28, 2022
2dc59f0
Subscriptions: Rename start by start_date
Intrepidd Jan 28, 2022
641a9dc
Merge pull request #815 from pmor/add_invoice.upcoming_webhook_fixture
TastyPi Jan 28, 2022
3a14a8b
Add `mandate.updated` fixture
TastyPi Feb 1, 2022
9c5e875
Added delete account support.
Cameron2920 Feb 3, 2022
824da36
Allow user to pass in a customer ID on create
rbclark Mar 22, 2022
77aa34a
Update all webhook fixtures with the latest version from the Stripe API
rbclark Mar 26, 2022
7f520c8
Include charge payment_method_details.
istro-omg Apr 28, 2022
083cccd
Merge pull request #826 from istro-omg/add-charge-payment-method-details
TastyPi May 3, 2022
6687d62
Support metadata on subscription items
adamstegman May 4, 2022
162b0d5
Merge pull request #828 from adamstegman/subscription-item-metadata
TastyPi May 5, 2022
cecc0a2
Handle payment_method_details in charge update
adamstegman May 5, 2022
6991503
Merge pull request #829 from adamstegman/charge-update-payment_method…
TastyPi May 6, 2022
b811935
Implement search API
adamstegman May 9, 2022
2a3b016
Merge pull request #816 from Intrepidd/start_date
TastyPi May 13, 2022
1112543
PaymentIntent charges include payment_method
tekin Dec 15, 2020
2222ace
Merge pull request #760 from tekin/include-payment-methods-on-charges
TastyPi May 17, 2022
ef0502c
Account: replaces deprecated `verification` hash by `requirements`
fabianoarruda Jun 4, 2022
af256ac
Merge pull request #825 from rbclark/updateAllWebhookFixtures
TastyPi Jun 24, 2022
6ceea96
Merge pull request #748 from Huibin/add-receipt_url-to-charge-and-refund
TastyPi Jun 24, 2022
1d76c10
Allow subscription filter on current_period values
louim Aug 26, 2022
ffbbf96
Support invoice number
lukeasrodgers Sep 22, 2022
b35555f
Add PromotionCode resource
gciampa Oct 19, 2022
bd20b2b
Allow promotion code parameter when creating a subscription
gciampa Oct 19, 2022
803419d
Updated gem to use Stripe gem v7. And, fixed rspecs.
smakani Nov 9, 2022
4d267ac
Updated Stripe gem reference to 7.1.0
smakani Nov 9, 2022
a414aa9
Final changes
smakani Nov 15, 2022
598e4f1
adds check for refund amount and test demonstrating behavior
jakebills1 Feb 28, 2023
876a656
Promotion code is not available on subscription
gciampa Mar 5, 2023
8151b32
use progress formatting
smtlaissezfaire Mar 11, 2023
3cc8017
fix the test suite
smtlaissezfaire Mar 11, 2023
404df10
add note (maybe this belongs in the wiki?)
smtlaissezfaire Mar 11, 2023
ca7b234
remove puts
smtlaissezfaire Mar 12, 2023
23c7f10
implement webhook: "payment_method.detached"
smtlaissezfaire Mar 12, 2023
ac9d788
add us_bank_account support to stripe mock
smtlaissezfaire Mar 11, 2023
8387548
Merge pull request #823 from rbclark/rbclark-allow-id-param
gregmolnar Apr 2, 2023
69d2303
change invoice status to paid when paid = true
smtlaissezfaire Apr 10, 2023
e2328d8
Merge pull request #871 from smtlaissezfaire/change_invoice_status_wh…
gregmolnar Apr 24, 2023
3c7a5db
Merge pull request #861 from smtlaissezfaire/fix_test_suite
gregmolnar Apr 24, 2023
763d028
add payment_settings trial_settings to subscription allowed_params
Jul 27, 2023
b8b211c
Merge pull request #880 from timbroder/update-subscription-allowed-pa…
TastyPi Jul 31, 2023
7c2edf8
Merge branch 'master' into promotion-codes
gciampa Oct 9, 2023
2337a11
Fix typo in account.updated webhook fixture
SebRollen Oct 10, 2023
49812a3
Init Github Actions and remove Travis (#886)
alexmamonchik Oct 14, 2023
9510365
Merge pull request #885 from SebRollen/patch-1
alexmamonchik Oct 17, 2023
f321fdb
Merge pull request #863 from smtlaissezfaire/payment_method_detached_…
alexmamonchik Oct 24, 2023
6db7a8b
Merge pull request #860 from jakebills1/add-refund-error
alexmamonchik Oct 24, 2023
b6c6e0c
Revert "Adds error when attempting to refund a charge that has alread…
alexmamonchik Oct 24, 2023
ef359cd
Merge pull request #888 from stripe-ruby-mock/revert-860-add-refund-e…
alexmamonchik Oct 24, 2023
4ebca49
Merge pull request #845 from gciampa/promotion-codes
alexmamonchik Oct 24, 2023
f2bfb3d
Merge pull request #844 from alice-financial/invoice-number
alexmamonchik Oct 24, 2023
bd095ab
Merge pull request #840 from hooktstudios/improvement/subscription-fi…
alexmamonchik Oct 24, 2023
3ac4c02
Merge pull request #817 from Cameron2920/master
alexmamonchik Oct 24, 2023
23b73d5
Merge pull request #810 from rtrv/improve-setup-intent-status
alexmamonchik Oct 24, 2023
247f864
Merge pull request #779 from alice-financial/discount-ids-upstream
alexmamonchik Oct 24, 2023
b5d3be7
Merge pull request #777 from ingoncalves/adds-price-filters
alexmamonchik Oct 24, 2023
a3a8f9c
Merge pull request #772 from ngyv/add-balance-transaction-when-creati…
alexmamonchik Oct 24, 2023
dff89d6
Merge branch 'master' into persist-charge-for-successful-payment-intent
alexmamonchik Nov 1, 2023
1779149
Merge pull request #735 from dadadadave/persist-charge-for-successful…
alexmamonchik Nov 1, 2023
5a5d854
Added webhooks for tax_rate.updated and tax_rate.created
lesliepoolman Nov 23, 2023
32b1ded
Merge pull request #890 from lesliepoolman/implement_tax_rate_webhooks
alexmamonchik Nov 23, 2023
0573dd9
Merge branch 'master' into verification-replaced-by-requirements
fabianoarruda Nov 26, 2023
b05c1b2
Adds support for stripe-ruby v10
fabianoarruda Nov 26, 2023
c1b537e
3.1.0
alexmamonchik Jan 2, 2024
2f0fbb8
Fixes compatibility with new param introduced in v10.3
fabianoarruda Jan 9, 2024
d3a6d39
Upgrade rspec to v3.12
fabianoarruda Jan 10, 2024
1c616c1
Adds optional `usage` introduced with stripe ruby v10.3
fabianoarruda Jan 10, 2024
844108e
Updated gems
alexmamonchik Feb 10, 2024
8c4bd51
Added ruby 3.2 to Github Actions
alexmamonchik Feb 10, 2024
c38f5b5
Merge branch 'init-v4' into search
alexmamonchik Feb 10, 2024
8034047
Merge pull request #830 from adamstegman/search
alexmamonchik Feb 10, 2024
1d08c8c
Update README.md
smakani Feb 10, 2024
415bbea
Merge branch 'init-v4' into master
smakani Feb 10, 2024
ab53d99
Updated Stripe version referenced in gemspec
smakani Feb 10, 2024
1714394
Merge pull request #848 from smakani/master
alexmamonchik Feb 10, 2024
d693f43
Revert "Upgrade rspec to v3.12"
fabianoarruda Nov 26, 2023
4f63f7d
Merge branch 'init-v4' into commits-from-fabio
alexmamonchik Feb 10, 2024
99d7430
Merge pull request #898 from stripe-ruby-mock/commits-from-fabio
alexmamonchik Feb 10, 2024
f67afb9
Added merged PRs to changelog
alexmamonchik Feb 10, 2024
84c8a50
Removed Subscription.delet in one test
alexmamonchik Feb 10, 2024
15aff10
Add has_more to Subscription.items data
stevenharman Apr 10, 2024
cbf5121
Allow Stripe SDK v11
stevenharman Apr 19, 2024
fa32d99
* fix calls to use raise instead of throw
smtlaissezfaire May 20, 2024
c61ca33
Add update_payout
espen Jun 17, 2024
928156c
Merge pull request #905 from docsend/allow_stripe_11
alexmamonchik Aug 6, 2024
f0ec4ef
Merge pull request #897 from stripe-ruby-mock/init-v4
alexmamonchik Aug 6, 2024
7cad313
Release v4.0.0
Aug 6, 2024
4355155
Merge pull request #908 from espen/payout_update
alexmamonchik Aug 6, 2024
dd5aff9
Merge pull request #907 from smtlaissezfaire/fix-throw-error
alexmamonchik Aug 6, 2024
834e172
Merge pull request #862 from smtlaissezfaire/add-us-bank-accounts
alexmamonchik Aug 6, 2024
1a72e01
same id handling as other tests
espen Aug 12, 2024
c5bde32
amount as integers as other tests. handle negativ integers. include t…
espen Aug 12, 2024
3c6b95c
PI charges object is deprecated
espen Aug 12, 2024
14b92a3
Merge pull request #916 from espen/payout_create
alexmamonchik Aug 14, 2024
ba6b6e8
Merge pull request #917 from espen/latest_charge
alexmamonchik Oct 24, 2024
c2cc641
Some updates around subscriptions (#843)
donnguyen Nov 13, 2024
124835f
Merge pull request #904 from docsend/add_subscription_items_has_more
alexmamonchik Nov 13, 2024
7909de6
Add `require` option to require additional file
stevenharman Apr 10, 2024
e25b19d
Merge pull request #903 from docsend/load_extra_files_on_server_start
alexmamonchik Nov 15, 2024
e873129
Merge pull request #835 from fabianoarruda/verification-replaced-by-r…
alexmamonchik Dec 10, 2024
3047df8
Add tax ID endpoints and data
lfittl Feb 18, 2025
dd3da2f
Merge pull request #928 from pganalyze/add-tax-id-support
alexmamonchik Feb 19, 2025
e3214e9
Fix github actions and add missing product attributes (#925)
bettysteger Feb 19, 2025
3881ce9
Actions uses only supported ruby versions (#929)
alexmamonchik Feb 20, 2025
fe10a45
remove :cancel_url from required params (#927)
shu-illy Apr 15, 2025
85af4c1
Adds DRB as a dependency in preparation (#920)
lucascppessoa Apr 15, 2025
576ee95
Release v4.1.0
alexmamonchik Apr 23, 2025
3dba91d
Support Stripe version 13 (#931)
gabrieltaylor Apr 25, 2025
61246b5
Forced run bundle exec in Github Actions (#935)
alexmamonchik Apr 25, 2025
fb7a743
Add capabilities to mock account data (#919)
cazwazacz Apr 26, 2025
ef2d453
Release 5.0.0
alexmamonchik Apr 26, 2025
de626e8
Add support for setting pause_collection (#936)
balvig May 7, 2025
37e76a2
Add support for setting cancellation_details (#937)
balvig May 29, 2025
c495f58
Add missing schedule field to subscription object (#939)
balvig Jun 27, 2025
25e194e
Add Invoice.create_preview endpoint with tests (#947)
strawhatduckk Oct 16, 2025
674a7de
Add `lib/stripe-ruby-mock.rb` for `Bundler.require` (#949)
r7kamura Nov 5, 2025
5e9ecf2
Add case-insenstive code filter to PromotionCode list handler (#946)
tnijssen Nov 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/rspec_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

name: Tests

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ["3.1", "3.2", "3.3"]
gemfile: ["stripe_12", "stripe_13"]
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rspec
3 changes: 2 additions & 1 deletion .rspec
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
--colour --format documentation
--colour
--format progress
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

7 changes: 7 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
appraise "stripe-13" do
gem "stripe", "13.4.0"
end

appraise "stripe-12" do
gem "stripe", "12.6.0"
end
106 changes: 90 additions & 16 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,97 @@
### 3.0.2 (Next)
### Unreleased

* Your contribution here.
* [#715](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/715): Added application_fee_amount to mock charge object - [@espen](https://github.com/espen)
### 5.0.0
- [#919](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/919) Add capabilities to mock account data [@cazwazacz](https://github.com/cazwazacz)
- [#931](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/931) Support Stripe version 13 + 12 [@gabrieltaylor](https://github.com/gabrieltaylor)

### 4.1.0 (2025-04-24)
- [#920](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/920) Adds DRB as a dependency in preparation to Ruby 3.4.0 [@lucascppessoa](https://github.com/lucascppessoa)
- [#927](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/927) Allow :cancel_url nil in create Checkout Session [@shu-illy](https://github.com/shu-illy)
- [#929](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/929) Actions uses only supported ruby versions [@alexmamonchik](https://github.com/alexmamonchik)
- [#925](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/925) Fix github actions and add missing product attributes [@bettysteger](https://github.com/bettysteger)
- [#928](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/928) Add tax ID endpoints and data [@lfittl](https://github.com/lfittl)
- [#835](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/835) Account: replace deprecated verification hash by requirements [@fabianoarruda](https://github.com/fabianoarruda)
- [#903](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/903) Add require option to require additional file [@stevenharman](https://github.com/stevenharman)
- [#904](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/904) Add has_more to Subscription.items data [@stevenharman](https://github.com/stevenharman)
- [#843](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/843) Some updates around subscriptions [@donnguyen](https://github.com/donnguyen)
- [#917](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/917) Removed charges on PI and added latest_charge [@espen](https://github.com/espen)
- [#916](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/916) Better tests for payout [@espen](https://github.com/espen)
- [#862](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/862) Add simple support for us bank accounts [@smtlaissezfaire](https://github.com/smtlaissezfaire)
- [#907](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/907) Fix calls to use raise instead of throw [@smtlaissezfaire](https://github.com/smtlaissezfaire)
- [#908](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/908) Add update_payout [@espen](https://github.com/espen)

### 4.0.0 (2024-08-07)
- [#905](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/905) Allow Stripe SDK v11 by [@stevenharman ](https://github.com/stevenharman)
- [#830](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/830) Implement search API by [@adamstegman](https://github.com/adamstegman)
- [#848](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/848) Extending runtime dependency on Stripe gem from version 5 through 11 by [@smakani](https://github.com/smakani)
- [#893](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/893) Adds support for stripe-ruby v10 by [@fabianoarruda](https://github.com/fabianoarruda)


### 3.1.0 (2024-01-03)
- [#693](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/693) gemspec: add change,issue,source_code URL by [@mtmail](https://github.com/mtmail)
- [#700](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/700) update the balance API to respond with instant_available by [@iamnader](https://github.com/iamnader)
- [#687](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/687) Add PaymentIntent Webhooks by [@klaustopher](https://github.com/klaustopher)
- [#708](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/708) Implement Stripe::Checkout::Session.retrieve by [@coorasse](https://github.com/coorasse)
- [#711](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/711) Adding account link mock by [@amenon](https://github.com/amenon)
- [#715](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/715) Added application_fee_amount to mock charge object by [@espen](https://github.com/espen)
- [#694](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/694) Introduce ideal and sepa_debit types for PaymentMethod by [@mnin](https://github.com/mnin)
- [#720](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/720) Add additional parameters by [@rpietraszko](https://github.com/rpietraszko)
- [#695](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/695) Add `has_more` attribute to all ListObject instances by [@gbp](https://github.com/gbp)
- [#727](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/727) Fix List initialize error with deleted records by [@jmulieri](https://github.com/jmulieri)
- [#739](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/739) Add data to account links by [@dudyn5ky1](https://github.com/dudyn5ky1)
- [#756](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/756) Added #715 PR to changelog by [@espen](https://github.com/espen)
- [#759](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/759) Adding express dashboard login link mock by [@rohitbegani](https://github.com/rohitbegani)
- [#747](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/747) Fix ruby 2.7 deprecation warnings by [@coding-chimp](https://github.com/coding-chimp)
- [#762](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/762) Support Stripe Connect by adding stripe_account header namespace for customers by [@csalvato](https://github.com/csalvato)
- [#758](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/758) Create price by [@jamesprior](https://github.com/jamesprior)
- [#730](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/730) support on price api by [@hidenba](https://github.com/hidenba)
- [#764](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/764) Fixes erroneous error message when fetching upcoming invoices. by [@csalvato](https://github.com/csalvato)
- [#765](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/765) Properly set the status of a trialing subscription by [@csalvato](https://github.com/csalvato)
- [#755](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/755) Add allowed params to subscriptions by [@dominikdarnel](https://github.com/dominikdarnel)
- [#709](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/709) Remove unnecessary check on customer's currency by [@coorasse](https://github.com/coorasse)

- [#806](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/806) - Remove `payment_method_types` from required arguments for `Stripe::Checkout::Session`
- [#806](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/806) - Raise more helpful exception when Stripe::Price cannot be found within a `Stripe::Checkout::Session` `line_items` argument.


### 3.1.0.rc3 (pre-release 2021-07-14)

- [#785](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/785): `Stripe::Product` no longer requires `type`. [@TastyPi](https://github.com/TastyPi)
- [#784](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/784): Fix "Wrong number of arguments" error in tests. [@TastyPi](https://github.com/TastyPi)
- [#782](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/782): Support expanding `setup_intent` in `Stripe::Checkout::Session`. [@TastyPi](https://github.com/TastyPi)

### 3.1.0.rc2 (pre-release 2021-03-03)

- [#767](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/767): Fixes tests and more [@lpsBetty](https://github.com/lpsBetty)

### 3.1.0.rc1 (pre-release 2021-02-17)

- [#765](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/765): Properly set the status of a trialing subscription. [@csalvato](https://github.com/csalvato)
- [#764](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/764): Fixes erroneous error message when fetching upcoming invoices. [@csalvato](https://github.com/csalvato)
- [#762](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/762): Support Stripe Connect with Customers by adding stripe_account header namespace for customer object [@csalvato](https://github.com/csalvato)
- [#755](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/755): Add allowed params to subscriptions [@dominikdarnel ](https://github.com/dominikdarnel)
- [#748](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/758): Support Prices - [@hidenba](https://github.com/hidenba) and [@jamesprior](https://github.com/jamesprior).
- [#747](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/747/files): Fix ruby 2.7 deprecation warnings. Adds Ruby 3.0.0 compatibility. [@coding-chimp](https://github.com/coding-chimp)
- [#715](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/715): Added application_fee_amount to mock charge object - [@espen](https://github.com/espen)
- [#709](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/709): Remove unnecessary check on customer's currency - [@coorasse](https://github.com/coorasse)

### 3.0.1 (TBD)
* Added Changelog file
* [#640](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/640): Support Payment Intent status requires_capture - [@theodorton](https://github.com/theodorton).
* [#685](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/685): Adds support for pending_invoice_item_interval - [@joshcass](https://github.com/joshcass).
* [#682](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/682): Prevent customer metadata from being overwritten with each update - [@sethkrasnianski](https://github.com/sethkrasnianski).
* [#679](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/679): Fix for [#678](https://github.com/stripe-ruby-mock/stripe-ruby-mock/issues/678) Add active filter to Data::List - [@rnmp](https://github.com/rnmp).
* [#668](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/668): Fix for [#665](https://github.com/stripe-ruby-mock/stripe-ruby-mock/issues/665) Allow to remove discount from customer - [@mnin](https://github.com/mnin).
* [#667](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/667):
Remove empty and duplicated methods from payment methods - [@mnin](https://github.com/mnin).
* [#664](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/664): Bugfix: pass through PaymentIntent amount to mocked Charge - [@typeoneerror](https://github.com/typeoneerror).
* [#654](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/654): fix for [#626](https://github.com/stripe-ruby-mock/stripe-ruby-mock/issues/626) Added missing decline codes - [@iCreateJB](https://github.com/iCreateJB).
* [#648](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/648): Initial implementation of checkout session API - [@fauxparse](https://github.com/fauxparse).
* [#644](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/644): Allow payment_behavior attribute on subscription create - [@j15e](https://github.com/j15e).

- Added Changelog file
- [#640](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/640): Support Payment Intent status requires_capture - [@theodorton](https://github.com/theodorton).
- [#685](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/685): Adds support for pending_invoice_item_interval - [@joshcass](https://github.com/joshcass).
- [#682](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/682): Prevent customer metadata from being overwritten with each update - [@sethkrasnianski](https://github.com/sethkrasnianski).
- [#679](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/679): Fix for [#678](https://github.com/stripe-ruby-mock/stripe-ruby-mock/issues/678) Add active filter to Data::List - [@rnmp](https://github.com/rnmp).
- [#668](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/668): Fix for [#665](https://github.com/stripe-ruby-mock/stripe-ruby-mock/issues/665) Allow to remove discount from customer - [@mnin](https://github.com/mnin).
- [#667](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/667):
Remove empty and duplicated methods from payment methods - [@mnin](https://github.com/mnin).
- [#664](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/664): Bugfix: pass through PaymentIntent amount to mocked Charge - [@typeoneerror](https://github.com/typeoneerror).
- [#654](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/654): fix for [#626](https://github.com/stripe-ruby-mock/stripe-ruby-mock/issues/626) Added missing decline codes - [@iCreateJB](https://github.com/iCreateJB).
- [#648](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/648): Initial implementation of checkout session API - [@fauxparse](https://github.com/fauxparse).
- [#644](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/644): Allow payment_behavior attribute on subscription create - [@j15e](https://github.com/j15e).

### 3.0.0 (2019-12-17)

##### the main thing is:
- [#658](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/658) Make the gem compatible with Stripe Gem v.5

- [#658](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/658) Make the gem compatible with Stripe Gem v.5
8 changes: 3 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
source 'https://rubygems.org'

platforms :ruby_19 do
gem 'mime-types', '~> 2.6'
gem 'rest-client', '~> 1.8'
end

group :test do
gem 'rake'
gem 'dotenv'
end

gemspec

gem 'appraisal'
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# stripe-ruby-mock [![Build Status](https://travis-ci.org/stripe-ruby-mock/stripe-ruby-mock.png?branch=master)](https://travis-ci.org/stripe-ruby-mock/stripe-ruby-mock) [![Gitter chat](https://badges.gitter.im/rebelidealist/stripe-ruby-mock.png)](https://gitter.im/rebelidealist/stripe-ruby-mock)
# stripe-ruby-mock [![Tests](https://github.com/stripe-ruby-mock/stripe-ruby-mock/actions/workflows/rspec_tests.yml/badge.svg)](https://github.com/stripe-ruby-mock/stripe-ruby-mock/actions/workflows/rspec_tests.yml)

* Homepage: https://github.com/stripe-ruby-mock/stripe-ruby-mock
* Issues: https://github.com/stripe-ruby-mock/stripe-ruby-mock/issues
Expand All @@ -12,12 +12,14 @@ This gem has unexpectedly grown in popularity and I've gotten pretty busy, so I'

In your gemfile:

gem 'stripe-ruby-mock', '~> 3.0.1', :require => 'stripe_mock'
gem 'stripe-ruby-mock'

## !!! Important

We have [changelog](https://github.com/stripe-ruby-mock/stripe-ruby-mock/blob/master/CHANGELOG.md). It's first attempt. Feel free to update it and suggest to a new format of it.

version `5.0.0` has [breaking changes](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/931) - we support stripe > 5 and <= 13 for now and try to follow the newest API version.

version `3.0.0` has [breaking changes](https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/658) - we support stripe > 5 and < 6 for now and try to follow the newest API version. But if you still use older versions please [read](https://github.com/stripe-ruby-mock/stripe-ruby-mock#specifications).

## Features
Expand All @@ -29,12 +31,12 @@ version `3.0.0` has [breaking changes](https://github.com/stripe-ruby-mock/strip

### Requirements

* ruby >= 2.4.0
* stripe >= 5.0.0
* ruby >= 3.0.0
* stripe > 5 & <= 13

### Specifications

**STRIPE API TARGET VERSION:** 2019-08-20 (master) - we try, but some features are not implemented yet.
**STRIPE API TARGET VERSION:** 2024-06-20 (master) - we try, but some features are not implemented yet.

Older API version branches:

Expand Down Expand Up @@ -406,6 +408,12 @@ Patches are welcome and greatly appreciated! If you're contributing to fix a pro
be sure to write tests that illustrate the problem being fixed.
This will help ensure that the problem remains fixed in future updates.

Note: You may need to `ulimit -n 4048` before running the test suite to get all tests to pass.

### Dependency updates

When modifications are made to dependencies in addition to the changes to the Gemfile, Gemfile.lock and stripe-ruby-mock.gemspec you must also run `bundle exec appraisal update` to update the gemfiles specific to Stripe version 12 and Stripe version 13.

## Copyright

Copyright (c) 2013 Gilbert
Expand Down
1 change: 1 addition & 0 deletions bin/stripe-mock-server
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ opts = Trollop::options do
opt :server, "Server to use", :type => :string, :default => 'thin'
opt :debug, "Request and response output", :default => true
opt :pid_path, "Location to put server pid file", :type => :string, :default => './stripe-mock-server.pid'
opt :require, "Extra path to require when loading the server; can be specified multiple times", :type => :string, :multi => true
end

require 'stripe_mock'
Expand Down
2 changes: 2 additions & 0 deletions gemfiles/.bundle/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
BUNDLE_RETRY: "1"
13 changes: 13 additions & 0 deletions gemfiles/stripe_12.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal"
gem "stripe", "12.6.0"

group :test do
gem "rake"
gem "dotenv"
end

gemspec path: "../"
Loading