> For the complete documentation index, see [llms.txt](https://docs.payum.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.payum.dev/how-to-contribute-from-subrepository.md).

# How to contribute from sub repository

Some time you do not need the whole payum stuff and decided to install only a single gateway. Let's say it was a `payum/stripe`. Later on you found a bug fixed it and want to contribute it back to payum main repository. The patch could not be accepted on payum/stripe repository. It is readonly subtree split repository. Here I show you how to move your fixes to payum/payum repository and push them.

1. Fork [payum/payum](https://github.com/Payum/Payum) repository on GitHub.
2. Clone forked repository locally.

```bash
$ git clone git@github.com:Foo/Payum.git Payum
$ cd Payum
$ git checkout -b patch1
```

3. Add your fork of `payum/stripe` repository as remote and fetch changes

```bash
$ git remote add foo git@github.com:foo/Stripe.git
$ git fetch foo
```

4. Merge changes from sub repository

```bash
$ git subtree pull --prefix=src/Payum/Stripe/ foo patch1
```

5. Push changes to GitHub and open a Pull Request as usual.

```bash
$ git push origin patch1
```

***

### Supporting Payum

Payum is an MIT-licensed open source project with its ongoing development made possible entirely by the support of community and our customers. If you'd like to join them, please consider:

* [Become a sponsor](https://github.com/sponsors/Payum)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.payum.dev/how-to-contribute-from-subrepository.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
