-
Notifications
You must be signed in to change notification settings - Fork 3
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
Amazon Pay #37
Merged
Merged
Amazon Pay #37
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shanikantsingh
approved these changes
Nov 10, 2023
amihajlovski
added a commit
that referenced
this pull request
Dec 1, 2023
* created gitignore file, generated retail react app * feat: use dotenv lib for setting default config (#3) * Feature/render dropin pwa (#4) * setup dropin integration * setup sessions call to Adyen in ssr.js * fetch basket in ssr.js --------- Co-authored-by: zaid <[email protected]> * feat: create sessions controller file (#5) * Proceed to review (#6) * feat: create sessions controller file * feat: present adyen form and create payment instrument * fix: use AdyenComponent as payment method id * chore: added payment methods constants * Api client (#7) * feat: created api client for sending all requests * feat: created sessions service * fix: remove unused imports * chore: prevent failing in case headers are not preset * feat: removed api urls file * feat: provide attributes to session service * Handle payment (#8) * feat: make payment using session * feat: do the payment * fix: show loading spinner when going to review page * chore: use the constants file provided by salesforce * feat: moved payments logic into separate service file * feat: check for basket address before creating session * fix: removed salesforce comment * webhook endpoint with authorization and hmac validation (#9) feat: webhook endpoint with validation * Feature/minor currency unit converter (#10) feat: minor currency unit parser * feat: provide billing and shipping address in payment request (#11) * Provide multiple locales and currencies (#12) * feat: provide multiple locales and currencies * fix: revert translation changes * fix: empty line break * fix: show checkout component with correct locale * fix: removed additional config attribute * fix: not needed comma * fix: use locale id from request * feat: increment retail app version (#13) * Fetch payment methods (#14) * feat: increment retail app version * feat: create payment method endpoint to replace sessions call * fix: remove billing handler * feat: convert constants into es6 module * feat: pass country code from frontend * chore: removed payments call replaced with TODO * chore: renamed fetch controller * feat: show payment methods based on shopper locale * chore: destruct locale object * fix: check if shopper locale * Feature/mrt script (#15) * feat: script to add .env file to mrt env-var * feat: script to add .env file to mrt env-var * chore: make env variables name in capital case * fix: remove dotenv from ssr.js * fix: imports in server side script * fix: imports in server side script * fix: env variables import (#17) * feat: added payments details endpoint (#16) * feature: payments api call (#18) * feature: payments api call * feature: payments api call * Payments (#19) * feat: make the payment and handle action * feat: redirect shopper in case of result code different than authorised * feat: use handle action from dropin * fix: reorder function arguments * feat: handle 3ds2 action in payment component * feat: check if successful before navigating to confirm * fix: remove unused context variables * chore: removed unused log * fix: use first two chars from shopper locale as country code * Add renovate.json (#20) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feature: pass limeItems for openInvoiceMethods (#21) * fix: linting code (#22) * Feature/order creation backend (#23) * feat: move the order creation in the payments api * fix: submit full state data to details api * fix: use locale from react dom * fix: build issue on mrt * feat: added spinner on payment page * fix: show pay button false --------- Co-authored-by: Shani <[email protected]> * feat: provide shopper interaction and recurring details if customer registered (#24) * [SFI-311] CodeQL, PR Template and Codeowners (#25) * feat: added codeql, pr template and codeowners * fix: PR template text * Feature/payment methods configuration (#26) * refactor: paymentMethods configuration * refactor: paymentMethods configuration * chore: upgrade retail-react-app v2.0.0 (#27) * Feature/sfi 440 dropin payments (#28) * feat: set billing address and payment instrument as part of payments request * chore: install dependencies * feat: include secret in env * fix: comment out updating transaction * fix: webpack source map; singleton config for adyen checkout (#29) * fix: webpack source map; singleton config for adyen checkout * fix: move checkout config in controllers dir * fix: set devtool only if development * feature: update billing address before sendPayments (#31) * Logger service (#30) * feat: logger service * fix: revert translations * chore: empty line * fix: override onsubmit to work for stored cards * Fix/mrt deploy (#33) * show error toast for onsubmit and onAdditionalDetails * fix: render on mrt * Redirect payments (#32) * feat: logger service * fix: revert translations * chore: empty line * fix: override onsubmit to work for stored cards * feat: handle redirect payments * feat: show error toast if error occurs during checkout * fix: removed logs * feat: set origin in payments request * feat: use adyen checkout component for redirect * Fix/apple pay (#35) * pass amount to checkout component * pass basket to baseConfig * Use address provided in state data (#34) * fix: provide amount and delivery as part of the request * fix: remove duplicate amount object * fix: revert code back * fix: translations * feat: added husky lib for checking commits and branches (#36) * Amazon Pay (#37) * feat: handle amazon session id to make a payment * feat: provide necessary scripts in order to load the amazon button properly * feat: provide additional config for amazonpay * feat: show loading spinner when coming back from amazon * fix: remove unneded log * fix: mount amazon on div container * feat: country list (#39) * Error page (#38) * feat: override confirm page and redirect to it in case of error * fix: show error page only if order number param is error * fix: treat received as successful result code * fix: payment methods * feat: created new environment endpoint * fix: payment methods from backend * fix: use on additional details from root level or card * fix: lint suggestions * fix: provide SEK as supported currency * fix: render error page instead of confirmation * xss and idempotency key (#40) * feat: use xss lib to prevent cross site scripting * feat: provide uuid value as idempotency key * fix: use express validator for escaping query params * fix: removed param * Payment card (#41) * feat: payment card modifications * fix: remove on bin lookup * added authorization webhook handler (#43) * Update payment transaction (#44) * feat: introduce new order api method * feat: update payment transaction after sending payments * feat: refactored the api controllers * feat: added option for overriding controllers * chore: removed unused import * feat: provided the option for extending controllers * feat: call next() on error * fix: typo in webhook handler * feat: remove payment instrument from basket on error (#45) * chore: provide more examples about overriding endpoints * feat: fail order in case of payment unsuccessful * chore: extend example * chore: clean up unused functions * chore: clean up unused functions * feat: restructure * Feature/npm packages (#46) * feat: npm packages * feat: restructure * feat: npm publish script * Feature/npm packages (#54) * feat: npm packages * feat: restructure * feat: npm publish script * chore: remove code from root which is part of adyen retail react app * chore: refactor package.json * npm packge build * npm package build * npm package build * npm package build * npm package build * chore: return the error page * fix: conflicts --------- Co-authored-by: Aleksandar Mihajlovski <[email protected]> * added readme file and bumped versions (#56) * feat: added readme file and bumped versions * feat: readme for pwa package * feat: include files in package.json --------- Co-authored-by: zaid <[email protected]> Co-authored-by: Zaid Dreakh <[email protected]> Co-authored-by: Shani <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Shani <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Describe the changes proposed in this pull request:
Tested scenarios
Fixed issue: SFI-462