@@ -23,23 +23,34 @@ class ApplePayService {
23
23
this . options = options ;
24
24
25
25
this . session = new ApplePaySession ( options . version , paymentRequest ) ;
26
- /* eslint-disable @typescript-eslint/no-misused-promises */
27
- this . session . onvalidatemerchant = event => this . onvalidatemerchant ( event , options . onValidateMerchant ) ;
28
- this . session . onpaymentauthorized = event => this . onpaymentauthorized ( event , options . onPaymentAuthorized ) ;
29
- this . session . oncancel = event => this . oncancel ( event , options . onCancel ) ;
26
+ this . session . onvalidatemerchant = event => {
27
+ void this . onvalidatemerchant ( event , options . onValidateMerchant ) ;
28
+ } ;
29
+ this . session . onpaymentauthorized = event => {
30
+ void this . onpaymentauthorized ( event , options . onPaymentAuthorized ) ;
31
+ } ;
32
+
33
+ this . session . oncancel = event => {
34
+ this . oncancel ( event , options . onCancel ) ;
35
+ } ;
30
36
31
37
if ( typeof options . onPaymentMethodSelected === 'function' ) {
32
- this . session . onpaymentmethodselected = event => this . onpaymentmethodselected ( event , options . onPaymentMethodSelected ) ;
38
+ this . session . onpaymentmethodselected = event => {
39
+ void this . onpaymentmethodselected ( event , options . onPaymentMethodSelected ) ;
40
+ } ;
33
41
}
34
42
35
43
if ( typeof options . onShippingContactSelected === 'function' ) {
36
- this . session . onshippingcontactselected = event => this . onshippingcontactselected ( event , options . onShippingContactSelected ) ;
44
+ this . session . onshippingcontactselected = event => {
45
+ void this . onshippingcontactselected ( event , options . onShippingContactSelected ) ;
46
+ } ;
37
47
}
38
48
39
49
if ( typeof options . onShippingMethodSelected === 'function' ) {
40
- this . session . onshippingmethodselected = event => this . onshippingmethodselected ( event , options . onShippingMethodSelected ) ;
50
+ this . session . onshippingmethodselected = event => {
51
+ void this . onshippingmethodselected ( event , options . onShippingMethodSelected ) ;
52
+ } ;
41
53
}
42
- /* eslint-enable @typescript-eslint/no-misused-promises */
43
54
}
44
55
45
56
/**
0 commit comments