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

refactor(stripe): use bearer explictly when calling connectors #417

Merged
merged 2 commits into from
Jan 19, 2023

Conversation

Narayanbhat166
Copy link
Member

@Narayanbhat166 Narayanbhat166 commented Jan 19, 2023

Type of Change

  • Refactoring

Description

This PR will refactor stripe and checkout request to send the token as Bearer instead of asking merchant to add the token type while creating the token.

Motivation and Context

Instead of requesting the merchant to provide this information for a connector, since we have all information of how to send a request to connector, it is better if this is done in the code.

How did you test it?

  • Create a connector account with just the api key, without token type ( Bearer or Basic added )
    Screenshot 2023-01-19 at 11 33 15 AM

  • Create a payment
    Screenshot 2023-01-19 at 11 35 04 AM

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed submitted code

@Narayanbhat166 Narayanbhat166 requested a review from a team as a code owner January 19, 2023 05:57
@Narayanbhat166 Narayanbhat166 self-assigned this Jan 19, 2023
@Narayanbhat166 Narayanbhat166 added S-waiting-on-review Status: This PR has been implemented and needs to be reviewed C-refactor Category: Refactor labels Jan 19, 2023
@Narayanbhat166 Narayanbhat166 changed the title refactor(stripe: use Bearer explictly when calling stripe refactor(stripe): use bearer explictly when calling stripe Jan 19, 2023
@Narayanbhat166 Narayanbhat166 changed the title refactor(stripe): use bearer explictly when calling stripe refactor(stripe): use bearer explictly when calling connectors Jan 19, 2023
@bernard-eugine bernard-eugine merged commit 406cd4c into main Jan 19, 2023
@SanchithHegde SanchithHegde deleted the refactor/stripe_send_bearer_token branch January 19, 2023 06:31
@SanchithHegde SanchithHegde removed the S-waiting-on-review Status: This PR has been implemented and needs to be reviewed label Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-refactor Category: Refactor
Projects
No open projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

4 participants