Shopify / mobile-buy-sdk-android

Shopify’s Mobile Buy SDK makes it simple to sell physical products inside your mobile app. With a few lines of code, you can connect your app with the Shopify platform and let your users buy your products using their credit card.
MIT License
214 stars 136 forks source link

checkout with credit card #595

Closed jnahar2005 closed 5 years ago

jnahar2005 commented 5 years ago

cartVaultUrl found nil //-------Code Is given Below------------

   //var settings: Storefront.PaymentSettings!
    //var cardClient: Card.Client!
    //cardClient = Card.Client.init()
    // settings = Storefront.PaymentSettings(fields: <#[String : Any]#>)

let task = appDelegate.cardClient.vault(creditCard, to: appDelegate.settings.cardVaultUrl) { token, error in if let token = token { // proceed to complete checkout with token self.createCCInput(Token: token) } else { // handle error } } task.resume() }

jamiemtdwyer commented 5 years ago

Hi @jnahar2005,

Currently, vaulting of credit cards and completing a checkout via credit card payment is not supported.

You can redirect the customer to the webUrl attribute of the checkout in order to have the customer complete the checkout flow on Shopify.

Cheers,

Jamie