Getting error "The shop cannot accept the provided charge" using appSubscriptionCreate

Hello,

Our app has passed app review and we were instructed to set “test” to false to accept actual charges. Once we applied this setting we got the error “The shop cannot accept the provided charge” on our test shop when attempting to create the subscription. The test shop has a valid credit card for the payment method.

Does this have something to do with us using a test shop?

We are trying to create a usage-based subscription for the shop. This works fine with “test” set to true.

Details:

URI: /admin/api/2021-07/graphql.json

Method: POST

Query:

mutation {
    appSubscriptionCreate(
        name: "xxxxxx",
        returnUrl: "xxxxxx",
        test: false,
        lineItems: [{
            plan: {
                appUsagePricingDetails: {
                    terms: "3.5% commission per order",
                    cappedAmount: {
                        amount: 10000.00,
                        currencyCode: USD
                    }
                }
            }
        }, ]) {
        userErrors {
            field,
            message
        },
        confirmationUrl,
        appSubscription {
            id,
            lineItems {
                id,
                plan {
                    pricingDetails {
                        __typename
                    }
                }
            }
        }
    }
}

X-Request-Id:

7687f50b-fc8c-460a-95a6-1816a1af767e-1727982256

I am noticing that in the header we have

x-shopify-api-version: unstable

Is this due to the older api version /2021-07/graphql.json ?

We are hoping to begin onboarding users from our existing app as soon as possible.

Thanks,

David-