Netsuite Credit Card

I've been ask to create a script, I would prefer a workflow, that when an invoice is created, the script copy the credit card info from the customer to the invoice.

I know I have to use nlapiGetFieldValue('ccnumber') but that's about it.

Can someone help me ?