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

Stripe paymentelement migration #345

Conversation

ultimate-tester
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior?

Currently Stripe is only utilized for card payments and nothing more.

Issue Number: 344

What is the new behavior?

This PR expands it to the full range of payment methods that Stripe offers (e.g. iDeal, WeChat, Google Pay, Apple Pay, etc.). It does this by replacing the card element by a payment element where user can select their preferred payment method.

Does this PR introduce a breaking change?

  • [] Yes
  • No

Other information

This is a tested but maybe not final version of the Payment Element migration

amount: 1337,
fields: {
billingDetails: 'never',
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hi @ultimate-tester ,

Whoops. We can not hardcoded the amount and currency like this. It must be from the cart

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would you be able to help me with this? My experience with React is limited so I don't have a clue on how to add these fields into context :(

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sure, I will take care of it. Please give me sometime

@treoden treoden changed the base branch from dev to stripe February 29, 2024 06:42
@treoden treoden merged commit bf105fc into evershopcommerce:stripe Feb 29, 2024
2 checks passed
@ultimate-tester
Copy link
Contributor Author

I see this PR is merged but I cannot see that the pending task was resolved (I'm on my phone at the moment). Did you double check those hardcoded variables for e.g. amount?

@treoden
Copy link
Collaborator

treoden commented Feb 29, 2024

Hi @ultimate-tester ,

I merged your PR to a feature branch and will continue fixing the issue there.
Thanks for asking. I will let you know once I completed this

Thanks

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.

2 participants