#dom_________

1 messages · Page 1 of 1 (latest)

dense bobcatBOT
karmic ferry
#

Hi there! The CLI uses files called "fixtures" to execute a sequence of API requests that ultimately result in triggering an event or set of events

#

You'll run stripe trigger payment_method.attached --edit, which should open the fixture file in your editor. Then, edit the path for payment_method_attach to use one of our test bank accounts. The new path would look like this:
"path": "/v1/payment_methods/pm_usBankAccount_success/attach"

#

When you close your editor, the trigger command will complete and you'll see the payment_method.attached event will include us_bank_account

dense bobcatBOT
neon sierra
tough stirrup
#

Hello! I'm taking over and catching up...

neon sierra
#

For sure, ty!

tough stirrup
#

Ah, okay, your default editor is probably set to vi or something with an unfamiliar interface. Let me find you some instructions...

#

You're likely in command mode.

neon sierra
#

Ty, fixed it : )))

tough stirrup
#

The other thing you can do is switch your default editor to something else with a less, ahem, convoluted interface. You would do that by changing your shell configuration.

neon sierra
#

Yea, I changed it to nano

tough stirrup
#

Ah, perfect. 🙂

neon sierra
#

Hmm, I close the editor and reopen the file and it seems to have gone from

/v1/payment_methods/pm_usBankAccount_success/attach to /v1/payment_methods/pm_card_visa/attach

#

I did save the file

tough stirrup
#

Hm, that's strange.