# No payment methods when trying to generate test data

**URL:** <https://forum.litium.com/t/no-payment-methods-when-trying-to-generate-test-data/743>\
**Category:** Questions\
**Created:** [March 22, 2019, 4:07am UTC](https://forum.litium.com/t/no-payment-methods-when-trying-to-generate-test-data/743 "2019-03-22T04:07:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rikard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/rikard/32/147_2.png) [@Rikard](https://forum.litium.com/u/Rikard)\
**Post date:** [March 22, 2019, 4:07am UTC](https://forum.litium.com/t/no-payment-methods-when-trying-to-generate-test-data/743/1 "2019-03-22T04:07:48Z")

</div>

I am generating test data in a console application so I am adding channels programmatically, something that’s working fine for adding countries, delivery methods, etc. which I’m also adding from scratch. Payment methods however, I am of the understanding that I can’t/shouldn’t add, so instead I’m trying to acquire the GUID for the Klarna and the DirectPay: Invoice payment methods. But when I access ModuleECommerce.Instance.PaymentMethods.GetAll() it’s empty. If I later access it when running the actual web project it has several entries. How does this work and is my problem solvable?

Litium version: 7.1.0

---

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [March 22, 2019, 5:38am UTC](https://forum.litium.com/t/no-payment-methods-when-trying-to-generate-test-data/743/2 "2019-03-22T05:38:18Z")

</div>

Have you install the payment provider addon in the console project?
