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

Payments with saved card tokens use Capture intent when Authorize is configured (2713) #2069

Conversation

Dinamiko
Copy link
Contributor

@Dinamiko Dinamiko commented Mar 1, 2024

When using Vault v3 to process payments with a saved card, the transaction defaults to the "Capture" intent, despite the PayPal Payments plugin being configured to use "Authorize" intent. This behavior bypasses the intended authorization flow, leading to immediate fund capture without merchant review.

Steps To Reproduce

  • Configure PayPal Payments plugin to use "Authorize" intent for transactions
  • Pay with a card using Vault v3 feature and save it
  • Observe that the payment is processed with "Authorize" intent
  • Attempt to make a payment with the saved card

Observe that the payment is processed with "Capture" intent instead of "Authorize".

Expected behaviour

When a payment is made using a saved card with Vault v3, the transaction should follow the plugin configuration, using the "Authorize" intent if so configured. This should allow merchants to review transactions before capturing funds.

@Dinamiko Dinamiko requested a review from pedrosilva-pt March 4, 2024 09:09
@InpsydeNiklas InpsydeNiklas added this to the 2.6.0 milestone Mar 4, 2024
@InpsydeNiklas InpsydeNiklas changed the title Payments with saved card token uses Capture intent when Authorize is configured (2713) Payments with saved card tokens use Capture intent when Authorize is configured (2713) Mar 4, 2024
@InpsydeNiklas InpsydeNiklas added the bug Something isn't working label Mar 4, 2024
@Dinamiko Dinamiko merged commit 8d00b04 into trunk Mar 6, 2024
8 checks passed
@Dinamiko Dinamiko deleted the PCP-2713-payments-with-saved-card-token-uses-capture-intent-when-authorize-is-configured branch March 6, 2024 13:50
@Dinamiko Dinamiko mentioned this pull request Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants