text: import { Checkout } from 'checkout-node-sdk';
  
  const cko = new Checkout('sk_XXXX', { pk: 'pk_YYYY' });
  
  try {
  	const token = await cko.tokens.request({
  		// infered type: "applepay"
  		token_data: {
  			version: 'EC_v1',
  			data: 't7GeajLB9skXB6QSWfEpPA4WPhDqB7ekdd+F7588arLzve...',
  			signature: 'MIAGCSqGbGUg...',
  			header: {
  				ephemeralPublicKey: 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgA...',
  				transactionId: '3cee89679130a4b...',
  			},
  		},
  	});
  } catch (err) {
  	console.log(err.name);
  }
  