-
Notifications
You must be signed in to change notification settings - Fork 121
REST API: Migrate payment gateway endpoints #8587
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
Conversation
You can test the changes from this Pull Request by:
|
selanthiraiyan
left a comment
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 🚢
joshheald
left a comment
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.
I'm struggling to actually test this as my self-hosted sites (via Pressable or Jurassic Ninja) give this error when I try to log in using site creds, even though I've not knowingly got a custom admin URL:
That said, the code looks fine to me and this is clearly part of a bigger project, so I've nothing to add to @selanthiraiyan's review.
If any of that sounds unexpected, I'm happy to look further: just send me any questions and/or hints about why it doesn't like these sites I'm using and I'll dig in a bit deeper.
|
Thanks for the review @joshheald! If possible, could you test again with Proxyman and see which requests failed when you try to log in and what the errors are about? For now, I'm merging this PR but we can still follow up about the above issue here or on Slack, wherever you prefer. |
No worries @itsmeichigo. I've had another look, and I'm still getting the same error. I think the direct requests to my site's URL are the ones which matter, right? It looks like we get rate-limited. Here's a timeline:
I'm not sure why there are two requests to the I tried with another Pressable site, and it follows exactly the same flow. Today, my Jurassic Ninja site is logging in correctly, and the timeline is the same as the above, except that it doesn't have number 6: we don't double-request the application password. I was able to confirm that the Pay in Person toggle works correctly on my Jurassic Ninja site with these changes. |

Closes: #8586
Description
This PR continues the migration for endpoints to use REST API. Changes include:
PaymentGatewayMapperandPaymentGatewayListMapper.Testing instructions
applicationPasswordAuthenticationForSiteCredentialLoginand build the app.Screenshots
RELEASE-NOTES.txtif necessary.