Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement GoCrypto integration #572

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

matejhocevar
Copy link

@matejhocevar matejhocevar commented Aug 30, 2019

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:

  • 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.

@maplesyrupsucker
Copy link
Contributor

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. 👍

@joel23viky
Copy link

Esta muy bueno me gusta mucho

}
}

validatePaymentExpiryDate(payment['expires_at'], defer);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4/10/21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants