Changeset 3478157
- Timestamp:
- 03/09/2026 01:17:43 PM (44 hours ago)
- Location:
- knit-pay/trunk
- Files:
-
- 9 edited
-
gateways/PaymentMethods.php (modified) (1 diff)
-
gateways/paytm/src/API.php (modified) (1 diff)
-
gateways/paytm/src/Gateway.php (modified) (2 diffs)
-
gateways/upi-qr/src/Gateway.php (modified) (1 diff)
-
gateways/upi-qr/src/css/template5.css (modified) (2 diffs)
-
gateways/upi-qr/src/view/payment-page.php (modified) (1 diff)
-
gateways/upi-qr/src/view/template5.php (modified) (2 diffs)
-
knit-pay.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
knit-pay/trunk/gateways/PaymentMethods.php
r3458322 r3478157 11 11 12 12 const UPI_COLLECT = 'upi_collect'; 13 14 const SMS_PAYMENT_LINK = 'sms_payment_link'; 13 15 14 16 /** -
knit-pay/trunk/gateways/paytm/src/API.php
r3470121 r3478157 21 21 public function get_endpoint() { 22 22 if ( $this->test_mode ) { 23 return 'https://secure gw-stage.paytm.in/';23 return 'https://securestage.paytmpayments.com/'; 24 24 } 25 return 'https://secure gw.paytm.in/';25 return 'https://secure.paytmpayments.com/'; 26 26 } 27 27 -
knit-pay/trunk/gateways/paytm/src/Gateway.php
r3470121 r3478157 2 2 namespace KnitPay\Gateways\Paytm; 3 3 4 use Exception; 5 use KnitPay\Gateways\PaymentMethods; 6 use KnitPay\Utils as KnitPayUtils; 7 use PaytmChecksum; 4 8 use Pronamic\WordPress\Pay\Core\Gateway as Core_Gateway; 9 use Pronamic\WordPress\Pay\Core\PaymentMethod; 5 10 use Pronamic\WordPress\Pay\Payments\Payment; 6 11 use Pronamic\WordPress\Pay\Payments\PaymentStatus; 7 use Exception;8 use PaytmChecksum;9 use Pronamic\WordPress\Pay\Core\PaymentMethod;10 use KnitPay\Utils as KnitPayUtils;11 use KnitPay\Gateways\PaymentMethods;12 12 13 13 /** … … 110 110 111 111 // Create an array having all required parameters for creating checksum. 112 // @see https:// developer.paytm.com/docs/api/initiate-transaction-api/112 // @see https://www.paytmpayments.com/docs/api/initiate-transaction-api 113 113 $paytmParams = []; 114 114 -
knit-pay/trunk/gateways/upi-qr/src/Gateway.php
r3448567 r3478157 406 406 } 407 407 408 private function mask_phone_number( $phone ) { 409 if ( empty( $phone ) ) { 410 return ''; 411 } 412 413 // Remove any non-numeric characters 414 $phone_digits = preg_replace( '/[^0-9]/', '', $phone ); 415 416 if ( strlen( $phone_digits ) < 4 ) { 417 return str_repeat( '*', strlen( $phone_digits ) ); 418 } 419 420 // Show first 2 and last 2 digits, mask the middle 421 $masked = substr( $phone_digits, 0, 2 ) . str_repeat( '*', strlen( $phone_digits ) - 4 ) . substr( $phone_digits, -2 ); 422 423 return $masked; 424 } 425 408 426 public function enqueue_scripts() { 409 427 \wp_register_script( -
knit-pay/trunk/gateways/upi-qr/src/css/template5.css
r3448567 r3478157 225 225 226 226 /* UPI ID Instructions Section */ 227 . upi-instructions {227 .payment-instructions { 228 228 padding: 32px 24px; 229 229 text-align: center; … … 765 765 } 766 766 767 . upi-instructions {767 .payment-instructions { 768 768 padding: 24px 20px; 769 769 } -
knit-pay/trunk/gateways/upi-qr/src/view/payment-page.php
r3448567 r3478157 36 36 $order_id = $payment->get_source_id(); 37 37 $customer_upi_id = $payment->get_meta( 'customer_upi_id' ); 38 $payment_method = $payment->get_payment_method(); 38 39 39 40 $amount = $payment->get_total_amount()->format_i18n( '%1$s%2$s' ); -
knit-pay/trunk/gateways/upi-qr/src/view/template5.php
r3448567 r3478157 26 26 </div> 27 27 28 <!-- Conditional Section: UPI Instructions OR QR Code --> 29 <?php if ( isset( $customer_upi_id ) && ! empty( $customer_upi_id ) ) { ?> 28 <!-- Conditional Section: UPI Collect Instructions OR SMS Payment Link OR QR Code --> 29 <?php if ( 'sms_payment_link' === $payment_method ) { ?> 30 <!-- SMS Payment Link Instructions Section --> 31 <div class="payment-instructions"> 32 <div class="instruction-icon dashicons dashicons-testimonial"></div> 33 34 <h3 class="instruction-title">Payment Link Sent!</h3> 35 36 <div class="instruction-steps"> 37 <div class="instruction-step"> 38 <div class="step-number">1</div> 39 <div class="step-text">Check your phone for the SMS</div> 40 </div> 41 <div class="instruction-step"> 42 <div class="step-number">2</div> 43 <div class="step-text">Open the payment link received</div> 44 </div> 45 <div class="instruction-step"> 46 <div class="step-number">3</div> 47 <div class="step-text">Complete the payment securely</div> 48 </div> 49 </div> 50 51 <div class="upi-id-display"> 52 <div class="upi-id-label">SMS sent to:</div> 53 <div class="upi-id-value"><?php echo $this->mask_phone_number( $payment->get_billing_address()->get_phone() ); ?></div> 54 </div> 55 56 <div class="waiting-indicator"> 57 <div class="spinner"></div> 58 <span>Waiting for payment confirmation...</span> 59 </div> 60 </div> 61 <?php } elseif ( isset( $customer_upi_id ) && ! empty( $customer_upi_id ) ) { ?> 30 62 <!-- UPI ID Instructions Section --> 31 <div class=" upi-instructions">63 <div class="payment-instructions"> 32 64 <div class="instruction-icon dashicons dashicons-smartphone"></div> 33 65 … … 115 147 } 116 148 117 if ( ( ! isset( $customer_upi_id ) || empty( $customer_upi_id ) ) && $is_android ) {149 if ( ( ! isset( $customer_upi_id ) || empty( $customer_upi_id ) ) && 'sms_payment_link' !== $payment_method && $is_android ) { 118 150 ?> 119 151 <div class="payment-methods"> -
knit-pay/trunk/knit-pay.php
r3478090 r3478157 5 5 * Description: Seamlessly integrates 500+ payment gateways, including Cashfree, Instamojo, Razorpay, Paypal, Stripe, UPI QR, and SSLCommerz, with over 100 WordPress plugins. 6 6 * 7 * Version: 9.2.2. 27 * Version: 9.2.2.3 8 8 * Requires at least: 6.2 9 9 * Requires PHP: 8.1 -
knit-pay/trunk/readme.txt
r3478090 r3478157 5 5 Tested up to: 7.0 6 6 Requires PHP: 8.1 7 Stable tag: 9.2.2. 27 Stable tag: 9.2.2.3 8 8 License: GPL-3.0-or-later 9 9
Note: See TracChangeset
for help on using the changeset viewer.