Changeset 3260564
- Timestamp:
- 03/24/2025 06:25:06 AM (12 months ago)
- Location:
- woo-razorpay/trunk
- Files:
-
- 2 added
- 12 edited
-
razorpay-sdk/libs/Requests-2.0.4/src/Transport/Curl.php (modified) (1 diff)
-
razorpay-sdk/src/Account.php (modified) (1 diff)
-
razorpay-sdk/src/Api.php (modified) (1 diff)
-
razorpay-sdk/src/Customer.php (modified) (1 diff)
-
razorpay-sdk/src/Dispute.php (added)
-
razorpay-sdk/src/Document.php (added)
-
razorpay-sdk/src/Entity.php (modified) (1 diff)
-
razorpay-sdk/src/Iin.php (modified) (1 diff)
-
razorpay-sdk/src/Order.php (modified) (1 diff)
-
razorpay-sdk/src/Payment.php (modified) (1 diff)
-
razorpay-sdk/src/Settlement.php (modified) (2 diffs)
-
razorpay-sdk/src/Stakeholder.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
woo-razorpay.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-razorpay/trunk/razorpay-sdk/libs/Requests-2.0.4/src/Transport/Curl.php
r2916692 r3260564 391 391 $url = self::format_get($url, $data); 392 392 $data = ''; 393 } elseif (!is_string($data) ){393 } elseif (!is_string($data) && !isset($data["file"])){ 394 394 $data = http_build_query($data, '', '&'); 395 395 } -
woo-razorpay/trunk/razorpay-sdk/src/Account.php
r2965278 r3260564 60 60 return $webhook; 61 61 } 62 63 public function uploadAccountDoc($attributes = array()) 64 { 65 $attributes = $this->setFile($attributes); 66 67 $entityUrl = $this->getEntityUrl() .$this->id .'/documents'; 68 69 return $this->request('POST', $entityUrl, $attributes, 'v2'); 70 } 71 72 public function fetchAccountDoc() 73 { 74 $entityUrl = $this->getEntityUrl() .$this->id .'/documents'; 75 76 return $this->request('GET', $entityUrl, null, 'v2'); 77 } 62 78 } -
woo-razorpay/trunk/razorpay-sdk/src/Api.php
r2965278 r3260564 17 17 public static $appsDetails = array(); 18 18 19 const VERSION = '2. 8.7';19 const VERSION = '2.9.0'; 20 20 21 21 /** -
woo-razorpay/trunk/razorpay-sdk/src/Customer.php
r2533596 r3260564 38 38 return $token; 39 39 } 40 41 public function addBankAccount($attributes = array()) 42 { 43 $entityUrl = $this->getEntityUrl().$this->id. '/bank_account'; 44 45 return $this->request('POST', $entityUrl, $attributes); 46 } 47 48 public function deleteBankAccount($bank_id) 49 { 50 $entityUrl = $this->getEntityUrl() . $this->id. '/bank_account/'. $bank_id; 51 52 return $this->request('DELETE', $entityUrl); 53 } 54 55 public function requestEligibilityCheck($attributes = array()) 56 { 57 $entityUrl = $this->getEntityUrl(). '/eligibility'; 58 59 return $this->request('POST', $entityUrl, $attributes); 60 } 61 62 public function fetchEligibility($id) 63 { 64 $entityUrl = $this->getEntityUrl(). '/eligibility/'. $id; 65 66 return $this->request('GET', $entityUrl); 67 } 40 68 } -
woo-razorpay/trunk/razorpay-sdk/src/Entity.php
r2965278 r3260564 232 232 return $array; 233 233 } 234 235 public function setFile($attributes) 236 { 237 if(isset($attributes['file'])){ 238 $attributes['file'] = new \CURLFILE( 239 $attributes['file'], 240 mime_content_type($attributes['file']) 241 ); 242 } 243 244 return $attributes; 245 } 234 246 } -
woo-razorpay/trunk/razorpay-sdk/src/Iin.php
r2965278 r3260564 9 9 return parent::fetch($id); 10 10 } 11 12 public function all($options = array()) 13 { 14 $relativeUrl = $this->getEntityUrl(). 'list'; 15 16 return $this->request('GET', $relativeUrl, $options); 17 } 11 18 } -
woo-razorpay/trunk/razorpay-sdk/src/Order.php
r2965278 r3260564 49 49 return $this->request('GET', $relativeUrl, $options); 50 50 } 51 52 public function viewRtoReview() 53 { 54 $relativeUrl = $this->getEntityUrl(). $this->id .'/rto_review'; 55 56 return $this->request('POST', $relativeUrl); 57 } 58 59 public function editFulfillment($attributes = array()) 60 { 61 $relativeUrl = $this->getEntityUrl(). $this->id .'/fulfillment'; 62 63 return $this->request('POST', $relativeUrl, $attributes); 64 } 51 65 } -
woo-razorpay/trunk/razorpay-sdk/src/Payment.php
r2916692 r3260564 224 224 return $this->request('GET', $relativeUrl); 225 225 } 226 227 public function expandedDetails($options = array()) 228 { 229 $relativeUrl = $this->getEntityUrl(). $this->id; 230 231 return $this->request('GET', $relativeUrl, $options); 232 } 226 233 } -
woo-razorpay/trunk/razorpay-sdk/src/Settlement.php
r2632577 r3260564 66 66 * fetch Ondemand Settlement by Id 67 67 * @param string $id 68 * @param array $options 68 69 * @return array 69 70 */ 70 public function fetchOndemandSettlementById( )71 public function fetchOndemandSettlementById($id, $options = array()) 71 72 { 72 $relativeUrl = $this->getEntityUrl(). "ondemand/" . $ this->id;73 $relativeUrl = $this->getEntityUrl(). "ondemand/" . $id; 73 74 74 return $this->request('GET', $relativeUrl );75 return $this->request('GET', $relativeUrl, $options); 75 76 } 76 77 /** … … 78 79 * @return array 79 80 */ 80 public function fetchAllOndemandSettlement( )81 public function fetchAllOndemandSettlement($options = array()) 81 82 { 82 83 $relativeUrl = $this->getEntityUrl(). "ondemand/"; 83 84 84 return $this->request('GET', $relativeUrl );85 return $this->request('GET', $relativeUrl, $options); 85 86 } 86 87 } -
woo-razorpay/trunk/razorpay-sdk/src/Stakeholder.php
r2965278 r3260564 32 32 return $this->request('PATCH', $entityUrl, $attributes, 'v2'); 33 33 } 34 35 public function uploadStakeholderDoc($id, $attributes = array()) 36 { 37 $attributes = $this->setFile($attributes); 38 39 $entityUrl = 'accounts/'.$this->account_id .'/'.$this->getEntityUrl().'/'.$id.'/documents'; 40 41 return $this->request('POST', $entityUrl, $attributes, 'v2'); 42 } 43 44 public function fetchStakeholderDoc($id) 45 { 46 $entityUrl = 'accounts/'.$this->account_id .'/'.$this->getEntityUrl().'/'.$id.'/documents'; 47 48 return $this->request('GET', $entityUrl, null, 'v2'); 49 } 34 50 } -
woo-razorpay/trunk/readme.txt
r3221997 r3260564 4 4 Requires at least: 3.9.2 5 5 Tested up to: 6.6 6 Stable tag: 4.7. 06 Stable tag: 4.7.1 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 69 69 70 70 == Changelog == 71 72 = 4.7.1 = 73 * Updated SDK update to 2.9.0. 74 * Fixed auto update webhook. 71 75 72 76 = 4.7.0 = -
woo-razorpay/trunk/woo-razorpay.php
r3221997 r3260564 4 4 * Plugin URI: https://razorpay.com 5 5 * Description: Razorpay Payment Gateway Integration for WooCommerce.Razorpay Welcome Back Offer: New to Razorpay? Sign up to enjoy FREE payments* of INR 2 lakh till March 31st! Transact before January 10th to grab the offer. 6 * Version: 4.7. 07 * Stable tag: 4.7. 06 * Version: 4.7.1 7 * Stable tag: 4.7.1 8 8 * Author: Team Razorpay 9 9 * WC tested up to: 9.1.2 … … 910 910 { 911 911 $api = $this->getRazorpayApiInstance(); 912 $api->setHeader('Content-Type', 'application/x-www-form-urlencoded'); 912 913 913 914 $webhook = $api->request->request($method, $url, $data); … … 1081 1082 protected function getRazorpayPaymentParams($order, $orderId) 1082 1083 { 1083 $getWebhookFlag = get_option('webhook_enable_flag');1084 $time = time();1085 if (empty($getWebhookFlag) == false)1086 {1087 if ($getWebhookFlag + 86400 < time())1088 {1089 $this->autoEnableWebhook();1090 }1091 }1092 else1093 {1094 update_option('webhook_enable_flag', $time);1095 $this->autoEnableWebhook();1096 }1097 1098 1084 rzpLogInfo("getRazorpayPaymentParams $orderId"); 1085 1099 1086 $razorpayOrderId = $this->createOrGetRazorpayOrderId($order, $orderId); 1100 1087 … … 1237 1224 { 1238 1225 rzpLogInfo("Called createRazorpayOrderId with params orderId $orderId and sessionKey $sessionKey"); 1239 1240 1226 1241 1227 // Calls the helper function to create order data
Note: See TracChangeset
for help on using the changeset viewer.