- Add Activepieces fork with SmoothSchedule custom piece - Create integrations app with Activepieces service layer - Add embed token endpoint for iframe integration - Create Automations page with embedded workflow builder - Add sidebar visibility fix for embed mode - Add list inactive customers endpoint to Public API - Include SmoothSchedule triggers: event created/updated/cancelled - Include SmoothSchedule actions: create/update/cancel events, list resources/services/customers 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
45 lines
1.6 KiB
TypeScript
45 lines
1.6 KiB
TypeScript
import { createCustomApiCallAction } from "@activepieces/pieces-common";
|
|
import { createPiece, PieceAuth, Property } from "@activepieces/pieces-framework";
|
|
import { generateRazorpayAuthHeader, RazorpayCredentials, razorpayURL } from "./lib/common/utils";
|
|
import { createPaymentlink } from "./lib/actions/create-payment-link";
|
|
|
|
export const razorpayAuth = PieceAuth.CustomAuth({
|
|
description: `
|
|
Enter your Key ID and Key Secret
|
|
|
|
Login to your Dashboard with appropriate credentials.
|
|
Select the mode (Test or Live) for which you want to generate the API key
|
|
Navigate to Settings > API Keys > Generate Key to generate keys for the selected mode.
|
|
|
|
The Key ID and Key Secret appear in a pop-out window.
|
|
`,
|
|
required: true,
|
|
props: {
|
|
keyID: Property.ShortText({
|
|
displayName: 'Key ID',
|
|
required: true,
|
|
}),
|
|
keySecret: PieceAuth.SecretText({
|
|
displayName: 'Key Secret',
|
|
required: true,
|
|
}),
|
|
}
|
|
})
|
|
|
|
export const razorpay = createPiece({
|
|
displayName: "Razorpay",
|
|
auth: razorpayAuth,
|
|
minimumSupportedRelease: '0.30.0',
|
|
logoUrl: "https://cdn.activepieces.com/pieces/razorpay.png",
|
|
authors: ['drona2938'],
|
|
actions: [
|
|
createCustomApiCallAction({
|
|
baseUrl: () => razorpayURL.apiURL,
|
|
auth: razorpayAuth,
|
|
authMapping: (auth) => generateRazorpayAuthHeader(auth.props),
|
|
}),
|
|
createPaymentlink
|
|
],
|
|
triggers: [],
|
|
});
|
|
|