Test subscriptionContracts on development stores

WinkyApps
Explorer
55 13 13

I have created a test subscription through a graphql mutations suggested in the documentation along with "test=true" parameter. 

 

mutation {
  appSubscriptionCreate(
    name: "Super Deluxe Recurring Plan"
    test: true,
    returnUrl: "http://super-duper.shopifyapps.com"
    lineItems: [{
      plan: {
        appRecurringPricingDetails: {
          price: { amount: 1.00, currencyCode: USD }
          interval: EVERY_30_DAYS
        }
      }
    }]
  ) {
    userErrors {
      field
      message
    }
    confirmationUrl
    appSubscription {
      id
    }
  }
}

 

 

When I query subscriptionContracts the response is empty. I do not see the created subscription on the response. How do you confirm the charge IDs from the return url? It doesn't work on test transactions?

 

query {
  subscriptionContracts(first: 10) {
    edges {
      node {
        id
        createdAt
        status
        nextBillingDate
        customer {
          firstName
          lastName
        }
        billingPolicy {
          interval
          intervalCount
        }
      }
    }
  }
}
Did my answer work for you? Please drop a Like and Mark it as Accepted.
If you need further help or want to get something custom built for your Shopify store, then feel free to mail our team on winkyapps18@gmail.com
Happy to help.
Replies 0 (0)