#sheep-cli-trigger
1 messages · Page 1 of 1 (latest)
sheep-cli-trigger
What you need to override is this part of the trigger https://github.com/stripe/stripe-cli/blob/master/pkg/fixtures/triggers/checkout.session.completed.json#L21
the unit amount yes
something like this stripe trigger checkout.session.completed --override price:unit_amount=12345 --override payment_page_confirm:expected_amount=24690
yes !
Trigger failed: Request failed, status=400, body={
"error": {
"code": "checkout_amount_mismatch",
"message": "Your purchase session has changed. Please review the updated total and submit payment again.",
"param": "expected_amount",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_PiYvdn0OLm0SR2?t=1682965611",
"type": "invalid_request_error"
}
}
it throw me this error ....
did you do what I did? You have to override both parameters and they have to match logically
the trigger has a quantity set to 2. So if you choose the Price for $100 then you have to pass the second one as 20000
ok done 🙂 thanks for all I try to set it with 1000$ of price unit amout
gotcha so you'd do stripe trigger checkout.session.completed --override price:unit_amount=100000 --override payment_page_confirm:expected_amount=200000
thanks 🥳
happy to help! Have a great day!