hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

[CYPRESS] Add e2e test for card payment for Adyen Connector for a Successful Flow

Open Sanskar2001 opened this issue 1 year ago • 3 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 card payment for Adyen Connector for a Successful Flow 🔨 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:

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

🔖 Note: Once assigned, please drop a mail for required credentials at [email protected]

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.

Sanskar2001 avatar Sep 19 '24 06:09 Sanskar2001

@Sanskar2001 I would like to work on this issue !

ayan-joshi avatar Sep 30 '24 17:09 ayan-joshi

@ayan-joshi Assigning you this issue. Thanks!

gorakhnathy7 avatar Oct 02 '24 10:10 gorakhnathy7

Hey @ayan-joshi as you are already assigned this issue. Please let us know, which one would you like to work on?

By default i can unassign this issue, and you can keep working on the earlier mentioned issue.

gorakhnathy7 avatar Oct 02 '24 16:10 gorakhnathy7

@gorakhnathy7 okay at once we can work on 1 issue only ?

ayan-joshi avatar Oct 03 '24 06:10 ayan-joshi

okay then I'll solve that first and then work on this later if possible @gorakhnathy7

ayan-joshi avatar Oct 03 '24 06:10 ayan-joshi

Sure @ayan-joshi , But if someone asks to assign this issue before that, i'll be assigning to that person.

gorakhnathy7 avatar Oct 04 '24 02:10 gorakhnathy7

Hi @gorakhnathy7, I have requested #6039 but a fellow contributor requested it before me, Please assign this issue to me if you gonna assign it to him. This would be my first contribution to Hyperswitch.

shubhamchasing avatar Oct 04 '24 18:10 shubhamchasing

Hey @shubhamchasing Assigning this to you. Thanks for your interest!

gorakhnathy7 avatar Oct 06 '24 03:10 gorakhnathy7

Thanks @gorakhnathy7

shubhamchasing avatar Oct 06 '24 14:10 shubhamchasing

@gorakhnathy7 I have a query if this issue is related to hyperswitch-web then why this issue is not in the respective repo?

shubhamchasing avatar Oct 08 '24 14:10 shubhamchasing

@gorakhnathy7 I have a query if this issue is related to hyperswitch-web then why this issue is not in the respective repo?

Hey @shubhamchasing We have done this to ensure ease for participants to find out all issues related to Hyperswitch at one place, And for each issue we have mentioned in the issue description where they should be raising the PR.

gorakhnathy7 avatar Oct 09 '24 07:10 gorakhnathy7

@gorakhnathy7 I have emailed but have not received the credentials yet

shubhamchasing avatar Oct 09 '24 15:10 shubhamchasing

Checking it

gorakhnathy7 avatar Oct 10 '24 07:10 gorakhnathy7

@preetamrevankar could you please share the creds?

Sanskar2001 avatar Oct 10 '24 09:10 Sanskar2001

@gorakhnathy7 Is there a specific format for requesting creds? If that is the case please let me know, as I have not got the creds yet.

Thanks for your help!

shubhamchasing avatar Oct 14 '24 18:10 shubhamchasing

Hi guys tagging you as it has been more than 10 days and it is blocking my contribution to hyperswitch @Sanskar2001 @gorakhnathy7 @preetamrevankar

shubhamchasing avatar Oct 15 '24 15:10 shubhamchasing

Hey @shubhamchasing Apologies for the inconvenience here, looking into it.

gorakhnathy7 avatar Oct 15 '24 15:10 gorakhnathy7

Hey @shubhamchasing https://github.com/shubhamchasing pub key - pk_snd_5a7dd4bf0275482a8ad714648437ab35 profile id --- pro_Kvqzu8WqBZsT1OjHlCj4 api key - https://privnote.com/JBs2DqrD#WZqZMiewN Please open this and copy the API key.

On Tue, Oct 15, 2024 at 9:16 PM GORAKHNATH YADAV @.***> wrote:

Hey @shubhamchasing https://github.com/shubhamchasing Apologies for the inconvenience here, looking into it.

— Reply to this email directly, view it on GitHub https://github.com/juspay/hyperswitch/issues/6082#issuecomment-2414392800, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7PUSCBJBHFMEVUL3UAH2DTZ3U2GLAVCNFSM6AAAAABO3IMC66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJUGM4TEOBQGA . You are receiving this because you were mentioned.Message ID: @.***>

-- The information contained in this electronic mail and any attachment(s) to this email are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. Access to this e-mail and/or to the attachment by anyone else is unauthorized. If this is a forwarded message, the content and the views expressed in this E-MAIL may not reflect those of the Company. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses may be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

preetamrevankar avatar Oct 15 '24 16:10 preetamrevankar

Thank you so much

shubhamchasing avatar Oct 15 '24 17:10 shubhamchasing

@gorakhnathy7 Hey sorry to disturb you, can you please help me here?

I tested adyen test cards in the demo app when it is a 3DS card then it only redirects to the Adyen checkout simulator and if it is a normal debit/credit card it does not redirect and complete the payment, how I am supposed to add test cases when it is not an Adyen checkout simulator.

3D Secure 2 VISA number: 4917 6100 0000 0000 expiry date: 03/30 CVV: 737 https://docs.adyen.com/development-resources/testing/test-card-numbers/#3d-secure-2

VISA Commercial Debit number: 4005 5190 0000 0006 expiry date: 03/30 CVV: 737 https://docs.adyen.com/development-resources/testing/test-card-numbers/#visa

shubhamchasing avatar Oct 19 '24 16:10 shubhamchasing

@gorakhnathy7 Hey sorry to disturb you, can you please help me here?

I tested adyen test cards in the demo app when it is a 3DS card then it only redirects to the Adyen checkout simulator and if it is a normal debit/credit card it does not redirect and complete the payment, how I am supposed to add test cases when it is not an Adyen checkout simulator.

3D Secure 2 VISA number: 4917 6100 0000 0000 expiry date: 03/30 CVV: 737 https://docs.adyen.com/development-resources/testing/test-card-numbers/#3d-secure-2

VISA Commercial Debit number: 4005 5190 0000 0006 expiry date: 03/30 CVV: 737 https://docs.adyen.com/development-resources/testing/test-card-numbers/#visa

@Sanskar2001 I understand you must be busy but can you help here?

shubhamchasing avatar Oct 21 '24 11:10 shubhamchasing

@shubhamchasing You can use a 3DS test card to trigger the payment. What you're doing is correct—just add an assertion to check if the redirection to the Adyen checkout simulator occurs.

Sanskar2001 avatar Oct 21 '24 11:10 Sanskar2001

Thank you!

shubhamchasing avatar Oct 21 '24 12:10 shubhamchasing