Guidance Needed on using CiviCRM API + PayPal to Complete Membership Contribution Payment
Although I have no experience with PayPal I would expect that the payment processor makes sure the payment details get passed on, AFAIK there is no API for credit card details nor is it required! Perhaps this might give you some clues: https://docs.civicrm.org/dev/en/latest/extensions/payment-processors/