We created a Visualforce Page to accept payment through Cryptocurrency/Bitcoin and a lightning component of Bitcoin. It calculates the Bitcoin amount equivalent to the base fiat currency type and generates a QR code.
By scanning the QR code through a Bitcoin wallet app, any customer can pay the specified amount. And the same amount is deducted from Bitcoin’s wallet. After a successful payment transaction, the status of the payment is displayed and all the details are stored in the Salesforce record.
Prerequisites:
1.Block cipher API to check for incoming transactions
2.Blockchain API to convert Base Fiat amount to equivalent Cryptocurrency/Bitcoin amount.
3.Wallet-address-validator.min.js
4.Qrcode.js
5.Bootstrap
6.Jquery
7.SLDS
Remote Site Settings:
1.Blockcypher_API
2.Blockchain_Exchange_API
Authentication:
There is no authentication until a certain amount of transactions is done from the account. After that, a secret token is generated to authenticate the payer and payee.
Â
Payment Gateway Page:
Payment Gateway Page:
Output1: Payment page with QR code to scan.
Output: Payment page after successful transaction
Conclusion:
Collecting payments with Bitcoins has never been easier. If you would like to get any Salesforce integration with any cryptocurrency and or payment method with Salesforce, do let us know!