Thanks @Bunty for the reply.
Actually this API is to add a customer’s credit card to vault is this, https://shopify.dev/api/admin/rest/reference/sales-channels/payment#create_payment_session-2021-07
It requires you to send the actual card details in the Shopify API request.