Changeset 2903756
- Timestamp:
- 04/25/2023 09:02:00 AM (3 years ago)
- Location:
- 9pay-gateway/trunk
- Files:
-
- 2 edited
-
includes/gateways/ninepay-gateway.php (modified) (2 diffs)
-
mc-quetma.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
9pay-gateway/trunk/includes/gateways/ninepay-gateway.php
r2903685 r2903756 243 243 244 244 /*Buy Now Pay Later*/ 245 /* 245 246 'ninepay_payment_method_bnpl' => array( 246 247 'desc_tip' => true, … … 269 270 ) 270 271 ), 271 272 */ 272 273 ); 273 274 } -
9pay-gateway/trunk/mc-quetma.php
r2903685 r2903756 222 222 223 223 /*Buy Now Pay Later*/ 224 /* 224 225 if($settings['ninepay_payment_method_bnpl'] === 'yes') { 225 226 $result[NinePayConstance::METHOD_BNPL] = __($configLang[$lang][NinePayConstance::METHOD_BNPL], "woocommerce"); 226 227 } 228 */ 227 229 228 230 … … 781 783 /*Reset when choose payment method*/ 782 784 checkoutForm.on('change', 'select[name="ninepay_payment_method"]', function(){ 783 var a = $(this).val();784 $(document.body).trigger('update_checkout');785 $('select[name="ninepay_payment_method"] option[value='+a+']').prop('selected', true);786 // Once checkout has been updated787 $('body').on('updated_checkout', function(){788 // Restoring the chosen option value789 $('select[name="ninepay_payment_method"] option[value='+a+']').prop('selected', true);790 });785 var a = $(this).val(); 786 $(document.body).trigger('update_checkout'); 787 $('select[name="ninepay_payment_method"] option[value='+a+']').prop('selected', true); 788 // Once checkout has been updated 789 $('body').on('updated_checkout', function(){ 790 // Restoring the chosen option value 791 $('select[name="ninepay_payment_method"] option[value='+a+']').prop('selected', true); 792 }); 791 793 }); 792 794 });
Note: See TracChangeset
for help on using the changeset viewer.