If you want to offer Bitcoin payments for your products in Magento, you will need to use a payment gateway that supports Bitcoin, such as BitPay or Coinbase. These payment gateways will handle the conversion of Bitcoin to your local currency and deposit the funds into your account.
When a customer selects Bitcoin as their payment method, the payment gateway will generate a unique Bitcoin address for the customer to send their payment to. The amount of Bitcoin the customer needs to send will be calculated based on the current exchange rate at the time of the transaction.
To set this up technically in Magento, you will need to integrate the chosen payment gateway's API into your store. This will involve configuring the payment method in Magento and setting up the API credentials provided by the payment gateway. Once the integration is complete, the Bitcoin payment option will be available for customers to select during checkout.
It's important to note that due to the volatility of Bitcoin prices, you may want to consider setting up a system to regularly update the exchange rate used for calculating Bitcoin payments. This can be done using a third-party service or plugin that provides live Bitcoin exchange rates.