Skip to content

Test payjoin_ffi backwards compatibility with v1 #736

Open
payjoin/payjoin-ffi
#1

Description

@DanGould

v1-to-v1 is no longer the most relevant payjoin-ffi since it doesn't support payjoin-ffi doesn't ship a pure v1 receiver. The following are the relevant code paths to test:

  • v2-to-v2
  • v1-to-v2
  • v2-to-v1 (with rust-payjoin::v1 feature, manual extract_v1 would ignore handling the v1 receiver version error)

Testing each of these should ensure that v1-to-v1 actually works, but will never be hit with our shipped state machines.

Activity

  1. spacebear21 commented on Jun 3, 2025

    @spacebear21
    Collaborator

    v2-to-v2 is now covered.

    v1-to-v2 and v2-to-v1 are missing from payjoin-ffi integration tests.

  2. changed the title [-]Test 0.21 payjoin_ffi integrations[/-] [+]Test payjoin_ffi backwards compatibility with v1[/+] on Jun 3, 2025
  3. benalleng commented on Jun 4, 2025

    @benalleng
    Collaborator

    I have started building out v2_to_v1 it's almost there, I just have 2 functions to bring over the ffi layer

  4. benalleng commented on Jun 4, 2026

    @benalleng
    Collaborator

    Linking https://github.com/benalleng/rust-payjoin/tree/v2-v1-ffi-fallback-tests here but am not going to make a PR as I don't want to bloat the open PRs today anymore than they are.

    This branch should close this issue.

  5. benalleng commented on Aug 31, 2026

    @benalleng
    Collaborator

    So I suppose we do need some minimal backwards compatibility here following #1849

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions