-
Notifications
You must be signed in to change notification settings - Fork 60
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
OWA-107: Fix broken SCA flow payment finalization #677
base: develop
Are you sure you want to change the base?
Conversation
Visit the preview URL for this PR (updated for commit 84f900a): https://ottwebapp--pr677-owa-107-sca-ppv-flow-u6gyrnzp.web.app (expires Wed, 16 Apr 2025 11:59:40 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: c198f8a3a199ba8747819f7f1e45cf602b777529 |
Hi @mirovladimitrovski, I believe this fix is for JWP integrations only, should we handle this from the JWP integration instead of making it a separate component/modal? I think if we do something like this in the private async handlePPVPaymentIntent(url: string) {
const searchParams = new URLSearchParams(url.split('?')[1]);
const paymentIntent = searchParams.get('payment_intent');
if (paymentIntent) {
await this.apiService.post<CommonResponse>('/payments', { pi_id: paymentIntent }, { withAuthentication: true });
}
}
initialize = async (config: Config, url: string, _logoutFn: () => Promise<void>) => {
const jwpConfig = config.integrations?.jwp;
await this.handlePPVPaymentIntent(url); |
This is a good idea actually, much lighter in code. I'll have it done shortly. |
@ChristiaanScheermeijer |
|
||
const finalize = useCallback(async (paymentIntent: string) => { | ||
try { | ||
await checkoutController.finalizeStripePpvPayment(paymentIntent); |
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.
Did you try to reuse everything in FanalizeAdyenPayment except using a different method instead of a checkoutController.finalizeAdyenPayment
one?
Description
This PR solves OWA-107
Steps completed:
According to our definition of done, I have completed the following steps: