Appearance
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 ​
| Name | Type | Description | 
|---|---|---|
| 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.