# Payment Method Integration

A crucial part in any Magento website – payment methods! In the Magento Marketplace you can find a large number of payment method providers – but adapting them to work with Scandi can require additional effort (unless the integration already exists on the Scandi Marketplace).

In this tutorial, you'll learn the basics of building an extension for integrating a new payment method in Scandi.

For our example, we'll use Mollie. Like many other providers, Mollie redirects the user to another page after checkout to complete the payment. After the customer has entered their details on the 3rd party site, they are redirected back to the website, where they see a message about the current payment status. We'll need to adapt this logic so it also works in a Scandi theme.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.scandipwa.com/tutorials/payment-method-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
