File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 6262 customData: customData
6363 };
6464
65+ console .log (JSON .stringify (tokenData));
66+ appleSession .abort ();
67+
68+ return ;
69+
6570 let headers = new Headers ();
6671 headers .append (' X-Requested-With' , ' XMLHttpRequest' );
6772 headers .append (' Content-Type' , ' application/json; charset=utf-8' );
115120 }
116121
117122 if (typeof ApplePaySession .onsessioncreate == ' function' ) {
118- ApplePaySession . onsessioncreate ( {
123+ let event = {
119124 ' amount' : orderAmount,
120125 ' request' : applePayPaymentRequest,
121126 ' session' : appleSession,
122127 ' customData' : customData,
123- });
128+ };
129+
130+ ApplePaySession .onsessioncreate (event );
131+
132+ applePayPaymentRequest = event .request ;
133+ appleSession = event .session ;
134+ customData = event .customData ;
124135 }
125136
126137 appleSession .begin ();
You can’t perform that action at this time.
0 commit comments