yes we really installed CLI, cardano wallet and also cardano node…
We are now just struggling in linking our shop to all what we have done. Its so good to hear when you said that we can now integrate everything in PHP and dont need node for it now.
But question, how we link our work with our website? We did everything in Command prompt but as you know our website is PHP GUI based, how we make our cardano work connect with our website?
Can i get any sample file or sample code…I know we are so close in finishing this integration, but just we are sitting idle thinking how we connect everything to our website?
Sorry I cannot give you an example as it’s very tied to your Php website implementation. It’s plain web development work, not GUI work but plain PHP website development (programing).
You execute the cardano-wallet commands from within Php.
Your best bet is probably still ADA Pay as mentioned originally. Here is another reference if you didn’t get enough to research from the previous replies:
Is this what you are trying to do?
$wallet = ADAPAY::restoreWallet(array(
‘name’ => ‘adapay’,
‘mnemonic’ => ‘that are just twenty four words that have no meaning and only for adapay as placeholder so dont try to copy this cheers adapay’
‘passphrase’ => ‘myAwesomeAdaPayPassword’,
));
print_r($wallet);
According to the script’s example the mnemonic is a string but according to cardano-wallet it is expecting an array. Maybe that requirement changed since the last update of the script and so it is failing. The script does not convert the string to an array when passing further the mnemonic as mnemonic_sentence.
As @HeptaSean mentioned the error message most probably has all the info you need. To make your life easier I strongly suggest getting more familiar with Php, Cardano-wallet, and the AdaPay script in this case.
Are you sure that ADAPay, the self-hosted open source solution, is used by ADA Pay, the paid SaaS solution? Did not find documentation for the latter, you probably have to register first to get access.
I didn’t do any research but these two seem like different things. The script seems to be an open source wrapper around cardano-wallet. The Saas in contrast seem to offers a full integration service, for a fee probably.
1-> First, start server SSH and run this command “NETWORK=testnet docker-compose up”
2-> http://64.4.160.13:8090/v2/network/information then we will see this page and wait for some json output with slot number increasing should show…
3-> http://64.4.160.13/adapay/makepayment.php?amount=50 Then for test purpose we run this URL, can change Amount (Pair used is ADAUSD)
4-> Then we can save wallet transaction in database, for this we installed phpmyadmin on this server
5-> We can then see our transaction in Market database under invoices table
6-> After this can check payment status at http://64.4.160.13/adapay/get-status.php
Now our questions are:
Question is
1-> Currently we pass the amount directly and generate invoices but In real ( LIVE environment ( how customer will pay from their side.
2-> This code is used for only generating invoices and verifying status.
What if we want to allow customer pay from their side?
3-> What is Death variable when generating invoices?
1-> Generating the invoice for the user gives them the opportunity to pay with a wallet of their choice or decline the transaction. You would need to monitor successful payment of each outstanding invoice by status same as with any other payment gateway.
2-> Generate invoice & verify status is all you really need. See above. They have to choose how they want to pay which could be any of dozens of wallets.
3-> No idea. Sounds like a TTL or timeout which invalidates the invoice and cancels the order if they do not pay promptly?
4-> Typically a trading pair. For example ADA<->USD which would allow you to calculate the equivalent price in either currency based on current exchange rate. You could also use ADA<->EUR, ADA<->BTC, etc. Basically this is the same as fiat pairings but occasionally more volatile
For someone making an e-commerce website accepting various forms of payment this should all be very basic knowledge. The steps are almost identical whether you use crypto or fiat when integrating with an existing third party payment gateway.
Hello, thanks i think now we are first time very close in integration…
So, we generated invoice, and it went to waiting status as per your github documenatation…
Now my question is how will its status change to PAID? ( since there are 3 status as per github for any invoice )
I mean how will user pay the invoice? Will he get any notification or will he get any qr code, or will he get any wallet ID to pay?
When ever we generate new invoice, it creates the new wallet ID, is this the wallet ID that we need to give to customer to pay on this address?