hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

[CYPRESS] Add e2e test for Klarna (pay later) payment method for Adyen Connector

Open Sanskar2001 opened this issue 1 year ago • 1 comments

The Hyperswitch SDK is a versatile tool built to streamline payment integration for developers. It simplifies the process of adding multiple payment methods, allowing you to quickly implement support for various gateways without the need to manually integrate each one. With Hyperswitch, you can efficiently manage payments across platforms, reducing complexity and boosting development speed.

Pre-requisites: Please follow the README for guidelines on file structure, formatting and instructions on how to set up and run Cypress.

Description:

This task involves adding a cypress e2e test for Klarna (pay later) payment method for Adyen Connector.

🔨 Possible Implementation Locate the element for this payment method, perform the click action on it and assert whether redirection happens success.

Contribution Guidelines:

  • Fork the repository and create a new branch for your work.
  • Ensure the WebSDK follows best practices for API integration and field rendering.
  • Write clean, well-documented code with clear commit messages.
  • Make sure to follow our coding standards and contribution guidelines.

Helpful Resources:

Submission Process:

  • Ask the maintainers for assignment of the issue, you can request for assignment by commenting on the issue itself.
  • Once assigned, submit a pull request (PR).
  • Maintainers will review and provide feedback, if any.
  • Maintainers can unassign issues due to inactivity, read more here.

Refer here for Terms and conditions for the contest.

If you have any questions or need help getting started, feel free to ask in the comments!

🔖 Note: Please drop a mail for required credentials at [email protected]

Sanskar2001 avatar Sep 24 '24 15:09 Sanskar2001

id like to give this a try

sccalabr avatar Oct 01 '24 04:10 sccalabr

Hey @sccalabr there is another issue assigned to you as well, Kindly let us know, which of these issue you are working on currently. Thanks!

gorakhnathy7 avatar Oct 04 '24 02:10 gorakhnathy7

Hey Contributors, For this issue, please submit a PR on @juspay/hyperswitch-web repo, and link it to the issue.

gorakhnathy7 avatar Oct 04 '24 08:10 gorakhnathy7

Ill work on the other one

sccalabr avatar Oct 05 '24 20:10 sccalabr

Cool @sccalabr, thanks for the update.

gorakhnathy7 avatar Oct 06 '24 04:10 gorakhnathy7

please assign this issue to me.

Rishi-0007 avatar Oct 07 '24 18:10 Rishi-0007

Sure @Rishi-0007 Assigning the issue to you, thanks for your interest!

gorakhnathy7 avatar Oct 08 '24 08:10 gorakhnathy7

Hey @gorakhnathy7 @Sanskar2001,

I’ve successfully set up the project locally, and everything seems to be working smoothly. Here are the details:

  • The app at http://localhost:9060/ runs perfectly, showing a T-shirt and cap added to the cart, but it currently only displays the Card Payment option.
  • The Cypress test specs are showing up at http://localhost:9050/__/#/specs.

Could you please guide me on how to proceed with solving the issue? Specifically, I need help adding the Klarna (Pay Later) payment method via the Adyen connector and writing the corresponding Cypress E2E test.

Thanks in advance for your help!

Rishi-0007 avatar Oct 08 '24 19:10 Rishi-0007

@Rishi-0007 Please use the appropriate credentials i.e. publishableKey and secretKey. Also make sure to use the correct profile_id in createPaymentBody as shared to you over mail.

Sanskar2001 avatar Oct 09 '24 08:10 Sanskar2001