You can set payment link expiration time from Xendit Dashboard. Below is the step that you can take:
- Go to Settings > Checkout > Payment Settings > Default Payment Link Duration. From there you can set your desired expiration time for your payment link.
FAQ
- What if the order status changed to Canceled before the expiration time that I’ve set?
If you ever found this issue, please kindly check this configuration from your WooCommerce dashboard:
Settings > Products > Inventory > Hold stock
If you find the Hold stock field is populated with a certain amount of time, then the order that hasn’t been paid before that time will be Canceled. However, the payment link would still be payable because the expiration time settings is configured in the Xendit Dashboard.
The best practice is to have the Hold stock field blank so your orders won’t be Canceled at all before the expiration time.