-
Notifications
You must be signed in to change notification settings - Fork 295
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
Update 3DS and GraphQL Endpoint Sent to FPTI #1375
Conversation
@@ -446,8 +446,12 @@ class BTHTTP: NSObject, URLSessionTaskDelegate { | |||
let json = try? JSONSerialization.jsonObject(with: data) | |||
let body = BTJSON(value: json) | |||
|
|||
guard let mutationName = body["operationName"].asString() else { return nil } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The card GraphQL request is the only flow that uses operationName
so for other flows such as Venmo we were sending the endpoint as /graphql
. This update allows us to now send the expected query/mutation name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just curious - would this change affect us being able to fetch the mutation name for the card graphql flow 👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still pass in a mutation as expected for the card flow, we just extract it from here:
var mutation = "mutation TokenizeCreditCard($input: TokenizeCreditCardInput!" |
operationName
. So card is passed as mutation TokenizeCreditCard
same as prior to this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!!
Summary of changes
operationName
since this is only present for card, causing us not to send the correct path for the Venmo flowChecklist
Authors