#sheep-cli-trigger

1 messages · Page 1 of 1 (latest)

proper charmBOT
tropic swallow
#

sheep-cli-trigger

pure ridge
#

the unit amount yes

tropic swallow
#

something like this stripe trigger checkout.session.completed --override price:unit_amount=12345 --override payment_page_confirm:expected_amount=24690

pure ridge
#

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 ....

tropic swallow
#

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

pure ridge
#

ok done 🙂 thanks for all I try to set it with 1000$ of price unit amout

tropic swallow
#

gotcha so you'd do stripe trigger checkout.session.completed --override price:unit_amount=100000 --override payment_page_confirm:expected_amount=200000

pure ridge
#

thanks 🥳

tropic swallow
#

happy to help! Have a great day!