# Create Payment Plugin

**URL:** <https://forum.shopware.com/t/create-payment-plugin/105385>\
**Category:** Programming (EN)\
**Created:** [1. Oktober 2024 um 00:23 UTC](https://forum.shopware.com/t/create-payment-plugin/105385 "2024-10-01T00:23:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![inagroup](https://avatars.discourse-cdn.com/v4/letter/i/eada6e/32.png) [@inagroup](https://forum.shopware.com/u/inagroup)\
**Post date:** [1. Oktober 2024 um 00:23 UTC](https://forum.shopware.com/t/create-payment-plugin/105385/1 "2024-10-01T00:23:42Z")

</div>

I have been trying to create a new payment method plugin based on the example at [Payment Plugin](https://developer.shopware.com/docs/v6.7/guides/plugins/plugins/checkout/payment/add-payment-plugin.html) however, I’ve been having problems. What should the composer.json file contain? The service id in the example is "Swag\PaymentPlugin\Service\MyCustomPaymentHandler, but what does PaymentPlugin refer to? This doesn’t appear in the other files. How should the plugin and service be named, as this isn’t clear from the example.

I would greatly appreciate any help or working sample that anyone could share. Thanks.
