Changeset 2834199
- Timestamp:
- 12/15/2022 07:07:18 AM (3 years ago)
- Location:
- paytm-payments/trunk
- Files:
-
- 2 edited
-
class.paytm.php (modified) (1 diff)
-
includes/PaytmHelper.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
paytm-payments/trunk/class.paytm.php
r2833844 r2834199 740 740 $mid = sanitize_text_field($_POST['mid']); 741 741 if ($_POST['is_webhook']==1) { 742 $webhookUrl = $_POST['webhookUrl'];742 $webhookUrl = sanitize_text_field($_POST['webhookUrl']); 743 743 } else { 744 744 $webhookUrl = esc_url("https://www.dummyUrl.com"); //set this when unchecked -
paytm-payments/trunk/includes/PaytmHelper.php
r2833844 r2834199 102 102 // Create token header as a JSON string 103 103 $header = json_encode(['alg' => 'HS512','typ' => 'JWT']); 104 /* Create token payload as a JSON string 105 $time = time()- (1* 60); */ 106 date_default_timezone_set("Asia/Kolkata"); 107 /* if($environment == 0){ 108 $time = time()- (33); 109 }else{ 110 $time = time(); 111 }*/ 104 /* Create token payload as a JSON string */ 112 105 $time = time(); 113 106 $payload = json_encode(['client-id' => $clientId,'iat'=>$time]);
Note: See TracChangeset
for help on using the changeset viewer.