Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* create payment session and point to new initial payment endpoint * Refactor payment and adyen components * add refactored Payment component * Add selectPaymentMethod * style adyen * add style for paypal * fix text in paypal component * Extract DropInSection component and clean code * fix props * set confirmation button text for paypal * chang p to div in DropInSection * init update payment detail integration * update package-lock to build a package * upgrade Adyen package, pass returnUrl during initial payment * Refactor adyen and paypal flow * update lock file * set default payment method if more than one * remove yalc files. * Add log statement * add setValidPaymentMethod fn after fetch payment methods * hide paypal until adyen is not loaded. * init 3ds * hardcode applepay configuration object * pass orderId for create payment session * pass payment methods to Adyen config * fix payment method response * Apple pay and Google pay integration (#111) * adjust styles (#113) * fix custom classes names (#114) * [MSSDK-1109] - refactor by useing redux and thunks in checkout compon… (#112) * [MSSDK-1109] - refactor by useing redux and thunks in checkout components wip * [MSSDK-1109] - remove unused * small fixes after testing * [MSSDK-1109] - fix multi api calls, coupon apply * [MSSDK-1109] - remove unused props * [MSSDK-1109] - remove unused props and add errors handlers * [MSSDK-1109] - simplify import path * [MSSDK-1109] - simplify import path and use currency from order * [MSSDK-1109] - apply review comments * sonarcloud fixes * [MSSDK-1109] - fix response key for submitPaymentWithoutDetails * [MSSDK-1109] - simplify generateDesc foo. * [MSSDK-1109] - dd useCallback * simplify generateDescription function * fix currency in the checkout * [MSSDK-1109] - improve error handling * [MSSDK-1109] - remove destructuring * [MSSDK-1109] - check if error after fetchOffer * get couponDetails from store Co-authored-by: Jakub Korczak <jakub.korczak@tsh.io> * remove support for default payment method (#115) * init update payment details * fix input styling (#116) * MSSDK-1105 initial payment error handling (#118) * init * handle errors from initial payments * fix error message margin * [MSSDK-1109] - error handling improve (#117) * [MSSDK-1109] - error handling improve * [MSSDK-1109] - error handling improve clean mess ;) * [MSSDK-1109] - fix order reuse scenario * [MSSDK-1109] - fix coupon in MyAccount * [MSSDK-1109] - fix add labeling and translations to CouponInput Co-authored-by: Jakub Korczak <jakub.korczak@tsh.io> * present offer currency in offer description box (#121) * add labeling to LegalNotes * [MSSDK-1154] - fix dependency cycle problem (#122) * [MSSDK-1154] - fix dependency cycle problem * [MSSDK-1154] - remove unused function * [MSSDK-1154] - remove istanbul ignore file Co-authored-by: Jakub Korczak <jakub.korczak@tsh.io> * MSSDK 1111 add payment details (#119) * fix style and add dev plan * init documentation changes * partial * refactor checkout component and payment methods * refactor payment methods and update payment details * add adyen card details - working version * remove consolelogs * add error page and button loader * [MSSDK-1154/1158] - refactor updateOrder to use redux and revert dep cycle (#123) Co-authored-by: Jakub Korczak <jakub.korczak@tsh.io> * handle add paypal payment details * pass empty obj to applepay config obj - my account * pass merchantName to applepay * pass merchantName to googlepay * unblock applepay * remove big, use payment session response in adyen configuration * update lock file * test paymentMethods * test passing apple pay merchanyId * remove comment * prevent app fail when there is no paymentMethods from create payment session response * add console log * fix config obj * small fixes * uat fixes + buttons for each payment methods * adjust pay buttons * ignore errors from getOrder * refactor myaccount * resolve TODOs and eslint issues * style Pay buttons * remove unused image * fix paypal width on mobile * update PayPal icon Co-authored-by: jkorczakcleeng <117813419+jkorczakcleeng@users.noreply.github.com> Co-authored-by: Jakub Korczak <jakub.korczak@tsh.io> * fine tunes * fix - offerId in OfferContainer component by passing offerId through props. (#124) Co-authored-by: Jakub Korczak <jakub.korczak@tsh.io> * fix inputs border in login and registration forms (#126) * prevent payment form fail when payment method is switched off in adyen (#125) * open first payment method by default only on desktop (#127) * fix - paypal (#128) * fix - paypal * fix paypal and free offer Co-authored-by: Jakub Korczak <jakub.korczak@tsh.io> Co-authored-by: Iwona Kulacz <ikulacz@cleeng.com> * fix apple pay payment Co-authored-by: Jakub Korczak <jakub.korczak@tsh.io> Co-authored-by: jkorczakcleeng <117813419+jkorczakcleeng@users.noreply.github.com>
- Loading branch information