#nimby_09436

1 messages · Page 1 of 1 (latest)

mint nightBOT
iron sapphire
#

Have you tried printing foundSession?

#

In the above

#

Just to see it's what you expect prior to trying to get token

fleet cove
#

I have done that in the testing environment and seen what I expected (cannot yet try in live, but will keep in mind) - However, I have printed the sessions.getData().get(i) session and can see metadata in there

iron sapphire
#

So the issue is that tokenValue = foundSession.get("token"); isn't extracting the token

#

If you do see token in foundSession

fleet cove
#

Correct, but only in live mode

iron sapphire
#

Oh

#

Try printing that in live then

#

You need to debug this a bit further

fleet cove
#

Okay thanks, the client is in a different timezone so I will have to wait to do that, but do you have any ideas for either scenario? (ie a. it is populated as expected but not assigning OR b. it is showing empty metadata) I take it .get("token") is the correct way to call?

iron sapphire
#

I would need to see a checkout session id where this is happening as well as the output you print for each variable in your program

#

Hard to know what the issue is at this point