Skip to content

Simple Commerce Stripe Integration - passing the postcode #862

Closed Answered by jamie-b5
jamie-b5 asked this question in Help
Discussion options

You must be logged in to vote

Answering my own question in case it helps anyone else!

 var $postalCode = '{{ billing_postal_code ? billing_postal_code : shipping_postal_code }}';

//const card = elements.create('card');
const card = elements.create('card', {hidePostalCode: true, value: {postalCode: $postalCode}});

Replies: 1 comment 1 reply

Comment options

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

Answer selected by jamie-b5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
2 participants