0

Suppose I want to write a membership payment app. In this program, I want to give an address and members should send their membership fee to this address:

  • How can members prove that they paid the fee ?
  • What do I have to get from members to prove it?
  • how app should check and verify the owner of transaction ?

I know there is software for this, but I want to know how this system works.

6
  • i don't want use different address for each membership transaction.
    – bitquest
    Dec 19, 2020 at 20:58
  • 1
    you still should Dec 19, 2020 at 21:00
  • let me describe a scenario : I get 1btc from user-A to address-A and 2btc from user-B to address-B now app have 3btc and app want send 3btc to another address , how it is possible to send 3btc from 2 different addresses in one transaction ?
    – bitquest
    Dec 19, 2020 at 21:03
  • 1
    Transactions don't really have a "from" address. They have inputs, which spend outputs created by previous transactions. It doesn't matter what addresses those outputs were sent to. Think of it as melding and reforging coins. Dec 19, 2020 at 21:19
  • 1
    Every key corresponds to one address. Wallet software will do all of this for you. Dec 19, 2020 at 22:43

1 Answer 1

2

If you are using WordPress to create, manage the website and something like Woocommerce plugin to manage the subscriptions/memberships, BTCPay will help you accept bitcoin payments: https://docs.btcpayserver.org/WooCommerce/

There will be no address reuse and all your issues will be resolved.

How can members prove that they paid the fee ?

Transaction details, Invoice etc.

What do I have to get from members to prove it?

Reusing address is not a good practice. Membership websites can manage things differently and use new address for each membership payment. Once the transaction is confirmed it is updated in the database for the user automatically.

how app should check and verify the owner of transaction ?

Owner of transaction should have credentials to login and use the membership options. App will check the database and know if user has paid for membership or not.

If you are using something else to create the website and manage subscriptions/memberships, I would suggest creating an issue in BTCPay GitHub repository and share relevant details.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.