Skip to content

Commit

Permalink
fix arg ordering + lowercase comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Creech committed Oct 15, 2024
1 parent 283975b commit 725be4e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ refunded=$(
| grep -oE '"amount_refunded": 1000,')
[ -n "$refunded" ]

# Create a payment intent on a bad card:
# create a payment intent on a bad card:
code=$(
curl -sg -u $SK: $HOST/v1/payment_intents -o /dev/null -w "%{http_code}" \
-d customer=$cus \
Expand All @@ -1149,13 +1149,13 @@ code=$(
-d currency=usd)
[ "$code" = 402 ]

# Once more with a delayed confirm:
# once more with a delayed confirm:
payment_intent=$(
curl -sSfg -u $SK: $HOST/v1/payment_intents \
-d customer=$cus \
-d payment_method=$bad_card \
-d amount=1000 \
-d confirm=false \
-d payment_method=$bad_card \
-d currency=usd \
| grep -oE 'pi_\w+' | head -n 1)

Expand All @@ -1165,9 +1165,9 @@ code=$(
-X POST -o /dev/null -w "%{http_code}")
[ "$code" = 402 ]

# Create a customer with card 4000000000000341 (that fails upon payment) and
# create a customer with card 4000000000000341 (that fails upon payment) and
# make sure creating the subscription doesn't fail (although it creates it with
# status 'incomplete'). This how Stripe behaves, see
# status 'incomplete'). this how Stripe behaves, see
# https://github.com/adrienverge/localstripe/pull/232#issuecomment-2400000513
cus=$(curl -sSfg -u $SK: $HOST/v1/customers \
-d [email protected] \
Expand Down

0 comments on commit 725be4e

Please sign in to comment.