Thanks for dropping by the Community space, @DevangiPrajapati123.
Yes, you'll have to use either QuickBooks Online or Desktop when using QuickBooks Payments.
In setting up the payment gateway using QBO, you can check out this easy tutorial guide: How to Set Up QuickBooks Payments.
If you want seamless integration with Desktop, you can refer to the following links:
Payments for QuickBooks Desktop
Let your customers pay invoices online
Once you have the QuickBooks version that's right for your business, you can then integrate it with a nopcommerce app that's available on our App Store.
Tap the Reply button and leave a comment if you have further clarifications. I'm here and ready to help. Have a great day!