• Resolved barnabas1

    (@barnabas1)


    Hi Clayton,

    Under Woo General settings there’s an address autocomplete checkbox https://snipboard.io/3e4L0I.jpg which requries WooPayments plugins instaled. I suppose, if they have this checkbox there might be a way for other plugins apart from WooPayments to integrate in order to provide the address autocomplete.

    Is the address autocomplete feature something we should expect to come from Payment Plugin for Stripe?

    Kind regards,

    Barnabas

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter barnabas1

    (@barnabas1)

    This article suggests that you can install the WooPayments plugin in order to get the address autocomplete functionality and then hide the gateway woocommerce-payments at the checkout with a snippet.

    I wouldn’t want to install another plugin to get the address autocomplete but if there’s a clear pathway that this feature won’t be included in the Payment Plugin for Stripe, then I might consider the solution of the article.

    • This reply was modified 1 month ago by barnabas1.
    Plugin Author Clayton R

    (@mrclayton)

    Hi @barnabas1

    Thank you for contacting Payment Plugins. Let me have the code for the predictive address search functionality reviewed so I can confirm if it’s possible to build that into the Stripe plugin.

    It seems to me that this feature should be available through core rather than a payment solution since a merchant is likely to offer other payment gateways like PayPal, Square, etc.

    Kind Regards

    Thread Starter barnabas1

    (@barnabas1)

    Hi @mrclayton,
    It’s a bit cheeky that thy added this functionality in woo payments plugin rather than the core.
    Thank you for taking the time to review this.

    Plugin Author Clayton R

    (@mrclayton)

    Hi @barnabas1

    After reviewing the WooCommerce and WooPayments code, it looks like the address search functionality is being provided by an endpoint that’s controlled by WooCommerce via https://public-api.wordpress.com/wpcom/v2/sites/%s/address-autocomplete-token. That would indicate registration is required or an account at wordpress.com in order to use that address completion functionality.

    In order to implement something similar in the Stripe plugin, we would need to choose a provider, like Google, that provides the address completion functionality. However, those solutions already exist and are not payment gateway specific. https://woocommerce.com/products/google-autofill-customer-addresses

    Kind Regards

    Thread Starter barnabas1

    (@barnabas1)

    Hi @mrclayton,

    Thank you for clearing things up.

    Best regards,

    Barnabas

    Thread Starter barnabas1

    (@barnabas1)

    Just to complete this thread, I’ve installed woopayments plugin and did the onboarding but when I had to choose between going live or have test payments, I simply chose test payments and finished the onboarding there. The address autocomplete feature under Woo Settings -> General became available and the autocomplete is working at the checkout this way.

    I have another multicurrency plugin that allows me to hide payment methods at the checkout so woopayments is set not to show at all.

    If we are to use another plugin for address autocomplete, maybe woopayments plugin can be the way to get this feature for free.

    Thread Starter barnabas1

    (@barnabas1)

    Hi @mrclayton

    I vibed coded this snippet in the end: https://gist.github.com/Barnabas2/5b15e1540a509a4b6b1c56a4c5d4a13a

    It works with your own API key. I’m not a professional developer, if you would like to check. You might want to use it as a basis for creating an interface in the stripe plugin where you just enter your API key. It’s up to you – as you think best.

    Kind regards,
    Barnabas

    • This reply was modified 3 weeks, 6 days ago by barnabas1.
Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.