> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mastermindcms.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PaymentProviderServiceImpl

> Aufruf öffentlicher Servicemethoden über die REST API: paymentProviderServiceImpl

<ResponseField name="beanId" type="string">
  Die Spring-Bean-ID des aufzurufenden Services.

  paymentProviderServiceImpl
</ResponseField>

<ResponseField name="scope" type="string" default="PROTOTYPE">
  Bean-Scope. Für Serviceaufrufe wird PROTOTYPE verwendet.
</ResponseField>

<ResponseField name="functionName" type="string">
  Der öffentliche Methodenname des Services, der in der Signatur angegeben ist.
</ResponseField>

<ResponseField name="args" type="object[]">
  Das Argument-Array der Methode. Jedes Argument wird mit dem Index 0, 1 usw. übergeben; der Wert muss dem Java-Parametertyp entsprechen.
</ResponseField>

## Headers

```http theme={null}
POST /api/v1/bean/request
Content-Type: application/json
Lang-Context: de
Site-Context: my-site
Authorization: Bearer <token>
```

Senden Sie `Lang-Context` und `Site-Context` mit jeder Anfrage. Für geschützte Methoden senden Sie das JWT im Header `Authorization` im Format `Bearer <token>`.

**Zugriff:** ADMIN. **Bearer Token:** erforderlich.

* GUEST — nicht angemeldete Benutzer; nur Whitelist-Services sind verfügbar.
* USER — Authentifizierung erforderlich; Methoden mit USER-Prüfung sind verfügbar.
* ADMIN — vollständiger Zugriff auf öffentliche Methoden aller Services.
* Wenn eine Methode intern eine Rolle prüft, kann GUEST null erhalten.

## Methoden

<ResponseField name="isActive" type="boolean">
  | Argument | Typ | Beschreibung                              |
  | -------- | --- | ----------------------------------------- |
  | —        | —   | Diese Methode akzeptiert keine Argumente. |

  ### isActive

  ```json theme={null}
  {
    "beanId": "paymentProviderServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "isActive",
    "args": []
  }
  ```
</ResponseField>

<ResponseField name="createInvoice" type="String">
  | Argument  | Typ      | Beschreibung                |
  | --------- | -------- | --------------------------- |
  | `orderId` | `String` | Übergeben über `args[0].0`. |

  ### createInvoice

  ```json theme={null}
  {
    "beanId": "paymentProviderServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "createInvoice",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="cancelPayment" type="String">
  | Argument    | Typ      | Beschreibung                |
  | ----------- | -------- | --------------------------- |
  | `paymentId` | `String` | Übergeben über `args[0].0`. |

  ### cancelPayment

  ```json theme={null}
  {
    "beanId": "paymentProviderServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "cancelPayment",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="refundPayment" type="String">
  | Argument    | Typ      | Beschreibung                |
  | ----------- | -------- | --------------------------- |
  | `paymentId` | `String` | Übergeben über `args[0].0`. |

  ### refundPayment

  ```json theme={null}
  {
    "beanId": "paymentProviderServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "refundPayment",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="changePaymentMethod" type="boolean">
  | Argument          | Typ      | Beschreibung                |
  | ----------------- | -------- | --------------------------- |
  | `paymentId`       | `String` | Übergeben über `args[0].0`. |
  | `paymentMethodId` | `String` | Übergeben über `args[1].1`. |

  ### changePaymentMethod

  ```json theme={null}
  {
    "beanId": "paymentProviderServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "changePaymentMethod",
    "args": [
      {
        "0": null,
        "1": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="get3DSecureLink" type="String">
  | Argument    | Typ      | Beschreibung                |
  | ----------- | -------- | --------------------------- |
  | `paymentId` | `String` | Übergeben über `args[0].0`. |

  ### get3DSecureLink

  ```json theme={null}
  {
    "beanId": "paymentProviderServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "get3DSecureLink",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="checkConnectAccountStatus" type="String">
  | Argument | Typ | Beschreibung                              |
  | -------- | --- | ----------------------------------------- |
  | —        | —   | Diese Methode akzeptiert keine Argumente. |

  ### checkConnectAccountStatus

  ```json theme={null}
  {
    "beanId": "paymentProviderServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "checkConnectAccountStatus",
    "args": []
  }
  ```
</ResponseField>

<ResponseField name="calculateTotalPrice" type="Map<String,Object>">
  | Argument  | Typ      | Beschreibung                |
  | --------- | -------- | --------------------------- |
  | `orderId` | `String` | Übergeben über `args[0].0`. |

  ### calculateTotalPrice

  ```json theme={null}
  {
    "beanId": "paymentProviderServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "calculateTotalPrice",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="calculateTaxAmountPrice" type="Map<String,Object>">
  | Argument  | Typ      | Beschreibung                |
  | --------- | -------- | --------------------------- |
  | `orderId` | `String` | Übergeben über `args[0].0`. |

  ### calculateTaxAmountPrice

  ```json theme={null}
  {
    "beanId": "paymentProviderServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "calculateTaxAmountPrice",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="calculateItemsTotalBruttoAmount" type="Map<String,Object>">
  | Argument  | Typ      | Beschreibung                |
  | --------- | -------- | --------------------------- |
  | `orderId` | `String` | Übergeben über `args[0].0`. |

  ### calculateItemsTotalBruttoAmount

  ```json theme={null}
  {
    "beanId": "paymentProviderServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "calculateItemsTotalBruttoAmount",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="calculateServiceFeeBruttoAmount" type="Map<String,Object>">
  | Argument  | Typ      | Beschreibung                |
  | --------- | -------- | --------------------------- |
  | `orderId` | `String` | Übergeben über `args[0].0`. |

  ### calculateServiceFeeBruttoAmount

  ```json theme={null}
  {
    "beanId": "paymentProviderServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "calculateServiceFeeBruttoAmount",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="calculatePayoutAmount" type="Map<String,Object>">
  | Argument  | Typ      | Beschreibung                |
  | --------- | -------- | --------------------------- |
  | `orderId` | `String` | Übergeben über `args[0].0`. |

  ### calculatePayoutAmount

  ```json theme={null}
  {
    "beanId": "paymentProviderServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "calculatePayoutAmount",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>
