To create a link that allows freezing funds on the client's card, you can use the Stripe PaymentIntents API to block the card. To do this, you need to create a PaymentIntent with the capture_method parameter set to "manual". This method authorizes the payment without immediately capturing it, effectively freezing the funds.
Here is a general outline of the process:
Creating a PaymentIntent: Set the capture_method parameter to "manual" when creating the PaymentIntent. This will allow you to authorize the payment and block the funds on the client's card.
Confirming the PaymentIntent: Use the Stripe API to confirm the PaymentIntent, which will result in the blocking of funds.
Blocking or canceling: You can block the funds later if the transaction is completed, or cancel the PaymentIntent to release the block.
This approach allows for effective management of pre-authorization using the Stripe API.