Skip to content

Commit

Permalink
Merge pull request #26 from razorpay/session_issue_fix
Browse files Browse the repository at this point in the history
Handled the session issue on iOS 14
  • Loading branch information
ChetanGN committed Jun 8, 2021
2 parents 51af501 + c67292f commit f8983db
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/payments/razorpay/RazorpayPayment.php
@@ -1,10 +1,16 @@
<?php
use Razorpay\Api\Api;

session_start();

// Extend cookie life time by an amount of your linking
$cookieLifetime = 3600; // One hour in seconds
setcookie(session_name(), session_id(), time()+$cookieLifetime);

class RazorpayPayment
{
//Define version of plugin
const VERSION = '1.3.1';
const VERSION = '1.3.2';

public function getSessionValue($key)
{
Expand Down

0 comments on commit f8983db

Please sign in to comment.