Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Atef95's avatar

Payment sessions

Hey guys :)

I just wanted to inquire about payment process in gateways because I'm not familiar with them

in my project , I'm using mastercard gatway for payment..

in their documentation , they require the creation of a session to process the payment...

I'm getting the session successfuly

but I'm wondering do I have to save the session details in database for every user for later use? or do I have to ask for a new one in each payment operation ?

this is the link

https://test-tnpost.mtf.gateway.mastercard.com/api/documentation/integrationGuidelines/supportedFeatures/pickAdditionalFunctionality/paymentSession.html?locale=en_US

Thank you !

0 likes
2 replies
Atef95's avatar

@m7vm7v

At this moment , I'm limited by the gatway that I mentioned above... that's given by the client.. I'm just asking about logic of sessions

Please or to participate in this conversation.