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.
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’,
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-> 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?