If I receive a payment from somebody is there a way of identifying the sender. I know it’s supposed to be anonymous but I want to accept payment from goods or services then I’d need to be able to know who sent the payment to me.
TIA
Cookertron
If I receive a payment from somebody is there a way of identifying the sender. I know it’s supposed to be anonymous but I want to accept payment from goods or services then I’d need to be able to know who sent the payment to me.
TIA
Cookertron
Give a different address to each customer.
Not unless the person tells you somehow. It’s best to let buyer register and give everyone a unique address to send payment to. More addresses don’t cost extra.
I understand that you want to use one, publicly known address, to receive payments.
There’s only one easy way, round prices to two decimal places, then you have 4 decimal places to specify order number.
example [assuming PPC/USD = 2]:
order # = 123
order value $39.99 = 19.995 PPC
rounded value = 20 PPC
payment value = 20.000123 PPC
To clearly distinguish orders in Peercoin client, exclude #s with 0(zero) on first place of order num, so consecutive order #s:
…, 18, 19, 21, 22, …, 29, 31…
—edit—
But, as was said before, it’s better to use separate addresses.
[quote=“kac-, post:4, topic:2475”]I understand that you want to use one, publicly known address, to receive payments.
There’s only one easy way, round prices to two decimal places, then you have 4 decimal places to specify order number.
example [assuming PPC/USD = 2]:
order # = 123
order value $39.99 = 19.995 PPC
rounded value = 20 PPC
payment value = 20.000123 PPC
To clearly distinguish orders in Peercoin client, exclude #s with 0(zero) on first place of order num, so consecutive order #s:
…, 18, 19, 21, 22, …, 29, 31…
—edit—[/quote]
I understand what you’re saying there and it is a good idea but as a long term store of PPC in would possibly lead to order # conflicts. I’ll have to look into creating addresses on a whim when a user registers.
Thank for taking the time to reply.
Cookertron
Does anyone know a way of creating addresses when a user might register on a site? Obviously there needs to be something between Apache->PHP to the PPCoin wallet. Not sure what that will be but I’m confident someone will here
TIA
Cookertron
[quote=“PPC_User, post:6, topic:2475”]Does anyone know a way of creating addresses when a user might register on a site? Obviously there needs to be something between Apache->PHP to the PPCoin wallet. Not sure what that will be but I’m confident someone will here
TIA
Cookertron[/quote]Nah, make it “pro”, https://bitcointalk.org/index.php?topic=240018.0
If you’re interested - start implementing on your site using BTC testnet version
By the time we’ll modify this project for PPC
[quote=“kac-, post:7, topic:2475”][quote=“PPC_User, post:6, topic:2475”]Does anyone know a way of creating addresses when a user might register on a site? Obviously there needs to be something between Apache->PHP to the PPCoin wallet. Not sure what that will be but I’m confident someone will here
TIA
Cookertron[/quote]Nah, make it “pro”, https://bitcointalk.org/index.php?topic=240018.0
If you’re interested - start implementing on your site using BTC testnet version
By the time we’ll modify this project for PPC[/quote]
Before you get a more professional solution, you can run “ppcoind getnewaddress” frm OS command line while your wallet is running and communicatable via rpc. Makesure to backup often especially after the pool of 100 addresses are exhausted.
"Before you get a more professional solution, you can run "ppcoind getnewaddress" frm OS command line while your wallet is running and communicatable via rpc. Makesure to backup often especially after the pool of 100 addresses are exhausted."
Thanks for that, I was actually just looking into that.
Is there any documentation for communicating with the Wallet via RPC?
Does the wallet only have capacity for 100 addresses?
Cookertron
Tons of info upon googling. These are not PPC specific. It’s best to search BTC docs. Basically you need to set
server=1
rpcuser=…
rpcpassword=…
and maybe address pool size
However the best way in the end might still be using packages kac- mentioned.
I’m making progress, now able to communicate with the wallet via PHP using RPC
The package which kac- mentioned simply generates wallet addresses, it doesn’t create a store for the coins.
Anyway, I’m on the right track.
Thank you for your advice.
Cookertron