# Authorization Envelope and Payment Envelope

**URL:** <https://forum.flow.com/t/authorization-envelope-and-payment-envelope/2160>\
**Category:** ⚙️ Flow SDKs\
**Created:** [July 6, 2021, 8:25am UTC](https://forum.flow.com/t/authorization-envelope-and-payment-envelope/2160 "2021-07-06T08:25:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sudhanshu](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sudhanshu](https://forum.flow.com/u/sudhanshu)\
**Post date:** [July 6, 2021, 8:25am UTC](https://forum.flow.com/t/authorization-envelope-and-payment-envelope/2160/1 "2021-07-06T08:25:48Z")

</div>

As mentioned [here](https://docs.onflow.org/concepts/accounts-and-keys/) there are various envelopes for a transaction and payer signs last.

My requirement is to create an authorization envelope at the frontend level then send it to backend where I will create a payment envelope and then send the transaction.

Now I am having a hard time figuring out how this can be done using the flow javascript sdk. I have seen various posts on transactions on this forum but no one talked about how to do this at multiple levels.

Can anyone help.

---

<div class="post-metadata">

**Author:** ![sudhanshu](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sudhanshu](https://forum.flow.com/u/sudhanshu)\
**Post date:** [July 6, 2021, 8:27am UTC](https://forum.flow.com/t/authorization-envelope-and-payment-envelope/2160/2 "2021-07-06T08:27:08Z")

</div>

@qvvg Can you suggest something.

---

<div class="post-metadata">

**Author:** ![kimcodeashian](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/kimcodeashian/32/498_2.png) [@kimcodeashian](https://forum.flow.com/u/kimcodeashian)\
**Post date:** [July 8, 2021, 3:23am UTC](https://forum.flow.com/t/authorization-envelope-and-payment-envelope/2160/3 "2021-07-08T03:23:11Z")

</div>

Hi @sudhanshu,

Can you explain what you’re trying to do for better context? Is it possible that you can integrate a 3rd party wallet such as [Blocto](https://docs.blocto.app/) for account authorizations?

---

<div class="post-metadata">

**Author:** ![sudhanshu](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sudhanshu](https://forum.flow.com/u/sudhanshu)\
**Post date:** [July 8, 2021, 12:30pm UTC](https://forum.flow.com/t/authorization-envelope-and-payment-envelope/2160/4 "2021-07-08T12:30:00Z")

</div>

@kimcodeashian The private key for my payer for transactions rests on my backend. Basically I am building something where I could fund all the transactions happening on my platforms.

Blocto will only help with the authorizations of the user that is currently loggedin.

Anyways implemented my custom signing function following [this](http://forum.flow.com/t/deploying-contracts-and-signing-transaction-from-node/657).  
It worked for my usecase. Let me know if you have any better suggestions though.
