Handling credit card info on site

Hi

I'm using European payment provider which is providing me API to communicate with them. There is a step where I need to ask from a buyer credit card info (number, expiration and CVV) so I can pass that info to that payment gateway via API.

Is that even allowed? How secure is that?