Skip to content

Commit 5ab0c19

Browse files
committed
Only allow syncronous for Auth & Capture
1 parent 8203f6b commit 5ab0c19

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

assets/js/amazon-wc-admin.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
simple_path_form_id: 'simple_path',
55
payment_region_input: $( '#woocommerce_amazon_payments_advanced_payment_region' ),
66
button_language_input: $( '#woocommerce_amazon_payments_advanced_button_language' ),
7+
authorization_mode: $( '#woocommerce_amazon_payments_advanced_authorization_mode' ),
8+
payment_capture: $( '#woocommerce_amazon_payments_advanced_payment_capture' ),
79
action_url: '#',
810
spId: '',
911
register_now_link: $( 'a.register_now' ),
@@ -56,6 +58,11 @@
5658
} );
5759

5860
wc_simple_path_form.init_dynamic_options( wc_simple_path_form.button_language_input, wc_simple_path_form.payment_region_input, amazon_admin_params.language_combinations );
61+
wc_simple_path_form.init_dynamic_options( wc_simple_path_form.authorization_mode, wc_simple_path_form.payment_capture, {
62+
'': [ 'sync' ],
63+
authorize: true,
64+
manual: true,
65+
} );
5966

6067
// Init values if region is already selected
6168
wc_simple_path_form.payment_region_on_change();

0 commit comments

Comments
 (0)