# How to Redirect from PaymentService file to My Controller in shopware6

**URL:** https://forum.shopware.com/t/how-to-redirect-from-paymentservice-file-to-my-controller-in-shopware6/60176
**Category:** Programming (EN)
**Tags:** datepicker
**Created:** [27. Juni 2019 um 08:08 UTC](https://forum.shopware.com/t/how-to-redirect-from-paymentservice-file-to-my-controller-in-shopware6/60176 "2019-06-27T08:08:09Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![charles0301](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/charles0301/32/8085_2.png) [@charles0301](https://forum.shopware.com/u/charles0301)
#### Post date: [27. Juni 2019 um 13:00 UTC](https://forum.shopware.com/t/how-to-redirect-from-paymentservice-file-to-my-controller-in-shopware6/60176/5 "2019-06-27T13:00:22Z")

</div>

Hello Michael,

Thanks for the reference you are provided it’s really helpful. As you said I have got the return\_URL from the&nbsp;AsyncPaymentTransactionStruct object. I have the Following questions based on generating the URL?

1. I have created the sample URL by analyzing the&nbsp;PayPal module, I don’t know if it’s right are not?

&nbsp; my module name " **swag-sample**" controller name " **test**" and action name " **refund**"

1. And then forward to the generated URL by using this?&nbsp;

Please guide me to proceed further, I would be very grateful

Best Regards,

Charles&nbsp;

---

_[View the full topic](https://forum.shopware.com/t/how-to-redirect-from-paymentservice-file-to-my-controller-in-shopware6/60176)._
