Plugin Directory

Changeset 2903756


Ignore:
Timestamp:
04/25/2023 09:02:00 AM (3 years ago)
Author:
9pay
Message:

Update BNPL

Location:
9pay-gateway/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 9pay-gateway/trunk/includes/gateways/ninepay-gateway.php

    r2903685 r2903756  
    243243
    244244            /*Buy Now Pay Later*/
     245            /*
    245246            'ninepay_payment_method_bnpl' => array(
    246247                'desc_tip' => true,
     
    269270                )
    270271            ),
    271 
     272            */
    272273        );
    273274    }
  • 9pay-gateway/trunk/mc-quetma.php

    r2903685 r2903756  
    222222
    223223        /*Buy Now Pay Later*/
     224        /*
    224225        if($settings['ninepay_payment_method_bnpl'] === 'yes') {
    225226            $result[NinePayConstance::METHOD_BNPL] = __($configLang[$lang][NinePayConstance::METHOD_BNPL], "woocommerce");
    226227        }
     228        */
    227229
    228230
     
    781783                /*Reset when choose payment method*/
    782784                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 updated
    787                     $('body').on('updated_checkout', function(){
    788                         // Restoring the chosen option value
    789                         $('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                    });     
    791793                });
    792794            });
Note: See TracChangeset for help on using the changeset viewer.