Bitcoin Forum
July 08, 2024, 12:17:35 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How I can accept bitcoin with https://github.com/blockchain/receive_payment_php  (Read 1559 times)
tonny-kraken (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
March 22, 2015, 04:41:08 PM
Last edit: March 22, 2015, 04:53:14 PM by tonny-kraken
 #1

Hello Smiley

I'm really "really" novice in bitcoin API

I have test this api : https://github.com/blockchain/receive_payment_php_demo

But I can't work with this :/

My problem :

http://img15.hostingpics.net/pics/211505Sanstitre2.jpg

1 - this pic don't exist <img src="<?php echo $blockchain_root ?>Resources/buttons/pay_now_64.png">
2 - I have Problem with <div class="blockchain stage-paid">

But may be I have not configured well the includ :

$blockchain_root = "https://blockchain.info/";
$mysite_root = "http://mysite.com/";
$secret = "petitTroll";
$my_bitcoin_address = "1Md8xgKc119xu4MyV6KatrnFmrZAWj6TWM";

What I must put in $Secret ? I have test my pass, my login, but I don't know ? Where is $secret in my wallet blockchain ?

if someone could Help mee  Cry
The code is simple and easy but Not work for me

I try to use this api In localhost for test.
(I have not hide informations coz it's wallet for test)
EcuaMobi
Legendary
*
Offline Offline

Activity: 1862
Merit: 1469



View Profile
March 22, 2015, 04:47:13 PM
 #2

I guess you mean https://github.com/blockchain/receive_payment_php_demo
$secret can be anything as long as it's private and nobody knows it. I'm sure that's not the issue here.

You did set $mysite_root correctly didn't you? It should point to your real domain were your site is installed. Also, did you create the DB, run the mysql script and set the credentials correctly on settings?
tonny-kraken (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
March 22, 2015, 04:51:50 PM
 #3

I guess you mean https://github.com/blockchain/receive_payment_php_demo
$secret can be anything as long as it's private and nobody knows it. I'm sure that's not the issue here.

You did set $mysite_root correctly didn't you? It should point to your real domain were your site is installed. Also, did you create the DB, run the mysql script and set the credentials correctly on settings?


Yes I Have following Instruction.
My Database is OK, and work well
Just problem with <div class="blockchain stage-paid"> and button don't exist (but I can replace it) Undecided
EcuaMobi
Legendary
*
Offline Offline

Activity: 1862
Merit: 1469



View Profile
March 22, 2015, 04:58:13 PM
 #4

Yes I Have following Instruction.
My Database is OK, and work well
Just problem with <div class="blockchain stage-paid">  Undecided

How do you know the problem is there? Did you see the log? What does it say?
Can you share your site's URL?
tonny-kraken (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
March 22, 2015, 05:09:57 PM
 #5

Yes I Have following Instruction.
My Database is OK, and work well
Just problem with <div class="blockchain stage-paid">  Undecided


How do you know the problem is there? Did you see the log? What does it say?
Can you share your site's URL?

Quote
LOG
::1 - - [22/Mar/2015:18:06:15 +0100] "GET /Bitcoin/ HTTP/1.1" 200 1650
::1 - - [22/Mar/2015:18:06:15 +0100] "GET /Bitcoin/%3C?%20echo%20$blockchain_root%20?%3EResources/wallet/pay-now-button-v2.js HTTP/1.1"

ERROR

Quote
[Sun Mar 22 18:06:15.846925 2015] [core:error] [pid 10000:tid 1160] (20024)The given path is misformatted or contained invalid characters: [client ::1:58215] AH00127: Cannot map GET /Bitcoin/%3C?%20echo%20$blockchain_root%20?%3EResources/wallet/pay-now-button-v2.js HTTP/1.1 to file, referer: http://localhost/Bitcoin/

Here it's my $secret ? right ??
http://img15.hostingpics.net/pics/548547secret.png

I work on localhost for the moment :/
EcuaMobi
Legendary
*
Offline Offline

Activity: 1862
Merit: 1469



View Profile
March 22, 2015, 05:14:14 PM
 #6

2 huge problems here:

  • Quote
    %3C?%20echo%20
    Your PHP is not being interpreted. Make sure PHP is installed and working.
  • You can't run this on localhost. Blockchain.info's server needs to reach it publicly.

And no that's not your $secret. It has nothing to do with your wallet. Now that you've published it change it asap in your wallet!
Your $secret can be any random string.
tonny-kraken (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
March 22, 2015, 05:17:06 PM
 #7

2 huge problems here:

  • Quote
    %3C?%20echo%20
    Your PHP is not being interpreted. Make sure PHP is installed and working.
  • You can't run this on localhost. Blockchain.info's server needs to reach it publicly.

And no that's not your $secret. It has nothing to do with your wallet. Now that you've published it change it asap in your wallet!
Your $secret can be any random string.

OK thank you Really Much !!!!
I go try Online then Smiley

SO I can write random $secret in the php ??
Pages: [1]
  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!