with OPN (formerly Omise) and LetzAI?
Emit new event for each refunded charge through the OPN platform.
Emit new event for each payment received through the OPN platform.
Emit new event when a new image is created in LetzAI. See the documentation
Emit new event when a new image edit is created in LetzAI. See the documentation
Create a new charge for a specific customer and amount through the OPN platform. See the documentation
Creates an image edit task that modifies an existing image using inpainting or outpainting in LetzAI. See the documentation
Registers a new customer in the OPN platform. See the documentation
Creates a new image generation task from a text prompt in LetzAI. See the documentation
Retrieves information about a specific image by ID. See the documentation
The OPN API, previously known as Omise, provides a powerful suite of features for handling online payments, from processing transactions to managing payment methods. With Pipedream's integration capabilities, you can automate various aspects of payment operations, link payment events to other services, and streamline financial workflows without the need for extensive coding.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
omise: {
type: "app",
app: "omise",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.omise.co/account`,
auth: {
username: `${this.omise.$auth.secret_key}`,
password: ``,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
letzai: {
type: "app",
app: "letzai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.letz.ai/models`,
headers: {
Authorization: `Bearer ${this.letzai.$auth.api_key}`,
"page": `1`,
"limit": `10`,
},
})
},
})