How can I create unpaid test orders without a credit card?

As for this guide: https://help.shopify.com/en/partners/dashboard/managing-stores/test-orders-in-dev-stores
you can’t test using draft orders.
How to simulate unpaid order when the only option is the credit card?

1 Like

Hi @ClickAndDrop , thank you for visiting the Shopify Forum

Credit Cards companies give you test numbers to do this. Last time I used them Shopify detected it and it worked. Here’s a link to those numbers

You can use any expiration and code.

Hoped it helped

Lanzi

Shopify & Klaviyo Partner

PD: If this answer helped you please like & accept it

1 Like

Hi @ClickAndDrop

You can use the Shopify Bogus Gateway or test mode for your preferred gateway as well as the suggestions that @Made_by_Lanzi provided. If you would like to learn more about the bogus gateway and how to test it, you can do so by reviewing this doc in our Help Center: Testing orders in development stores · Shopify Help Center.

1 Like

We’re using Bogus Gateway, but if I try to simulate failed transaction I’m unable to create order with credit cart. Can I override this behaviour somehow?

I’ve managed to do it via API.
(ShopifyClient is just HttpClient)

1 Like

Hi there @ClickAndDrop !

I can see that you’ve got some input from the Community here already, that’s great!

I’d just like to share some info here on how you can create test orders within the development store environment.

If you haven’t already, check out our guide to testing orders in development stores here.

As you can see there, you can use Shopify’s Bogus Gateway to simulate a transaction, or you can enable test mode in your payment gateway.

There are a couple of limitations, which you are likely familiar with now from your work.

You can’t make real orders for test transactions in your dev store, nor can you test using draft orders you create in your Shopify admin.

You would need to place test orders using the development store’s checkout.

There is also info there on testing this using the API, which you seem to be managing already.

Thanks for taking the time to share your query with us here, and thanks to the Community members who chipped in with their input too!