To make payments in the Twetch wallet you can call the payment contract. It will look a little something like this:

const response = await window.twetch.abi({
  contract: 'payment',
  outputs: [{
    to: '1@twetch.me',
    sats: 2180
  }]
});

Response

{
    "action": "APPROVE_ABI",
    "actionId": "27df164f-7979-4f92-835c-89fe7510bbc0",
    "origin": "https://rarecandy.io",
    "portId": "b16acb88-8beb-47ae-8aaa-cf367f1ae272",
    "rawtx": "a46776657273696f6e0266696e7075747381a46a707265765f74785f696478406338363236643933316631303365363739656131663531363831396633363139383437386366303431613633636235386663373466303366336238316432333264766f7574016a7363726970745f73696782789033303435303232313030633634396535333035393935633236663638326461323562613166326539363762643235396163656466386362366162623137643238666562636533346362303032323037383938363165663362653533633266383833383764316236363436333131306530313135323532613233623836313864313261326531323435376636333762343178423032343639666337313765326530356439333031386130663435656639333366353438633032323439313362623163636361393063616238656332356235653139616873657175656e63651affffffff676f75747075747382a26576616c75651908846e7363726970745f7075625f6b657985664f505f4455506a4f505f484153483136307828626338313761363631353661323062353332623862653661313639383965356232643165633864616e4f505f455155414c5645524946596b4f505f434845434b534947a26576616c75651a3ac3949d6e7363726970745f7075625f6b657985664f505f4455506a4f505f484153483136307828353833303633353836643033343366626138623664353136336537353433636265366131393463316e4f505f455155414c5645524946596b4f505f434845434b5349476a6e5f6c6f636b74696d6500",
    "txid": "84bff4395e7d006f390a0e417545d753e919ae1c5c3b42e4fd8a090fed07707f"
}

Outputs

An array of one or many outputs must be specified when calling the payment contract. The types parameter types are as follows:

KeyTypeDescription
tostringaddress or paymail
satsnumbersatoshis