# Automatically collect tax on Payment Links Learn how to calculate and collect tax on a payment page without writing any code. > [Masuk](https://dashboard.stripe.com/settings/tax) atau [mendaftar](https://dashboard.stripe.com/register) Stripe untuk mengaktifkan Stripe Tax. You can use Stripe Tax with [Payment Links](https://stripe.com/payments/payment-links) to automatically calculate and collect tax on a payment page and share a link to it with your customers, without writing any code. [Watch on YouTube](https://www.youtube.com/watch?v=aotUFvYtmys) > #### Kewajiban pajak transfer ke Stripe > > Jika Anda menjual produk digital, [Managed Payments](https://docs.stripe.com/payments/managed-payments/tax-compliance.md) memungkinkan Anda untuk terbebas dari kewajiban pajak ke Stripe sehingga kami bertanggung jawab langsung untuk menangani pajak penjualan, PPN, atau GST secara global. Sebagai solusi merchant tercatat, Managed Payments juga menangani pencegahan penipuan, manajemen sengketa, dan dukungan pelanggan pada semua transaksi. #### Dashboard To [create a payment link](https://docs.stripe.com/payment-links/create.md) in the Dashboard: 1. Open the [Payment Links](https://dashboard.stripe.com/payment-links/create) page. 1. Click **+ New**. 1. Fill out the details. 1. Enable **Collect tax automatically**. To update an existing payment link in the Dashboard: 1. Open the [Payment Links](https://dashboard.stripe.com/payment-links) page. 1. Select the payment link you want to update. 1. On the payment link details page, click the overflow menu (⋯), then click **Edit**. 1. In the payment link editor, select **Collect tax automatically** to enable automatic tax collection on this payment link. 1. (Optional) Select **Collect customers’ addresses** to improve tax calculation accuracy. The more information you provide, the more precise the calculation. 1. Click **Update link** to save your changes. #### API To create a payment link with automatic tax collection, pass the `automatic_tax[enabled]` parameter to the [Payment Link API](https://docs.stripe.com/api/payment-link/create.md) endpoint: ```curl curl https://api.stripe.com/v1/payment_links \ -u "<>:" \ -d "automatic_tax[enabled]=true" \ -d "line_items[0][price]={{PRICE_ID}}" \ -d "line_items[0][quantity]=1" ``` To update an existing payment link in the API, pass the `automatic_tax[enabled]` parameter to the [Payment Link API](https://docs.stripe.com/api/payment-link/update.md) endpoint: ```curl curl https://api.stripe.com/v1/payment_links/{{PAYMENTLINK_ID}} \ -u "<>:" \ -d "automatic_tax[enabled]=true" ``` ## Optional: Perbarui produk dan harga Anda Stripe Tax uses information stored on your products and prices to calculate tax, including tax codes and tax behavior. If you don’t explicitly configure these, Stripe Tax uses the defaults from your [Tax Settings](https://dashboard.stripe.com/settings/tax). For detailed setup instructions, see [Specify product tax codes and tax behavior](https://docs.stripe.com/tax/products-prices-tax-codes-tax-behavior.md). ## See also - [Test your tax integration](https://docs.stripe.com/tax/testing.md) - [Reporting and filing](https://docs.stripe.com/tax/reports.md) - [Use Stripe Tax with Connect](https://docs.stripe.com/tax/connect.md)