Hi All! I am trying to use Apple pay as a checkout option for my subscription product, but am having trouble with saving the card for future use.
My flow is: Create Payment API → Create customer → Create card with customer id.
When using my apple card via Apple Pay, the card saves as normal. But when using apple pay to tokenize and my Amex / Visa credit card, they keep failing on the create card step (the create payment step works).
Is this a hard limitation? Am I missing something?
Thanks for the help!
I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:
Additional Documentation
Cards API
Create a Shared Card on File and Make a Payment
Create a Card on File from a Payment ID
If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.
At this time the ability to store a digital wallet card on file isn’t currently available with Square APIs. We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team.
Using Apple Pay to tokenize a card and then saving it for future use is a common integration pattern, but it’s important to understand the specifics. When you use Apple Pay with your Apple Card, the card saves successfully because the Apple Card is a first-party product and has specific integrations. However, when using Apple Pay with other cards like Amex or Visa, the tokenization process may not provide the necessary data for a “create card” API call to save the card on file for recurring charges. This is because the token provided by Apple Pay is designed for a single-time use, and the card networks and banks often have restrictions on using these single-use tokens for creating a reusable paybyplatema payment method. To save a card for future use, you typically need to collect the card details directly from the user or use a tokenization method that is specifically designed for creating a reusable payment method.
If that is the case, how does Stripe allow you to save cards for recurring payments with Apple Pay? It’s a supported feature for them.