Bitcoin Forum
May 10, 2024, 02:55:48 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: 1 2 [All]
  Print  
Author Topic: Bitcoin wallet need this function - Payment Callback  (Read 463 times)
zenchew (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
April 17, 2019, 11:14:37 AM
Last edit: April 17, 2019, 07:57:49 PM by zenchew
 #1

Accepting bitcoin as a merchant is never been that smooth other than its highly volatile prices and slow confirmation (1mb block size really?). Now try accepting bitcoin payment for customer to purchase your product/services is another big issue as well.

Bitcoin wallet (especially light wallet) need to have a proper callback function without downloading the whole pain in the ass 150 GB blockchain file into our VPS/server or relying on some 3rd party API like blockchain.info. Paypal/Mastercard/Visa has much better callback system than bitcoin system.

Do you support a light wallet to have callback function that will automatically call to your server whenever a payment is received, how much received, tx id, confirmation status using programming script in JSON format that works with Java/PHP?

Automatic Payment Callback JSON

Automatic callback function to your serverside script (http://127.0.0.1/myscript) without the need of cronjob or manually curl the wallet. So that your computer will automatically detect transaction and mark paid invoices.

Xpub Generate Payment Address (Exists in electrum merchant)
{
   "address": "38H49jK1uvm8dLgykM8LM2nSBN1eK24wj9",
   "index": 0
}

Unconfirmed TX
{
   "address": "38H49jK1uvm8dLgykM8LM2nSBN1eK24wj9",
   "amount": 2000000,
   "txid" : "56d1cc5ec0a531b783680d880fd4b0a6bb62242162c1ead252bf2fc29c14e9d5",
   "status": "0"
}

Partially confirmed TX (1~2 confirmations)
{
   "address": "38H49jK1uvm8dLgykM8LM2nSBN1eK24wj9",
   "amount": 2000000,
   "txid" : "56d1cc5ec0a531b783680d880fd4b0a6bb62242162c1ead252bf2fc29c14e9d5",
   "status": "1"
}

Confirmed TX (>3 confirmations)
{
   "address": "38H49jK1uvm8dLgykM8LM2nSBN1eK24wj9",
   "amount": 2000000,
   "txid" : "56d1cc5ec0a531b783680d880fd4b0a6bb62242162c1ead252bf2fc29c14e9d5",
   "status": "2"
}

Related Article :

https://developer.coingate.com/docs/payment-callback

https://www.blockchain.com/api/api_receive

https://www.blockonomics.co/views/api.html


Pardon for my noobie programming skills, Im not from CS major Grin
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715309748
Hero Member
*
Offline Offline

Posts: 1715309748

View Profile Personal Message (Offline)

Ignore
1715309748
Reply with quote  #2

1715309748
Report to moderator
1715309748
Hero Member
*
Offline Offline

Posts: 1715309748

View Profile Personal Message (Offline)

Ignore
1715309748
Reply with quote  #2

1715309748
Report to moderator
1715309748
Hero Member
*
Offline Offline

Posts: 1715309748

View Profile Personal Message (Offline)

Ignore
1715309748
Reply with quote  #2

1715309748
Report to moderator
hatshepsut93
Legendary
*
Offline Offline

Activity: 2968
Merit: 2147



View Profile
April 17, 2019, 11:30:11 AM
 #2

Do you think developers are that stupid and have never though about something like this? Well, my electrum wallet sends me system notification whenever my wallet receives a transaction, and this was the case for a long time. Read the documentations for bitcoin libraries and google before coming here complaining how Bitcoin needs some functions, as if it doesn't have them yet. Plus there are third-party services that watch addresses and send notifications, though I doubt that they are suitable for programming at scale.

.BEST.CHANGE..███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
zenchew (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
April 17, 2019, 11:41:49 AM
 #3

Do you think developers are that stupid and have never though about something like this? Well, my electrum wallet sends me system notification whenever my wallet receives a transaction, and this was the case for a long time. Read the documentations for bitcoin libraries and google before coming here complaining how Bitcoin needs some functions, as if it doesn't have them yet. Plus there are third-party services that watch addresses and send notifications, though I doubt that they are suitable for programming at scale.

I have read electrum/electrum merchant doc, their wallet don't have the required functions like callback upon detecting transactions/confirming transactions atleast without using any cronjob. If any paypal/mastercard service need to use cronjob to accept payment I would gladly listen to it.
ginobitcoiner
Full Member
***
Offline Offline

Activity: 700
Merit: 101


BBOD Trading Platform


View Profile
April 17, 2019, 12:05:09 PM
 #4

I don't think it needs to be done, the available system is better than what you want and you imagine.
once again I explained that bitcoin does not need that.

Beerwizzard
Full Member
***
Offline Offline

Activity: 924
Merit: 148



View Profile
April 17, 2019, 12:10:09 PM
 #5

If such function would be implemented without any 3rd party it would be even worse than current PayPal / Bank chargebacks. In case with a chargeback via bank you still have to submit a chargeback request that would be reviewed by a special team that would refuse to make a chargeback if they find that that was not a fraudulent transaction.
If every single person would be able to make a chargeback via his wallet then it would probably open big opportunities for scammers.
zenchew (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
April 17, 2019, 12:21:01 PM
 #6

If such function would be implemented without any 3rd party it would be even worse than current PayPal / Bank chargebacks. In case with a chargeback via bank you still have to submit a chargeback request that would be reviewed by a special team that would refuse to make a chargeback if they find that that was not a fraudulent transaction.
If every single person would be able to make a chargeback via his wallet then it would probably open big opportunities for scammers.

I don't get your posts, callback function is just to let your system know that this particular order is confirmed paid and ready to be shipped, nothing to do with chargeback at all. Unless you want to be awake 24hr staring at the bitcoin wallet to check incoming payment then its different story.
NeuroticFish
Legendary
*
Offline Offline

Activity: 3668
Merit: 6382


Looking for campaign manager? Contact icopress!


View Profile
April 17, 2019, 12:29:11 PM
 #7

If such function would be implemented without any 3rd party it would be even worse than current PayPal / Bank chargebacks. In case with a chargeback via bank you still have to submit a chargeback request that would be reviewed by a special team that would refuse to make a chargeback if they find that that was not a fraudulent transaction.
If every single person would be able to make a chargeback via his wallet then it would probably open big opportunities for scammers.

I don't get your posts, callback function is just to let your system know that this particular order is confirmed paid and ready to be shipped, nothing to do with chargeback at all. Unless you want to be awake 24hr staring at the bitcoin wallet to check incoming payment then its different story.

I clicked on this thread expecting details on exactly what @Beerwizzard assumed: that you propose some sort of chargeback.
But unlike him, I've read your post and understood your point (although, as others said, you may not actually need it)
However, maybe my English is not great, or maybe your topic title is misleading for the ones reading only the title.  Wink

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
hatshepsut93
Legendary
*
Offline Offline

Activity: 2968
Merit: 2147



View Profile
April 17, 2019, 12:38:56 PM
 #8

Do you think developers are that stupid and have never though about something like this? Well, my electrum wallet sends me system notification whenever my wallet receives a transaction, and this was the case for a long time. Read the documentations for bitcoin libraries and google before coming here complaining how Bitcoin needs some functions, as if it doesn't have them yet. Plus there are third-party services that watch addresses and send notifications, though I doubt that they are suitable for programming at scale.

I have read electrum/electrum merchant doc, their wallet don't have the required functions like callback upon detecting transactions/confirming transactions atleast without using any cronjob. If any paypal/mastercard service need to use cronjob to accept payment I would gladly listen to it.

http://docs.electrum.org/en/latest/protocol.html

Electrum server uses blockchain.address.subscribe to start listening to transactions for an address, and if any are found in a new block, it sends notification to the client. And client somehow reacts to these notifications to then send a system notification and update the ui, I'm sure you can hook into it if you try harder.

Edit: I don't even know Python, but I'm sure that this is close to what you are looking for: https://github.com/spesmilo/electrum/blob/9b4e490e3cffe07c0f5a5e373b0834c6915baac1/electrum/gui/qt/main_window.py#L651

.BEST.CHANGE..███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
okala
Full Member
***
Offline Offline

Activity: 980
Merit: 114


View Profile
April 17, 2019, 01:03:27 PM
 #9

I believe bitcoin already have the necessary functions that is needed and suggesting a call back function is an unnecessary demands on the developers. But call back function if established and in such that one can cancel unconfirmed transactions and found returned back to the originating wallet will be better and that will help merchant on there in store transactions.
xWolfx
Member
**
Offline Offline

Activity: 322
Merit: 20

Donating 10% to charity


View Profile
April 17, 2019, 01:10:40 PM
 #10


I don't get your posts, callback function is just to let your system know that this particular order is confirmed paid and ready to be shipped, nothing to do with chargeback at all. Unless you want to be awake 24hr staring at the bitcoin wallet to check incoming payment then its different story.

I also understand your point, to check the current state of the transactions is necessary to take a look at the wallet.

I'm not particularly sure if any wallet got that function and i will definitely check later and write here depending on if i find something. I don't think that Bitcoin developers themselves should implement something like that for now and maybe just maybe it is only necessary for wallets to do so.

A lot of people will see it as something not really important or redundant.
avikz
Legendary
*
Offline Offline

Activity: 3080
Merit: 1500



View Profile
April 17, 2019, 02:08:21 PM
 #11

Accepting bitcoin as a merchant is never been that smooth other than its highly volatile prices and slow confirmation (1mb block size really?). Now try accepting bitcoin payment for customer to purchase your product/services is another big issue as well.

Bitcoin wallet (especially light wallet) need to have a proper callback function without downloading the whole pain in the ass 150 GB blockchain file into our VPS/server or relying on some 3rd party services like blockchain.info. Paypal/Mastercard/Visa has much better callback system than bitcoin system

Is callback is the correct term to use here? It literally means that a peraon can callback the transaction, similar to the chargeback facility that Paypal uses! Am I missing something here?

Or are you referring to an information functionality that tells you how much bitcoin someone sent to your wallet just after initiating it?

If the seond one is your concern, start using greenwallet. It comes with this functionality for both incoming and outgoing transactions.

lyks15
Full Member
***
Offline Offline

Activity: 546
Merit: 100



View Profile
April 17, 2019, 02:41:37 PM
 #12

I think no one merchant will agree on this proposal. This will be a big disadvantage from every merchant because the service or fhe product will the merchat will be ruin when the transaction will return or refunded. So I think bitcoin industry will not develop this kind of function.

▼                          NΛTURΛL8       MAKING POKER FUN AGAIN                        ▼
►          $500k Rush & Cash Monthly   |   200% First Deposit   |   $150k Short Deck Hold'em          ◄
▲          [   ● FACEBOOK   ]     Download The App Here     [     ● TWITTER     ]          ▲
jvdp
Hero Member
*****
Offline Offline

Activity: 1148
Merit: 523


CryptoTalk.Org - Get Paid for every Post!


View Profile
April 17, 2019, 02:53:59 PM
 #13

I think no one merchant will agree on this proposal. This will be a big disadvantage from every merchant because the service or fhe product will the merchat will be ruin when the transaction will return or refunded. So I think bitcoin industry will not develop this kind of function.

Merchants needs to work on the accepting bitcoin with the perfect gateway which can move the transaction smoother than the regular transaction takes time of payment and pending transactions.
We need to work on lighting network and segwit payment method for faster transaction for the people wishes to have bitcoin acceptance merchant deals.

 
                                . ██████████.
                              .████████████████.
                           .██████████████████████.
                        -█████████████████████████████
                     .██████████████████████████████████.
                  -█████████████████████████████████████████
               -███████████████████████████████████████████████
           .-█████████████████████████████████████████████████████.
        .████████████████████████████████████████████████████████████
       .██████████████████████████████████████████████████████████████.
       .██████████████████████████████████████████████████████████████.
       ..████████████████████████████████████████████████████████████..
       .   .██████████████████████████████████████████████████████.
       .      .████████████████████████████████████████████████.

       .       .██████████████████████████████████████████████
       .    ██████████████████████████████████████████████████████
       .█████████████████████████████████████████████████████████████.
        .███████████████████████████████████████████████████████████
           .█████████████████████████████████████████████████████
              .████████████████████████████████████████████████
                   ████████████████████████████████████████
                      ██████████████████████████████████
                          ██████████████████████████
                             ████████████████████
                               ████████████████
                                   █████████
.CryptoTalk.org.|.MAKE POSTS AND EARN BTC!.🏆
traderethereum
Hero Member
*****
Offline Offline

Activity: 2870
Merit: 574


Seabet.io | Crypto-Casino


View Profile WWW
April 17, 2019, 03:01:07 PM
 #14

Unfortunately, I don't know the code because I don't learn about programming. But I only know that when I don't want to wait for a long time, I only need to use a high fee to get a fast confirming in the transaction and so far, it runs smoothly for me, and I don't have any problem to pay in a fast time.
I think the time consuming for the transaction will be back to the fee that we used, and I think we could use the higher fee, so we don't need to wait for a long time like what I did. But it's up to you because you are the person who makes every transaction Grin

Kakmakr
Legendary
*
Offline Offline

Activity: 3444
Merit: 1957

Leading Crypto Sports Betting & Casino Platform


View Profile
April 17, 2019, 03:05:59 PM
 #15

The actual Bitcoin protocol and the Blockchain should never have a function like that, because once a bitcoin transaction is done, it should never be reversible for obvious reasons.  Roll Eyes  Yes, third party services that are built on top of Bitcoin can have that function, because they can use their own internal database and these database transactions can be delayed or cancelled without affecting the actual Blockchain.  Wink

Bitcoin was built for people not to rely on third party services, so this is also not the ideal solution.  Roll Eyes

..Stake.com..   ▄████████████████████████████████████▄
   ██ ▄▄▄▄▄▄▄▄▄▄            ▄▄▄▄▄▄▄▄▄▄ ██  ▄████▄
   ██ ▀▀▀▀▀▀▀▀▀▀ ██████████ ▀▀▀▀▀▀▀▀▀▀ ██  ██████
   ██ ██████████ ██      ██ ██████████ ██   ▀██▀
   ██ ██      ██ ██████  ██ ██      ██ ██    ██
   ██ ██████  ██ █████  ███ ██████  ██ ████▄ ██
   ██ █████  ███ ████  ████ █████  ███ ████████
   ██ ████  ████ ██████████ ████  ████ ████▀
   ██ ██████████ ▄▄▄▄▄▄▄▄▄▄ ██████████ ██
   ██            ▀▀▀▀▀▀▀▀▀▀            ██ 
   ▀█████████▀ ▄████████████▄ ▀█████████▀
  ▄▄▄▄▄▄▄▄▄▄▄▄███  ██  ██  ███▄▄▄▄▄▄▄▄▄▄▄▄
 ██████████████████████████████████████████
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄
█  ▄▀▄             █▀▀█▀▄▄
█  █▀█             █  ▐  ▐▌
█       ▄██▄       █  ▌  █
█     ▄██████▄     █  ▌ ▐▌
█    ██████████    █ ▐  █
█   ▐██████████▌   █ ▐ ▐▌
█    ▀▀██████▀▀    █ ▌ █
█     ▄▄▄██▄▄▄     █ ▌▐▌
█                  █▐ █
█                  █▐▐▌
█                  █▐█
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀█
▄▄█████████▄▄
▄██▀▀▀▀█████▀▀▀▀██▄
▄█▀       ▐█▌       ▀█▄
██         ▐█▌         ██
████▄     ▄█████▄     ▄████
████████▄███████████▄████████
███▀    █████████████    ▀███
██       ███████████       ██
▀█▄       █████████       ▄█▀
▀█▄    ▄██▀▀▀▀▀▀▀██▄  ▄▄▄█▀
▀███████         ███████▀
▀█████▄       ▄█████▀
▀▀▀███▄▄▄███▀▀▀
..PLAY NOW..
dothebeats
Legendary
*
Offline Offline

Activity: 3640
Merit: 1352


Cashback 15%


View Profile
April 17, 2019, 03:16:48 PM
 #16

Third-party services can integrate such function on their own systems if they so do like. Personally, I find this as a useful tool since I'll be notified on the get-go whenever someone pays me, though I don't find it necessary for wallets to do this. AFAIK electrum does this everytime I am receiving something, and has never failed not even a single time to notify me that I have something coming in.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
franky1
Legendary
*
Offline Offline

Activity: 4214
Merit: 4475



View Profile
April 17, 2019, 03:18:29 PM
 #17

i think what the topic creator is asking is about full bitcoin nodes/spv which interact with ntwork nodes (random connections)

things like electrum and other lite wallets rely on more specified/listed servers as a dependant parent (third party)
thus as the topic creator said not relying on third party so suggesting electrum is not the solution to the topic creators issue.

the thing the topic creator is also hinting is that he cant see if his recent transaction is confirmed independently (using a full node/spv) untill the blockchain is fully downloaded. (stored full node / then pruned spv)
...

the topic creator then uses an example of having full node peers giving status updates of particular transactions using an example that resembles that of what lite wallets and webserver api's do. i feel the topic creator is just saying there needs to be a way to see confirmed balance without having too wait for the full sync when using a full node or SPV AND not having to rely on specific server/third parties

i did approach the topics scenario firstly with the mindset that the solution is to simply get a node to bloomfilter particular addresses for updated info from random peers.
pro: independence from specific 3rd party as request can be made to any relay network node
con: the user needs to regularly spam request its random peers to get update info

i also approached the topics scenario with the mindset that getting random peers to temporarily monitor said bloomfiltered addresses for a short period (1 hour-1day) and then the peers specially announce when certain known tx's appear.
pro: independence from specific 3rd party server
con: temporary dependant on certain peer for a temporary period
con: adds extra 'parenting' services to peers who are the 'temporary monitor'.
con: peers get to know certain addresses other peers are interested in (the privacy concern of bloom filtering being abused in such a way)

the way i see a solution would be to have a UTXO set milestoned periodically and also have beside it a updating utxo set that shows the relevant changes since the milestone.

this way a node can get updated info from the random relay network, without having to download the entire blockchain. and without having to hand specific peers a list of specific addresses to monitor

that way without having to download the full blockchain first. without having to list specific addresses, network peers can request updated info on confirmed transactions from network peers independently via the main relay network


I DO NOT TRADE OR ACT AS ESCROW ON THIS FORUM EVER.
Please do your own research & respect what is written here as both opinion & information gleaned from experience. many people replying with insults but no on-topic content substance, automatically are 'facepalmed' and yawned at
vv181
Legendary
*
Offline Offline

Activity: 1932
Merit: 1273


View Profile
April 17, 2019, 03:20:10 PM
 #18

~
Is callback is the correct term to use here? It literally means that a peraon can callback the transaction, similar to the chargeback facility that Paypal uses! Am I missing something here?

Or are you referring to an information functionality that tells you how much bitcoin someone sent to your wallet just after initiating it?

If the seond one is your concern, start using greenwallet. It comes with this functionality for both incoming and outgoing transactions.
I don't know the correct programming term, but its clearly stated OP needs a 'callback' function for maybe OP e-commerce site to verify the confirmation of the Bitcoin, and make the product ready to be shipped.


OP Why wouldn't you use a crypto payments processor? I believe it could save you a lot of time, coingate, coinpayments are a few examples.
zenchew (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
April 17, 2019, 06:05:38 PM
 #19


Is callback is the correct term to use here? It literally means that a peraon can callback the transaction, similar to the chargeback facility that Paypal uses! Am I missing something here?

Or are you referring to an information functionality that tells you how much bitcoin someone sent to your wallet just after initiating it?

If the seond one is your concern, start using greenwallet. It comes with this functionality for both incoming and outgoing transactions.

Will look into greenwallet details later, thanks for suggesting.

I think no one merchant will agree on this proposal. This will be a big disadvantage from every merchant because the service or fhe product will the merchat will be ruin when the transaction will return or refunded. So I think bitcoin industry will not develop this kind of function.
The actual Bitcoin protocol and the Blockchain should never have a function like that, because once a bitcoin transaction is done, it should never be reversible for obvious reasons.  Roll Eyes  Yes, third party services that are built on top of Bitcoin can have that function, because they can use their own internal database and these database transactions can be delayed or cancelled without affecting the actual Blockchain.  Wink

Bitcoin was built for people not to rely on third party services, so this is also not the ideal solution.  Roll Eyes

Payment Callback and Payment Chargeback is not the same, please google to do some research.

Callback - https://www.google.com/search?q=Paypal+callback
Chargeback - https://www.google.com/search?q=Paypal+chargeback

~
Is callback is the correct term to use here? It literally means that a peraon can callback the transaction, similar to the chargeback facility that Paypal uses! Am I missing something here?

Or are you referring to an information functionality that tells you how much bitcoin someone sent to your wallet just after initiating it?

If the seond one is your concern, start using greenwallet. It comes with this functionality for both incoming and outgoing transactions.
I don't know the correct programming term, but its clearly stated OP needs a 'callback' function for maybe OP e-commerce site to verify the confirmation of the Bitcoin, and make the product ready to be shipped.


OP Why wouldn't you use a crypto payments processor? I believe it could save you a lot of time, coingate, coinpayments are a few examples.

Currently using 1% fee callback API, I believed this simple function can be implemented at wallet level without even the need of 3rd party API to do it, that's why I started this thread.

Bdstar
Sr. Member
****
Offline Offline

Activity: 728
Merit: 263



View Profile
April 17, 2019, 06:45:23 PM
 #20

I don't think it is a good idea.Because if This method is applied then there will be more chances of getting scammed.And also bitcoin will be more negative to people.Bitcoin had a problem with transaction speed which is recovering by Segwit and others.So, i don't think bitcoin has to improve in any area of it now.       
zenchew (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
April 17, 2019, 07:49:53 PM
 #21

I don't think it is a good idea.Because if This method is applied then there will be more chances of getting scammed.And also bitcoin will be more negative to people.Bitcoin had a problem with transaction speed which is recovering by Segwit and others.So, i don't think bitcoin has to improve in any area of it now.       

By automatically confirming your invoice through bitcoin payment in your own application will increase chance to being scammed? Which means everytime you use credit card / paypal you are scammed because the merchant know you have successfully paid the amount? How does a callback function has to do with transaction speed, it will callback to your system the moment the amount is paid no matter it is 0s or 10min or 1day.
vv181
Legendary
*
Offline Offline

Activity: 1932
Merit: 1273


View Profile
April 19, 2019, 03:38:11 PM
 #22

~
Currently using 1% fee callback API, I believed this simple function can be implemented at wallet level without even the need of 3rd party API to do it, that's why I started this thread.

I guess https://docs.btcpayserver.org/#how-it-works is what you need, zero fees, and no 3rd party intermediary. It requires some code though if you can't do it on your own I suggest hiring someone professional to the job.
tungaqhd
Hero Member
*****
Offline Offline

Activity: 1540
Merit: 508


View Profile
April 19, 2019, 05:26:00 PM
 #23

There are already many services that support payment callback to integrate to your website for online checkout with bitcoin like coinpayments, but the biggest problem are their high fees and slow confirmation.
zenchew (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
April 20, 2019, 04:14:35 AM
 #24

~
Currently using 1% fee callback API, I believed this simple function can be implemented at wallet level without even the need of 3rd party API to do it, that's why I started this thread.

I guess https://docs.btcpayserver.org/#how-it-works is what you need, zero fees, and no 3rd party intermediary. It requires some code though if you can't do it on your own I suggest hiring someone professional to the job.

my question for btcpay :

1. downloading 200gb of blockchain file to any small-medium vps for business is not feasible, maybe a huge business like amazon might doable.

2. how does btcpay know you have paid the address and how does it callback your server when the said amount is paid? (maybe I didnt read the doc clearly, but cant find any nor in their code as well)
Pursuer
Legendary
*
Offline Offline

Activity: 1638
Merit: 1163


Where is my ring of blades...


View Profile
April 21, 2019, 07:15:17 AM
 #25

"callback" is a very bad choice of words since as you can see people are already confusing it with "chargeback" which is impossible with bitcoin. you should have used the term "Payment Notification" instead.

and for that it will come down to your needs. if it is a big business processing lots of transactions per day then you must run a full node on your own and the setup which is not even expensive does not matter since you are already processing a lot of transactions and need that kind of setup. and with a full node you get the "notifications" when you receive a payment, and you can have a lot of other functionalities by using the JSON-RPC commands of the full node and write the simplest code on top of it.

if it is a small business then pruned nodes or SPV wallets which will still give you the notification you need. and if you need more functionality you still can either code it yourself (paying a small fee to someone to do it on top of already open source clients) or open up an issue with the developers and ask the feature to be added. as it was mentioned Electrum already does this. when you subscribe to a server (listen on an open port) you will receive each time a transaction is received in any of your addresses with its transaction id, full bytes of it, the amount, the number of confirmation,....

there is always also the option of using third party payment processors which will add centralization and fees but it is something many merchants use specially if they dislike the volatility.

Only Bitcoin
teejayrichard2
Member
**
Offline Offline

Activity: 574
Merit: 12


View Profile
April 30, 2019, 10:52:46 PM
 #26

I will be glad if this function is indeed done but then is it really possible. Anyway i know this issue must have crossed the minds of developers and if they payment callback function is really needed, they will in time add it. Lets just wait and watch events unfolds as the technology is still young, more to come.
antisocial77
Jr. Member
*
Offline Offline

Activity: 378
Merit: 4


View Profile WWW
May 04, 2019, 06:56:29 AM
 #27

There has to be third person-system for it.it can be like an escrow.but i agree with you, its necessary if we eant to use bitcoin for buy stuff

              Silica NeXus                 
▄▄▄▄▄  Crowdfund the Nexus  ▄▄▄▄▄
bobsav2121
Full Member
***
Offline Offline

Activity: 317
Merit: 104


View Profile
May 04, 2019, 07:54:39 AM
 #28

I'm pretty sure these guys already do this with their wallet? https://www.blocpal.com
jak3
Legendary
*
Offline Offline

Activity: 1274
Merit: 1004


View Profile
May 04, 2019, 01:10:26 PM
 #29

New features are not always good to implement and by the way, this is not a new feature. Was there when Bitcoin core released with their old version but then later it was removed as some vulnerabilities where found. So funny how you can get some third party apps to do that for you are you can just keep an eye I on whatever you are doing are sending transactions and think about not using this feature. but if you still think this feature is essential then you can request new wallet developers to add this and experiment how this should go.
zenchew (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
May 05, 2019, 11:33:04 AM
 #30

I'm pretty sure these guys already do this with their wallet? https://www.blocpal.com

that wallet service charges 1% fee
BitcoinPanther
Hero Member
*****
Offline Offline

Activity: 1918
Merit: 564


View Profile
July 28, 2019, 03:29:49 PM
 #31

At first, I thought it was something like "to chargeback" or "reversal of a certain transaction". Since there are lots of incident due to hacking or incorrect sensing of Bitcoins, I thought someone has an idea to bring stolen BTC. While at the back of my mind, that should not be implemented because it will really do chaotic effects on the ledger.

Now, I think I got your point about the "callback". It is a "confirmation notification" from the destination node. I think it is easy and already exists. I don't think no one have thought of that before.
Herbet Fry
Sr. Member
****
Offline Offline

Activity: 812
Merit: 253


●Social Crypto Trading●


View Profile WWW
July 28, 2019, 11:10:53 PM
 #32

That is the worst idea I have ever heard about bitcoin. The whole point is that everything that happens on the blockchain is permanent and recorded forever.
Nothing wrong with accepting bitcoin as payment. I you use a payment proccessor you can withdraw to your bank or btc address or as you please. You keep the fiat value.
Or you can accept direct bitcoin if you believe in it. It will go up in years from now so what is the issue? Payment window is only 30min-60min and that is not very long to confirm a payment.
With a bank you need additional steps to fill in and you will sometimes need to email proof of payment which is the most annoying thing ever.

jak3
Legendary
*
Offline Offline

Activity: 1274
Merit: 1004


View Profile
July 28, 2019, 11:52:55 PM
 #33

I don't think that is necessary for a normal human. They already have a lot of features where many features are already ignored. A callback feature is easily possible with many sites even blockchain API provides callback feature. and on top of all these, you can easily make a callback feature as you can easily detect if any transaction is incoming or not and if it has any confirmation or not. Not a priority feature right now.
Deallove9
Copper Member
Newbie
*
Offline Offline

Activity: 168
Merit: 0


View Profile
July 29, 2019, 06:12:18 AM
 #34

I dont see any reason to have a pay back system on bitcoin as the block can't be rewind , once mine then the result is final just need to be careful with how and when you send your coin to any one and should not in any way miss out for the purpose of receiving.
fiulpro
Hero Member
*****
Offline Offline

Activity: 1862
Merit: 830



View Profile
July 29, 2019, 06:22:37 AM
 #35

No this would do more harm than Good .
If people are able to call back payment anytime then the party getting paid will actually just stop receiving the payment in Bitcoins.
There are many flaws in this particular job , developers already would have involved it if it was reasonable enough.
You should understand this , if a payment is not successful it is already added in your wallet so this is good enough .
It would literally destroy any jobs related to bitcoins and people will start loosing trust.

▄▄▄███████▄▄▄
▄█████████████████▄▄
▄██
█████████▀██▀████████
████████▀
░░░░▀░░██████████
███████████▌░░▄▄▄░░░▀████████
███████
█████░░░███▌░░░█████████
███
████████░░░░░░░░░░▄█████████
█████████▀░░░▄████░░░░█████████
███
████▄▄░░░░▀▀▀░░░░▄████████
█████
███▌▄█░░▄▄▄▄█████████
▀████
██████▄██
██████████▀
▀▀█████████████████▀▀
▀▀▀███████▀▀
.
.BitcoinCleanUp.com.


















































.
.     Debunking Bitcoin's Energy Use     .
███████████████████████████████
███████████████████████████████
███████████████████████████████
███████▀█████████▀▀▀▀█▀████████
███████▌░▀▀████▀░░░░░░░▄███████
███████▀░░░░░░░░░░░░░░▐████████
████████▄░░░░░░░░░░░░░█████████
████████▄░░░░░░░░░░░▄██████████
███████▀▀▀░░░░░░░▄▄████████████
█████████▄▄▄▄▄▄████████████████
███████████████████████████████
███████████████████████████████
███████████████████████████████
...#EndTheFUD...
diahsw
Full Member
***
Offline Offline

Activity: 756
Merit: 105



View Profile
July 29, 2019, 08:52:41 AM
 #36

Accepting bitcoin as a merchant is never been that smooth other than its highly volatile prices and slow confirmation (1mb block size really?). Now try accepting bitcoin payment for customer to purchase your product/services is another big issue as well.

Bitcoin wallet (especially light wallet) need to have a proper callback function without downloading the whole pain in the ass 150 GB blockchain file into our VPS/server or relying on some 3rd party API like blockchain.info. Paypal/Mastercard/Visa has much better callback system than bitcoin system.

Do you support a light wallet to have callback function that will automatically call to your server whenever a payment is received, how much received, tx id, confirmation status using programming script in JSON format that works with Java/PHP?

Automatic Payment Callback JSON

Automatic callback function to your serverside script (http://127.0.0.1/myscript) without the need of cronjob or manually curl the wallet. So that your computer will automatically detect transaction and mark paid invoices.

Xpub Generate Payment Address (Exists in electrum merchant)
{
   "address": "38H49jK1uvm8dLgykM8LM2nSBN1eK24wj9",
   "index": 0
}

Unconfirmed TX
{
   "address": "38H49jK1uvm8dLgykM8LM2nSBN1eK24wj9",
   "amount": 2000000,
   "txid" : "56d1cc5ec0a531b783680d880fd4b0a6bb62242162c1ead252bf2fc29c14e9d5",
   "status": "0"
}

Partially confirmed TX (1~2 confirmations)
{
   "address": "38H49jK1uvm8dLgykM8LM2nSBN1eK24wj9",
   "amount": 2000000,
   "txid" : "56d1cc5ec0a531b783680d880fd4b0a6bb62242162c1ead252bf2fc29c14e9d5",
   "status": "1"
}

Confirmed TX (>3 confirmations)
{
   "address": "38H49jK1uvm8dLgykM8LM2nSBN1eK24wj9",
   "amount": 2000000,
   "txid" : "56d1cc5ec0a531b783680d880fd4b0a6bb62242162c1ead252bf2fc29c14e9d5",
   "status": "2"
}

Related Article :

https://developer.coingate.com/docs/payment-callback

https://www.blockchain.com/api/api_receive

https://www.blockonomics.co/views/api.html


Pardon for my noobie programming skills, Im not from CS major Grin



Technology provides the inevitable birth of cryptocurrency, which aspires to be a means of transacting through digital forms. Many well-known E-commerce stores have agreed to cryptocurrency payment options, and the amount is increasing every week. The main pros including cryptocurrency can be removed to cancel because cryptocurrency payments cannot be changed. Consumers and traders alike like Bitcoin because of its anonymity. Bitcoin is a discovery with an interesting history and a promising future. Bitcoin decentralizes public ledger, namely Blockchain. build instant trust between parity without each other's prior knowledge. Virtual currencies that work on peer-to-peer networks offer many benefits compared to using a credit card.
Freedom in payment
Low transaction costs
Security
Speed
Global access
Blockonomics starts a watcher and blockexplorer wallet and its services enhance the functional wallet that you already have. And the goal is to keep trying to accept Bitcoin directly, whether you're making an invoice, accepting donations, or running an e-commerce store.

S T R A Y   ███  ANIMAL TOKEN - CHARITY AND INVESTMENTS
───── ─    BUY NOW       ─ ─────
WEBSITE     TWITTER     TELEGRAM     REDDIT     WHITEPAPER
bitart
Hero Member
*****
Offline Offline

Activity: 1442
Merit: 629


Vires in Numeris


View Profile
August 15, 2019, 09:47:15 PM
 #37

No this would do more harm than Good .
If people are able to call back payment anytime then the party getting paid will actually just stop receiving the payment in Bitcoins.
There are many flaws in this particular job , developers already would have involved it if it was reasonable enough.
You should understand this , if a payment is not successful it is already added in your wallet so this is good enough .
It would literally destroy any jobs related to bitcoins and people will start loosing trust.
Please please pretty please...
You are a senior member...
Please read back at least some posts on this page...
Those newbies and jr members who only read the title of the topic and don't read the posts here create similar posts like yours...
It's nothing about payment chargeback or  payment reversal or anything similar....
This payment callback is pretty different, please read a few posts back (at least 10) and you'll find it yourself...
So don't worry, no payment recall, no payment reversal, no chargeback.... this is just some programming stuff to have information about payments themselves...
Artemis3
Legendary
*
Offline Offline

Activity: 2030
Merit: 1563


CLEAN non GPL infringing code made in Rust lang


View Profile WWW
August 15, 2019, 10:32:03 PM
 #38

Well i don't know the details, but i once sent coins to Bitpay from Electrum and immediately Electrum showed some sort of certificate. I'm sure this has a pretty name somewhere and quite documented, but if they can have that any merchant can. Thing is Bitpay knew immediately i was sending them coins without waiting for any confirmation (which is good as they have a 15min window).

It says "Payment request for BitPay invoice" and it shows a pretty icon with "View Invoice", this shows a Signature: Certificate, etc.

This all leads me to believe such thing already exists...

██████
███████
███████
████████
BRAIINS OS+|AUTOTUNING
MINING FIRMWARE
|
Increase hashrate on your Bitcoin ASICs,
improve efficiency as much as 25%, and
get 0% pool fees on Braiins Pool
Pages: 1 2 [All]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!