with PayPro and Formatting?
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
Format a date string to another date string. For more examples on formatting, see the Sugar Date Format documentation.
The PayPro API allows for seamless integration of payment processing capabilities with your web applications or e-commerce platforms. With this API, you can initiate payments, verify transactions, and manage refunds. Automating payment workflows can significantly streamline business operations, reduce the workload on finance teams, and provide real-time financial data synchronization.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
paypro: {
type: "app",
app: "paypro",
}
},
async run({steps, $}) {
const data = {
"apikey": `${this.paypro.$auth.api_key}`,
"command": `get_all_pay_methods`,
}
return await axios($, {
method: "post",
url: `https://paypro.nl/post_api`,
data,
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})