How to get price and order id for membership 2

I am trying to implement JROX Affiliate Manager with my site membership. I am using Membership 2 and JROX has pixel tracking option. I need to add this to my thank you page of membership 2;

<img src=”https://www.***********.com/affiliates/sale/amount/$AMOUNT/trans_id/$ORDER_ID&#8221; width=”1″ height=”1″ border=”0″ />

But I don’t know how to change $AMOUNT with the actual price of the membership and $ORDER_ID with the actual order ID or transaction ID. Can you help me with that?