Testing billing charges

Which store do i need to use for testing billing api, is it the store that is created from the dev dashboard or is it from the partner dashboard(transferable store)? I did try it on the dev store created from dev dashboard, but it was showing the pop up not telling particular store is not eligigl, but when trying to install the app in the transferable store, it needs the disturbution method set on the app, when setting the app disturbution method to public it again shows an error “app needs to be reviewed by Shopify before it can be installed. Contact the app developer for more information about this app.”? Am I doing something wrong or could we test billing api in the dev store created using dev dashboard?

Hi @Samir_Hembrom,

You should be able to test the Billing API with a non-client transfer development store created from the Dev Dashboard.

There is a known issue specifically with Plus Development Stores, where you are unable to approve test billing charges.

Our developers are aware of this issue and are working on a fix for this at this time, and you can follow this thread for more updates on when it is fixed.

In the meantime, as the issue is only happening with Plus Development Stores, you can work around this by creating a new Development Store for testing, and select any other plan for testing, other than Plus.

I’ll mark this thread as closed, and if you have any follow up questions you can reach out in the existing thread I linked above.

I did create the store using using the above method it still asks for credit card details, the plan selected for the store is basic, it is not a plus store.

Hey @Samir_Hembrom, the credit card prompt appears when test: true is missing from your charge creation call. Without, it’s treated as real and requires payment details.

Is test: true currently in your call? Can you share the full body of the mutation you are sending so I can test on my end?

1 Like

@Samir_Hembrom in addition to the test: true variable @KyleG-Shopify mentioned above, you can also make sure that your store has a valid address set in the admin, Settings > General > Store Contact Details, as that can also cause the grayed out “approve” button seen in your screenshot.

Hi @Samir_Hembrom,

Just following up here to see if you’re still unable to create test App Subscription Charges after reviewing the information that @KyleG-Shopify and I shared above? If so, please share the x-request-id from the API call used to create the subscription charge, and we can help look into it further. Otherwise, we’ll go ahead and mark this thread as solved.

I am able to create test subscription, I did not add the test parameter in the mutation, but did include test variable.

2 Likes