Access user's vaulted credit cards at check out? iOS Mobile Buy SDK

New Member
3 0 0

Hello I am currently trying to implement the iOS Mobile Buy SDK into my project. I had a few questions regarding the SDK.


1. Once I vault a credit card, is there a way to associate this credit card with a user - so at the checkout the user can just select from a list of their credit cards rather than entering their credit card information every time.

1b. If the SDK does not provide a way to access a user's vaulted credit cards, is it safe for myself to handle saving the token we get back from vaulting the credit card and reusing this token for future check outs? Does this token ever expire?


2. How do I check out as a user so that checkout order is associated with that user?


Thanks for your help in advance. I've tried searching all over before asking these questions but was unable to find the answers.

Shopify Staff
Shopify Staff
534 105 105

Hi @xanderbuck 


1. Shopify does not handle the vaulting / saving of the credit card token. On the checkout, you can use Shop Pay, Google Payments, Apple Pay etc. 


1b. You can handle this yourself through a service that is PCI compliant, but you will incur more complexity. For example, you can use Spreedly to handle the tokenization and storage. The SDKs are built on the Storefront API so you can use this as a reference:


2. You will create the access token for your customer, and once you have that you will use: - the syntax will vary slightly in each SDK but the mutation and logic is the same. 

Vix | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit or the Shopify Web Design and Development Blog

New Member
1 0 0

Thank you for pointing this out, Vix.  You'll use Spreedly's Payment Method Distribution (PMD) flow to complete this.

It's usually best to speak with Spreedly's technical sales staff before starting development.  They can be reached here.

New Member
2 0 0

Hi @vix ,

I am a bit confused with this, isn't Shopify Payments supposed to be a Spreedly replacement ? also reading in the iOS Buy SDK it seems to be supported isn't ?