I am trying to store order id of the payment using sample MasterCard payment gateway in PHP. I store order id in a session variable before redirecting to the gateway and I use this stored value after complete the payment. But I have doubt if I implement it on real gateway do gateway destroys the session itself. Then I can't store order id like this (in session variables). Please help me to solve this.
Is the session automatically destroyed after navigating to the MasterCard payment gateway?
52 views Asked by Galaxylokka At
1
There are 1 answers
Related Questions in PHP
- How to add the dynamic new rows from my registration form in my database?
- Issue in payment form gateway
- How to create a facet for WP gridbuilder that displays both parent and child custom fields?
- Function in anonymous Laravel Blade component
- How to change woocomerce or full wordpress currency with value from USD to AUD
- General questions about creating a custom theme Moodle CMS
- How to add logging to an abstract class in php
- error 500 on IIS FastCGI but no clue despite multiple error loggings activated
- Composer installation fails and reverts ./composer.json and ./composer.lock to original content
- How to isolate PHP apps from each other on a local machine(Windows or Linux)?
- Laravel: Using belongsToMany relationship with MongoDB
- window.location.href redirects but is causing problems on the webpage
- Key provided is shorter than 256 bits, only 64 bits provided
- Laravel's whereBetween method not working with two timestamps
- Implementing UUID as primary key in Laravel intermediate table
Related Questions in PAYMENT-GATEWAY
- Issue in payment form gateway
- how to integrate cashfree payment gateway in ruby on rails project
- i am geting value error while get cust id value from passing query in link which is in checkout file . I am using razorpay payment-gateway
- How to send Stripe session checkout parameters in subscription mode
- How can I change amount of payment-plan in flutterwave payment gateway?
- This operation is not allowed. Please contact Razorpay support for details. getting in transfers API (Live Mode)
- I'm encountering Error: [TypeError: Order.findOneAndUpdate is not a function] while updating the status [NextJS 14]
- I need help integrating Flutterwave into my React and express Node Application
- Can't get Woocommerce Payment Gateway Fees to be added upon checkout
- Inconsistency when trying to calculate the cost of proration in stripe
- Square payment gateway in e-commerce site
- Integrating CoinGate Payment Gateway in PHP Project: Including Payment Fees in Total Amount
- TillPayments Woocommerce plugin - how to show all payment gateways on Customer Payment Page
- Linking a registered customer to a payment subscription in a third-party service
- How to Detect Payment Completion Automatically in Wallet App
Related Questions in PAYMENT
- Issue in payment form gateway
- How to test Creating and Cancelling Subscription in ThriveCart in Test Mode
- The Square webhook is being triggered twice for a single event (subscription.created)
- i have intergrated daraja api with by booking app coded in java but in payments page it toasts an error message Error:Failed to initiate payment
- Settlement Amount of Razorpay Dashboard is not correct
- I want to update the price for a product on Stripe
- How can an AI agent make a purchase?
- Flutter in_app_purchase multiple subscriptions
- How to source invoice record's line item details on customer payment advanced pdf template?
- Paypal PAYEE_ACCOUNT_INVALID
- Request for assistance with Guidewire, Claims Center, TYPE column and PAYMENT vs PAYEMENT
- how to setup stripe webhook in django
- stripe transfer method in django
- split payments using stripe in django
- Is the session automatically destroyed after navigating to the MasterCard payment gateway?
Related Questions in MASTERCARD
- What is url of Mastercard hpf.js script?
- Challenge flow 3ds Secure 2 cRes decode
- Mastercard gateway iOS SDK installation using Carthage failed
- Google Pay server side Push provisioning
- Why some functions not working when navigate to the payment gateway?
- Is the session automatically destroyed after navigating to the MasterCard payment gateway?
- Problem with mastercard API, a bug that is not found in the documentation
- MasterCard Token Fetch Error with ReactJs Frontend
- Mastercard Insomnia Plugin - File read location
- Error while integrating MPGs with flutter
- How to get results in the rerun Url from MPGS?
- MPGS error callback url on "Unsuccessful Transaction"
- 'INVALID_REQUEST' error in Checkout.configure() function". in console
- "cause":"INVALID_REQUEST","explanation":"Unexpected parameter 'shipping.address.city'"}
- MPGS Hosted Checkout frame not loading
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
No, it would NOT be destroyed normally (I have coded many sites which connect with payment gateway to settle payment / fee) -- but with the following exceptions:
a) Unless the user quits (I mean he/she closes) the browser totally and then re-opens the browser, otherwise the session vairable persists after navigating to the payment gateway and returns back to your site ; or
b) Unless the user stays in the payment gateway site long time enough that it exceeded the session life time as specified in your server (e.g. as specified in php.ini) -- which should normally not happen for a normal transaction
For example, if you have shoppingcart1.php storing the following session variable:
Then the user clicks a button and redirect to payment.php with the following code
and when the user paid the fee at the payment gateway, it would, normally, either get redirected to
https://yoursite/success.php(upon successful payment) orhttps://yoursite/cancel.php(if the user clicks cancel during the payment process), then the success.php and/or cancel.php can still access the session variable, unless (a) or (b) above is trueOf course, if (a) and (b) is true, then your site should have measures to cater for such exceptions.
Last but not least, you should rely on other API / IPN provided by the payment gateway to confirm the payment status