with Mural and Adyen?
Create a new mural within a specified workspace. See the documentation
Cancels a payment that has not yet been captured. See the documentation
Create a new sticky note within a given mural. See the documentation
Captures an authorized payment. This is typically used for delayed capture scenarios, such as when you need to verify the order before capturing the funds.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mural: {
type: "app",
app: "mural",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.mural.co/api/public/v1/users/me`,
headers: {
Authorization: `Bearer ${this.mural.$auth.oauth_access_token}`,
"accept": `application/json`,
},
})
},
})
import adyen from "@adyen/api-library";
export default defineComponent({
props: {
adyen: {
type: "app",
app: "adyen",
}
},
async run({steps, $}) {
const client = new adyen.Client({
apiKey: this.adyen.$auth.api_key,
environment: this.adyen.$auth.environment
});
const managementApi = new adyen.ManagementAPI(client);
return managementApi.MyAPICredentialApi.getApiCredentialDetails();
},
});