You can't directly delete a payment link in Stripe. Instead, you deactivate it.
Here's how to effectively disable a payment link and prevent further use:
Deactivating a Payment Link
To deactivate a payment link, you need to set its active
attribute to false
. This will effectively stop the payment link from accepting new payments.
Steps to Deactivate a Payment Link:
-
Access the Stripe Dashboard: Log into your Stripe account.
-
Navigate to Payment Links: Go to the "Payment Links" section. (You may find it under "Products" or by searching in the dashboard.)
-
Select the Payment Link: Find the specific payment link you want to disable.
-
Deactivate the Link:
- Using the Dashboard: Look for an "Active" toggle or a button labeled "Deactivate," "Disable," or similar. Switch the toggle or click the button. This will change the link's status to inactive.
- Using the Stripe API: If you're using the Stripe API, you would update the payment link object and set the
active
parameter tofalse
. Here's an example using a simplified hypothetical API call:
stripe.paymentLinks.update('plink_123ABC456DEF', { active: false, });
Replace
'plink_123ABC456DEF'
with the actual ID of your payment link.
Impact of Deactivation
- No New Payments: Once deactivated, the payment link will no longer accept new payments. Customers who try to use the link will likely encounter an error message or be redirected.
- Data Retention: Deactivating a payment link doesn't delete the data associated with it. Stripe retains the link's configuration and any payment history. This is useful for record-keeping and reporting.
- Reactivation (If Needed): You can reactivate a deactivated payment link later by setting the
active
attribute back totrue
.
Important Considerations:
- Inform Your Customers: If you've shared the payment link with customers, it's a good practice to inform them that the link is no longer active and provide alternative payment methods, if available.
- Review Integrations: If the payment link is integrated into any websites or applications, update those integrations to remove the link or replace it with a new one.
In summary, while you cannot delete a payment link in Stripe, deactivating it effectively prevents it from being used for future payments.