Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.

Charge a customer's customerPaymentMethod without repeat Shopify checkout interaction

Shopify Partner
3 0 0

I'd like to see if we can integrate an existing system into Shopify, using the tools that came out with Shopify's Subscription APIs.


Our current system does this (without Shopify):

- Asks customers to input their payment method in advance

- Sends the customer offers
- Charges the customer -- without exposing them to checkout again -- if they elect to purchase the offer. They just see an offer, basically say "I want that", and then we run a transaction for them. 

Is this possible using Shopify for all of the transactions? I see that customerPaymentMethod stores customer payment methods on file and that the Subscription APIs charge those payment methods after the fact, but I don't see a way for our app to say "Okay, charge this customer $<arbitrary-dollar-amount> now."

Reply 1 (1)

Shopify Staff (Retired)
31 4 5

Hi @domramirez 


While technically this could be done I believe it would go against the guidelines for the subscriptions API. This wouldn't be a clear contract about what a customer is going to pay.


If this is closer to an opportunity to buy scenario you can use our deferred purchase options api but the customer would need to do a checkout for each potential purchase whether they purchase it or not, similar to entering a draw.

To learn more visit the Shopify Help Center or the Community Blog.