Changeset 3369344
- Timestamp:
- 09/28/2025 09:54:24 PM (6 months ago)
- Location:
- lapinopay
- Files:
-
- 8 edited
-
tags/1.1.8/includes/class-lapinopay-instant-payment-gateway.php (modified) (3 diffs)
-
tags/1.1.8/lapinopay.php (modified) (2 diffs)
-
tags/1.1.8/templates/payment-fields.php (modified) (4 diffs)
-
trunk/README.md (modified) (1 diff)
-
trunk/includes/class-lapinopay-instant-payment-gateway.php (modified) (3 diffs)
-
trunk/lapinopay.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/templates/payment-fields.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lapinopay/tags/1.1.8/includes/class-lapinopay-instant-payment-gateway.php
r3355495 r3369344 39 39 } 40 40 41 class Lapino_Instant_Payment_Gateway extends WC_Payment_Gateway {41 class WC_LapinoPay_Instant_Payment_Gateway extends WC_Payment_Gateway { 42 42 protected $icon_url; 43 43 protected $api_base_url; … … 442 442 } 443 443 444 // Add this method to the Lapino_Instant_Payment_Gateway class444 // Add this method to the WC_LapinoPay_Instant_Payment_Gateway class 445 445 private function hash_amount($amount, $order_id) { 446 446 // Combine amount with order_id and token to make it unique per transaction … … 460 460 } 461 461 462 function add_lapinopay_gateway($methods) {463 $methods[] = 'Lapino_Instant_Payment_Gateway';464 return $methods;465 }466 add_filter('woocommerce_payment_gateways', 'add_lapinopay_gateway');467 462 } 468 463 -
lapinopay/tags/1.1.8/lapinopay.php
r3341636 r3369344 247 247 }); 248 248 249 // Include the payment gateway class 249 // Include the payment gateway class and register it 250 250 add_action('plugins_loaded', function() { 251 251 if (!class_exists('WC_Payment_Gateway')) { … … 253 253 } 254 254 include_once(plugin_dir_path(__FILE__) . 'includes/class-lapinopay-instant-payment-gateway.php'); 255 });256 257 // Add the gateway to WooCommerce258 add_filter('woocommerce_payment_gateways', function($gateways) {259 $gateways[] = 'WC_LapinoPay_Instant_Payment_Gateway';260 return $gateways;255 256 // Add the gateway to WooCommerce 257 add_filter('woocommerce_payment_gateways', function($gateways) { 258 $gateways[] = 'WC_LapinoPay_Instant_Payment_Gateway'; 259 return $gateways; 260 }); 261 261 }); 262 262 ?> -
lapinopay/tags/1.1.8/templates/payment-fields.php
r3346441 r3369344 188 188 <path d="M106.059 12.9633C106.059 8.82233 108.004 5.14931 110.992 2.77264C108.796 1.04423 106.023 0 102.999 0C95.8326 0 90.0352 5.7974 90.0352 12.9633C90.0352 20.1293 95.8326 25.9267 102.998 25.9267C106.023 25.9267 108.796 24.8824 110.992 23.1539C108.004 20.8133 106.059 17.1043 106.059 12.9633Z" fill="#EB001B"/> 189 189 <path d="M131.985 12.9633C131.985 20.1291 126.187 25.9267 119.021 25.9267C115.997 25.9267 113.224 24.8824 111.027 23.1539C114.052 20.7774 115.961 17.1043 115.961 12.9633C115.961 8.82233 114.016 5.14931 111.027 2.77264C113.224 1.04423 115.997 0 119.021 0C126.187 0 131.985 5.83349 131.985 12.9633Z" fill="#F79E1B"/> 190 </svg>',191 'revolut' => '<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="' . esc_attr($alt_text) . '">192 <path d="M20.9148 6.957C20.9148 3.12 17.7918 0 13.9518 0H2.42578V3.86H13.4038C15.1418 3.86 16.5808 5.226 16.6128 6.904C16.6218 7.31655 16.5479 7.72672 16.3953 8.11014C16.2428 8.49356 16.0148 8.84242 15.7248 9.136C15.4368 9.43138 15.0925 9.66591 14.7122 9.82566C14.3318 9.98542 13.9233 10.0671 13.5108 10.066H9.23378C9.16093 10.0663 9.09113 10.0953 9.03962 10.1468C8.9881 10.1984 8.95904 10.2681 8.95878 10.341V13.772C8.95878 13.832 8.97611 13.886 9.01078 13.934L16.2668 24H21.5778L14.3048 13.906C17.9678 13.722 20.9148 10.646 20.9148 6.957ZM6.89578 5.923H2.42578V24H6.89578V5.923Z" fill="black"/>193 190 </svg>', 194 191 'google-pay' => '<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="' . esc_attr($alt_text) . '"> … … 270 267 <option value="">Select a payment method</option> 271 268 <option value="VISA_MC">Credit Card</option> 272 <option value="REVOLUT_PAY">Revolut Pay</option>273 269 <option value="GOOGLE_PAY">Google Pay</option> 274 270 <option value="APPLE_PAY">Apple Pay</option> … … 291 287 <div class="lapinopay-payment-method-name">Credit Card</div> 292 288 <div class="lapinopay-payment-method-description">Pay securely with your credit card</div> 293 </div>294 <span class="lapinopay-radio-check"></span>295 </label>296 </div>297 298 <div class="lapinopay-payment-method" data-method="revolut">299 <input type="radio" name="lapinopay_payment_method" id="revolut" value="revolut">300 <label for="revolut">301 <div class="lapinopay-payment-method-icon">302 <?php echo wp_kses_post(lapinopay_get_payment_icon('revolut', 'Revolut')); ?>303 </div>304 <div class="lapinopay-payment-method-info">305 <div class="lapinopay-payment-method-name">Revolut Pay</div>306 <div class="lapinopay-payment-method-description">Fast and secure payment with Revolut</div>307 289 </div> 308 290 <span class="lapinopay-radio-check"></span> … … 356 338 const paymentCategories = { 357 339 'credit-card': 'VISA_MC', 358 'revolut': 'REVOLUT_PAY',359 340 'google-pay': 'GOOGLE_PAY', 360 341 'apple-pay': 'APPLE_PAY' -
lapinopay/trunk/README.md
r3346027 r3369344 4 4 Requires at least: 5.8 5 5 Tested up to: 6.8 6 Stable tag: 1. 1.96 Stable tag: 1.0.0 7 7 Requires PHP: 7.2 8 8 WC requires at least: 5.8 -
lapinopay/trunk/includes/class-lapinopay-instant-payment-gateway.php
r3355495 r3369344 39 39 } 40 40 41 class Lapino_Instant_Payment_Gateway extends WC_Payment_Gateway {41 class WC_LapinoPay_Instant_Payment_Gateway extends WC_Payment_Gateway { 42 42 protected $icon_url; 43 43 protected $api_base_url; … … 442 442 } 443 443 444 // Add this method to the Lapino_Instant_Payment_Gateway class444 // Add this method to the WC_LapinoPay_Instant_Payment_Gateway class 445 445 private function hash_amount($amount, $order_id) { 446 446 // Combine amount with order_id and token to make it unique per transaction … … 460 460 } 461 461 462 function add_lapinopay_gateway($methods) {463 $methods[] = 'Lapino_Instant_Payment_Gateway';464 return $methods;465 }466 add_filter('woocommerce_payment_gateways', 'add_lapinopay_gateway');467 462 } 468 463 -
lapinopay/trunk/lapinopay.php
r3346027 r3369344 4 4 * Plugin URI: https://lapinopay.com/docs/payment-gateway 5 5 * Description: Instant Approval High Risk Merchant Gateway with instant payouts to your USDC wallet. 6 * Version: 1.1. 96 * Version: 1.1.8 7 7 * Requires Plugins: woocommerce 8 8 * Requires at least: 5.8 … … 247 247 }); 248 248 249 // Include the payment gateway class 249 // Include the payment gateway class and register it 250 250 add_action('plugins_loaded', function() { 251 251 if (!class_exists('WC_Payment_Gateway')) { … … 253 253 } 254 254 include_once(plugin_dir_path(__FILE__) . 'includes/class-lapinopay-instant-payment-gateway.php'); 255 });256 257 // Add the gateway to WooCommerce258 add_filter('woocommerce_payment_gateways', function($gateways) {259 $gateways[] = 'WC_LapinoPay_Instant_Payment_Gateway';260 return $gateways;255 256 // Add the gateway to WooCommerce 257 add_filter('woocommerce_payment_gateways', function($gateways) { 258 $gateways[] = 'WC_LapinoPay_Instant_Payment_Gateway'; 259 return $gateways; 260 }); 261 261 }); 262 262 ?> -
lapinopay/trunk/readme.txt
r3355495 r3369344 220 220 * Enhanced payment method detection 221 221 * Performance optimizations 222 * fix checkout page 223 * fix config 224 * 225 226 = 1.1.9 - 2025-08-17 = 222 * Fixed checkout page 223 * Fixed config 227 224 * Disabled Revolut for now 228 225 * Added site URL parameter to API validation for better tracking -
lapinopay/trunk/templates/payment-fields.php
r3346441 r3369344 188 188 <path d="M106.059 12.9633C106.059 8.82233 108.004 5.14931 110.992 2.77264C108.796 1.04423 106.023 0 102.999 0C95.8326 0 90.0352 5.7974 90.0352 12.9633C90.0352 20.1293 95.8326 25.9267 102.998 25.9267C106.023 25.9267 108.796 24.8824 110.992 23.1539C108.004 20.8133 106.059 17.1043 106.059 12.9633Z" fill="#EB001B"/> 189 189 <path d="M131.985 12.9633C131.985 20.1291 126.187 25.9267 119.021 25.9267C115.997 25.9267 113.224 24.8824 111.027 23.1539C114.052 20.7774 115.961 17.1043 115.961 12.9633C115.961 8.82233 114.016 5.14931 111.027 2.77264C113.224 1.04423 115.997 0 119.021 0C126.187 0 131.985 5.83349 131.985 12.9633Z" fill="#F79E1B"/> 190 </svg>',191 'revolut' => '<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="' . esc_attr($alt_text) . '">192 <path d="M20.9148 6.957C20.9148 3.12 17.7918 0 13.9518 0H2.42578V3.86H13.4038C15.1418 3.86 16.5808 5.226 16.6128 6.904C16.6218 7.31655 16.5479 7.72672 16.3953 8.11014C16.2428 8.49356 16.0148 8.84242 15.7248 9.136C15.4368 9.43138 15.0925 9.66591 14.7122 9.82566C14.3318 9.98542 13.9233 10.0671 13.5108 10.066H9.23378C9.16093 10.0663 9.09113 10.0953 9.03962 10.1468C8.9881 10.1984 8.95904 10.2681 8.95878 10.341V13.772C8.95878 13.832 8.97611 13.886 9.01078 13.934L16.2668 24H21.5778L14.3048 13.906C17.9678 13.722 20.9148 10.646 20.9148 6.957ZM6.89578 5.923H2.42578V24H6.89578V5.923Z" fill="black"/>193 190 </svg>', 194 191 'google-pay' => '<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="' . esc_attr($alt_text) . '"> … … 270 267 <option value="">Select a payment method</option> 271 268 <option value="VISA_MC">Credit Card</option> 272 <option value="REVOLUT_PAY">Revolut Pay</option>273 269 <option value="GOOGLE_PAY">Google Pay</option> 274 270 <option value="APPLE_PAY">Apple Pay</option> … … 291 287 <div class="lapinopay-payment-method-name">Credit Card</div> 292 288 <div class="lapinopay-payment-method-description">Pay securely with your credit card</div> 293 </div>294 <span class="lapinopay-radio-check"></span>295 </label>296 </div>297 298 <div class="lapinopay-payment-method" data-method="revolut">299 <input type="radio" name="lapinopay_payment_method" id="revolut" value="revolut">300 <label for="revolut">301 <div class="lapinopay-payment-method-icon">302 <?php echo wp_kses_post(lapinopay_get_payment_icon('revolut', 'Revolut')); ?>303 </div>304 <div class="lapinopay-payment-method-info">305 <div class="lapinopay-payment-method-name">Revolut Pay</div>306 <div class="lapinopay-payment-method-description">Fast and secure payment with Revolut</div>307 289 </div> 308 290 <span class="lapinopay-radio-check"></span> … … 356 338 const paymentCategories = { 357 339 'credit-card': 'VISA_MC', 358 'revolut': 'REVOLUT_PAY',359 340 'google-pay': 'GOOGLE_PAY', 360 341 'apple-pay': 'APPLE_PAY'
Note: See TracChangeset
for help on using the changeset viewer.