What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

I've developed a Shopify App using the App Subscriptions model - how to test Subscription payment?

I've developed a Shopify App using the App Subscriptions model - how to test Subscription payment?

bucklit
Shopify Partner
8 0 0

I've created a Shopify App using the "App Subscriptions" model. Based on the "Testing your app’s billing system" documentation I found, you can send a "test": true property into the charge request to have it treat the request as a test. I am able to use the API to create a recurring application charge. When I navigate to the confirmation URL, I want to be able to test payment. I thought I could do so if test mode on Shopify payments is on and I use the card numbers from here but the card numbers keep getting declined.

What I've tried:

Created a test store.
Enabled Bogus payment and tested using the credit card numbers. 

Enabled Shopify Payments turned on "test" and used the credit card numbers.

 

bucklit_0-1713579005224.png

 


Is there any way for me to test this? 

Reply 1 (1)

ChaseKaneki
Shopify Staff
47 6 4

Hello @bucklit 

 

The steps to successfully make a billing attempt are the following:

1. Create a development store

2. Enable Shopify Payments is enabled in test mode

3. Purchase a subscription product as a customer through the checkout

4.  Create a billing attempt with the same api client that created the subscription

 

hope this helps!

Chase Dougherty