Skip to content
On this page

handlePayment ​

Definition ​

Signature ​

ts
export async function handlePayment(
  params: {
    orderId: string;
    finishUrl?: string;
    errorUrl?: string;
    paymentDetails?: unknown;
  },
  contextInstance: ShopwareApiInstance = defaultInstance,
): Promise<{
  redirectUrl: string | null;
  apiAlias: string;
}> 

Parameters ​

NameTypeDescription
params
{
    orderId: string;
    finishUrl?: string;
    errorUrl?: string;
    paymentDetails?: unknown;
  }
contextInstance
ShopwareApiInstance

Return type ​

ts
Promise<{
  redirectUrl: string | null;
  apiAlias: string;
}>

Usage example ​

WARNING

Example is generated automatically. Sometimes it's required to be adjusted to your needs.

Open in StackBlitz

handlePayment has loaded