audius-protocol icon indicating copy to clipboard operation
audius-protocol copied to clipboard

[PAY-2251] Allow purchase content via payment router with user bank source

Open dharit-tan opened this issue 1 year ago • 5 comments

Description

purchaseContent routing funds through payment router now supports userbank as a source account.

Current status:

  • coinflow transaction works (example tx),
  • after merging main, got a type error that i don't understand how it didn't appear as a merge conflict. see the commit with "CONFLICT" in the title.
  • have not tested my attempt to fix the conflict (which is in add funds flow i believe).
  • have not tested that sending from userbank still works after latest 3 commits.

How Has This Been Tested?

Successful userbank transfer: https://solscan.io/tx/42y6NedjTUD943qGxB9Ztw75HSpNXAVjTjshyDfg1R8T37fp9rwN3AViU8u3QyCuhTfm4x5WiP8i5haPKjugeB2t

solana root account still works: https://solscan.io/tx/3nN1JyVQXHnBaUxMwWK4z6gvZkrxwp1tPPTDc58b16qLHPVN3qsdYdxvbx47dgKDkUTafY1ozJnt9C8nkCCHF42L

dharit-tan avatar Dec 12 '23 08:12 dharit-tan

Preview this change https://demo.audius.co/rt-coinflow

audius-infra avatar Dec 12 '23 08:12 audius-infra

Looks good. Just to clarify something in the description: Is this actually meant to use coinflow to fund a user bank and then send from that userbank to payment router? Or is this just sending from a userbank straight to payment router?

the latter!

dharit-tan avatar Dec 12 '23 16:12 dharit-tan

Preview this change https://demo.audius.co/rt-coinflow

audius-infra avatar Dec 12 '23 18:12 audius-infra

Preview this change https://demo.audius.co/rt-coinflow

audius-infra avatar Dec 13 '23 03:12 audius-infra

Preview this change https://demo.audius.co/rt-coinflow

audius-infra avatar Dec 13 '23 19:12 audius-infra