Skip to content

Commit

Permalink
Update Checkout Sessions fixtures with session ID and expected_amount (
Browse files Browse the repository at this point in the history
…stripe#626)

* add expected_amount to checkout session fixtures

* use session id for all routes
  • Loading branch information
oliver-stripe authored Apr 9, 2021
1 parent 48cdd80 commit e90728c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@
{
"name": "payment_page_confirm",
"expected_error_type": "invalid_request_error",
"path": "/v1/payment_pages/${payment_page:id}/confirm",
"path": "/v1/payment_pages/${checkout_session:id}/confirm",
"method": "post",
"params": {
"payment_method": "${payment_method:id}"
"payment_method": "${payment_method:id}",
"expected_amount": 3000
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@
},
{
"name": "payment_page_confirm",
"path": "/v1/payment_pages/${payment_page:id}/confirm",
"path": "/v1/payment_pages/${checkout_session:id}/confirm",
"method": "post",
"params": {
"payment_method": "${payment_method:id}"
"payment_method": "${payment_method:id}",
"expected_amount": 3000
}
}
]
Expand Down
5 changes: 3 additions & 2 deletions pkg/fixtures/triggers/checkout.session.completed.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,11 @@
},
{
"name": "payment_page_confirm",
"path": "/v1/payment_pages/${payment_page:id}/confirm",
"path": "/v1/payment_pages/${checkout_session:id}/confirm",
"method": "post",
"params": {
"payment_method": "${payment_method:id}"
"payment_method": "${payment_method:id}",
"expected_amount": 3000
}
}
]
Expand Down

0 comments on commit e90728c

Please sign in to comment.