droplinked-payment-hub
Version:
A unified payment component that handles different payment providers
17 lines (16 loc) • 689 B
TypeScript
export interface PaymentIntentResult {
clientSecret?: string;
checkoutUrl?: string;
method: string;
shopId: string;
}
/**
* Create payment intent for an order
* @param orderId - The ID of the order
* @param paymentMethod - The payment method type
* @param isTestnet - Whether to use testnet or mainnet
* @param returnUrl - Return URL for PayPal (required for PayPal payments)
* @param cancelUrl - Cancel URL for PayPal (required for PayPal payments)
* @returns Payment intent response
*/
export declare const createPaymentIntent: (orderId: string, paymentMethod: string, isTestnet?: boolean, returnUrl?: string, cancelUrl?: string) => Promise<PaymentIntentResult>;