Is there any way we can restrict the prepaid card payments? Like VISA gift cards and etc?

We will save the card while making a purchase there is a possibility we have to make the payment again. In this case, we want to restrict the prepaid card payments

If you use autocomplete=false, you can authorize the card without capturing it just yet. In the response there will be a Payment object, which will have a card object, which has a prepaid_type field (currently can be set to “UNKNOWN_PREPAID_TYPE”, “NOT_PREPAID”, or “PREPAID”). Thus, if you see the card is “PREPAID”, you can simply cancel the payment if you do not want to charge prepaid cards.

How can we edit this or how do we change it

Can you clarify what you mean @Flix091? What are you trying to change or edit?

can we check the card payment type(prepaid or not) before charging the card?

In the Payment object there will be card_details->card->prepaid_type with the possible attributes of UNKNOWN_PREPAID_TYPE, NOT_PREPAID, or PREPAID

Is this before or after charging?

You would be able to see it in the AUTHORIZED state as I referred to originally (so before completing the payment, before the charge), if you set autocomplete to false