⚠️ MOVED TO OpenFn/adaptors! ⚠️
N.B.: New versions are available at: https://github.com/OpenFn/adaptors/tree/main/packages/beyonic
Language Pack for building expressions and operations for working with the beyonic API.
{
"apiUrl": "https://beyonic.com/api",
"apiToken": "cdjhiooiSIUJHDYSYUIHASIOHKAANOAJJjsiujhaka"
}
createPayment(fields(
field("phonenumber", "+256773712831"),
field("first_name", "Gideon"),
field("last_name", "Zelalem"),
field("amount", 100.2),
field("currency", "USD"),
field("account", 1),
field("description", "Long-term contract for Arseal"),
field("payment_type", "money"),
field("callback_url", "https://my.website/payments/callback")
))
createCollectionRequest(fields(
field("instructions", "Send me some money, please!"),
field("phonenumber", "+256773712831"),
field("amount", 5.0),
field("currency", "USD")
))
createContact(fields(
field("first_name", "Granit"),
field("last_name", "Xhaka"),
field("phone_number", "+256773712831"),
field("email", "granit@arsenal.com")
))
Clone the repo, run npm install
.
Run tests using npm run test
or npm run test:watch
Build the project using make
.