{"section":"known-issues","requestedLocale":"en","requestedSlug":"shopper-is-redirect-to-gatewaycallbackordergroupsuccess-instead-of-placeorder-page","locale":"en","slug":"shopper-is-redirect-to-gatewaycallbackordergroupsuccess-instead-of-placeorder-page","path":"docs/en/known-issues/Checkout/shopper-is-redirect-to-gatewaycallbackordergroupsuccess-instead-of-placeorder-page.md","branch":"main","content":"## Summary\n\nWhen the shopper makes a purchase using a gift card together with a payment app, if either of the payments has not yet been approved or denied when the app is closed, the shopper is redirected to the page\n`https://{accountName}.myvtex.com/checkout/gatewayCallback/{orderGroup}/Success` instead of being taken to the _order placed_ page.\nThe same issue can occur with redirect payments and gift cards, since at the end of the redirect flow, the shopper is also taken to the `gatewayCallback` success route.\n\n## Simulation\n\n1. Add a gift card of any value (it must be lower than the transaction total).\n2. Select a payment method that uses a Payment App.\n3. In the browser console, run: `$(window).trigger('transactionValidation.vtex', [status])`\n4. If the transaction is not approved yet, the shopper will receive JSON similar to:\n  1.\n\n    \\{ \"RedirectResponseCollection\": [], \"paymentAuthorizationAppCollection\": [\\{ \"appName\": \"vtex.example-payment-auth-app\", \"appPayload\": \"\\{\\\"approvePaymentUrl\\\":\\\"https://account.vtexpayments.com.br/api/pvt/payment-provider/transactions/transactionId/payments/paymentId/callback?accountName=Account&X-VTEX-signature=signature\\\"\\}\" \\}]\\}\n\n## Workaround\n\nEnsure that the connector only triggers `transactionValidation.vtex` event after the payment is actually approved, as the documentation instructs."}