verify card data. javascript to accept cards and get token