let amount = 0.0001; // amount in BTC
amount: amount, // amount in BTC
currency: "BTC", // currency1 = currency2 = BTC
// currency1: "BTC", // The original currency of the transaction
// currency2: "LTC" //The currency the buyer will be sending
// you can use another fields also
// except custom and ipn_url (it used by Lib)
// See https://www.coinpayments.net/apidoc-create-transaction
// generated wallet, QR code, payment page
// will be available in this command
onSuccess: '/onCreatePayment',
// on successful payment this command
onPaymentCompleted: "/onPaymentCompleted",
// if you want customize error messages
Libs.CoinPayments.createTransaction(options);