Last active
May 6, 2024 08:00
-
-
Save jessenovotny/8c8068a79312c3d6135efee3223c9bba to your computer and use it in GitHub Desktop.
Copy production stripe data to sandbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# connect to production | |
Stipe.api_key = production_key | |
plans = Stripe::Plan.all | |
# connect to sandbox | |
Stripe.api_key = test_key | |
plans.each do |plan| | |
Stripe::Plan.create(plan.attributes) | |
end |
Lol, such a small piece of code and then still a typo xD
Loos nice though
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FYI Line 2 has a typo
Stipe
->Stripe