We have integrated GoCrypto payments into the Bitcoin.com Wallet.
HOW IT WORKS:
Step 1. On user QR code scan, wallet checks if payload type is GoCrypto. If the payload is not GoCrypto then it continues to Step 3.
Step 2. With GoCrypto payload wallet calls GoCrypto's endpoint to get payment details and checks if the payment is valid. Payment details are returned as payload.
Step 3. Wallet parses payload and continues to the next screen where payment confirmation is shown.
Step 4. When a user approves payment, wallet checks if the payment provider is GoCrypto. If the payment provider is not GoCrypto it continues to Step 6.
Step 5. Wallet calls GoCrypto's endpoint to verify if payment is still valid (not cancelled). If payment is still valid it continues to Step 6 else goes back to Step 1.
Step 6. Payment is completed.
IMPLEMENTATION NOTES:
Due to the use of ES5 syntax, we needed to wrap parsing code in function redir(data, cbError) in src/js/services/incoming-data.service.js to our function that checks and updates received payload.
Due to the use of ES5 syntax, we needed to update function approve() and move existing approve function to new function _onApprove() in src/js/controllers/review.controller.js.
Thanks @matejhocevar - our wallet team will review shortly and follow up as soon as possible. Excited to see more point of sales build support with the bitcoin.com wallet. 👍
GoCrypto integration
We have integrated GoCrypto payments into the Bitcoin.com Wallet.
HOW IT WORKS:
Step 1. On user QR code scan, wallet checks if payload type is GoCrypto. If the payload is not GoCrypto then it continues to Step 3. Step 2. With GoCrypto payload wallet calls GoCrypto's endpoint to get payment details and checks if the payment is valid. Payment details are returned as payload. Step 3. Wallet parses payload and continues to the next screen where payment confirmation is shown. Step 4. When a user approves payment, wallet checks if the payment provider is GoCrypto. If the payment provider is not GoCrypto it continues to Step 6. Step 5. Wallet calls GoCrypto's endpoint to verify if payment is still valid (not cancelled). If payment is still valid it continues to Step 6 else goes back to Step 1. Step 6. Payment is completed.
IMPLEMENTATION NOTES:
redir(data, cbError)
insrc/js/services/incoming-data.service.js
to our function that checks and updates received payload.approve()
and move existing approve function to new function_onApprove()
insrc/js/controllers/review.controller.js
.