Requesting an Apple Pay Payment Session

i’m new on the Apple world. I cannot understand how to make a an Apple Pay Payment Session for Apple Pay JS.
I cannot found any example or guide. Can anyone explain me? Thanks