Skip to content

Select payment card to use within cart #219

Answered by sags95
VojtaSim asked this question in Help
Discussion options

You must be logged in to vote

@VojtaSim to explicitly set a card for the checkout you can update the cart billing details by passing in the card.token of the card you want to use:

await swell.cart.update({
      billing: {
        card: {
          token: 'pm_***' //or card_***
        }
      }
    });

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@sags95
Comment options

Answer selected by VojtaSim
Comment options

You must be logged in to vote
2 replies
@VojtaSim
Comment options

@ericingram
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants