#wazi

1 messages ยท Page 1 of 1 (latest)

cunning foxBOT
near shard
#

Hi ๐Ÿ‘‹ can you elaborate a bit on what you're trying to accomplish?

We do have test cards available that can be used in test mode for testing the flow(s) you're building:
https://stripe.com/docs/testing

tiny forge
#

i'd like to run test transactions through the client. is this done through POST reqs?

near shard
#

When you say "client" are you referring to the Stripe CLI, or something else?

tiny forge
#

stripe CLI

near shard
#

Gotcha, so there are two approaches for using the CLI to test things. You can either use the GET/POST commands to interact with the API, or you can use the approach discussed in this Stripe resources section to use the CLI in a more abstracted mode:
https://stripe.com/docs/cli/resources

tiny forge
#

perfect thank you!

near shard
#

Any time!

tiny forge
#

in stripe JS, there is a method stripe.confirmCardPayment() what is the API endpoint it reaches out to? i dont know what URI i should POST to via stripe CLI

near shard
#

Hm, I'm not sure off-hand if the CLI supports making client-side requests, but if so I believe it would be to this endpoint:
https://stripe.com/docs/api/payment_intents/confirm

However, I believe that may do a server-side confirmation rather than client-side (based on the API key that is being used).