#4fortune8-update-paymentintent

1 messages ยท Page 1 of 1 (latest)

trail cypressBOT
glass geode
trail cypressBOT
#

4fortune8-update-paymentintent

iron portal
#

I just made one

#

req_KHYZBkKhEsj3np

glass geode
#

Thanks, taking a look

#

I see you passing strings for both the amount and the application_fee_amount. However, both properties on the Payment Intent do reflect those values

iron portal
#

So i also did another one

#

req_xO4V1tvOJhEiXd

#
    req.body.id,
    { amount: req.body.amount,
      application_fee_amount:  100,
    },```
#

still gives ```Request POST body

{
"application_fee_amount": "1",
"amount": "10000"
}```

glass geode
#

The POST body is```
{
application_fee_amount: "1",
amount: "10000",
}

#

You need to examine your code to be sure you are passing what you expect

iron portal
#

Im just confused on why amount updates, but application_fee_amount: doesnt

glass geode
#

Because you are not passing a new value

#

You passed "1" in that last request

iron portal
#

Oh wow... I just had a brain fart of monumental proportions..... I forgot to restart my Node JS server after updating it ๐Ÿ˜

#

Thanks for your help and sorry if i wasted your time lol. I appreciate you

#

The sad thing is i was stuck on this for like a day and then some