Home > @shopware-pwa/shopware-6-client > handlePayment
# handlePayment() function
Signature:
export declare function handlePayment(params: {
orderId: string;
finishUrl?: string;
errorUrl?: string;
paymentDetails?: unknown;
}, contextInstance?: ShopwareApiInstance): Promise<{
redirectUrl: string | null;
apiAlias: string;
}>;
# Parameters
Parameter | Type | Description |
---|---|---|
params | { orderId: string; finishUrl?: string; errorUrl?: string; paymentDetails?: unknown; } | |
contextInstance | ShopwareApiInstance |
Returns:
Promise<{ redirectUrl: string | null; apiAlias: string; }>