So I am making a subscription app. I need it so that when an order is created and the user is not subscribed a subscription contract is created for them, this process requires the customer to have a payment method, to get this I use:
{
customer(id: $customerID) {
firstName
paymentMethods(first: 5) {
edges {
node {
id
}
}
}
}
}
I was testing this on my development store with a fresh account but payment methods is blank, even after completing the checkout. I need to know if when a checkout is completed the paymentMethod is saved, if not do I have to handle this myself and how can I do this. Many Thanks in advance I have been stuck on this for hours