Skip to content

fix(paysafe): vault recurring wallet handle after CIT - #2023

Open
shuklatushar226 wants to merge 2 commits into
mainfrom
fix/paysafe-wallet-recurring-post-cit
Open

fix(paysafe): vault recurring wallet handle after CIT#2023
shuklatushar226 wants to merge 2 commits into
mainfrom
fix/paysafe-wallet-recurring-post-cit

Conversation

@shuklatushar226

Copy link
Copy Markdown
Contributor

Summary

  • settle recurring Apple Pay / Google Pay CITs with the account-bound SINGLE_USE handle
  • convert the spent handle to a validated PAYABLE/MULTI_USE handle after a successful CIT
  • persist the initial transaction, wallet account hint, and stored-credential type in mandate metadata for MIT
  • keep backward compatibility with the compact mandate reference emitted by older UCS versions

Why

Paysafe differs from other recurring-wallet connectors: the raw wallet token creates a SINGLE_USE payment handle, and the reusable customer-vault handle must be created with a second paymentHandleTokenFrom call. Sending an explicit account ID while settling the original wallet handle is rejected by Paysafe; the later MIT must use the account that processed the initial transaction.

Verification

  • Apple Pay CIT -> MULTI_USE conversion -> MIT succeeded locally through Hyperswitch
  • Google Pay CIT -> MULTI_USE conversion -> MIT succeeded locally through Hyperswitch
  • cargo +nightly fmt --all -- --check
  • cargo check -p grpc-server
  • no test code added

Related

Auto-applied by CI:
- cargo +nightly fmt --all
- make -C sdk generate (if applicable)
- make docs (if applicable)

This commit was automatically generated by GitHub Actions.
@hyperswitch-bot
hyperswitch-bot Bot requested a review from a team as a code owner July 30, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant