• Resolved petfresh

    (@petfresh)


    Hi,

    I’m needing to onboard a specific set of users via a link, which gets them to create an account, then add a payment method.

    My goal was to display the “Add Payment Method Stripe Form” but when I call that function, all I get is a list of available payment gateways, and no form.

    If I inspect the page, see that the div has a style of display: none;, when removed, the fields appear with no input boxes, just labels.

    Is this because it’s not the endpoint /my-account/add-payment-method/ and
    is_add_payment_method_page() is not true? Is displaying on another page not possible?

    Any advice would be great!

Viewing 1 replies (of 1 total)
  • Saif

    (@babylon1999)

    Hello @petfresh,

    So if I understand this correctly, you want to share a link where the user can register and be redirected to add a payment method.

    By default, if you have the option below enabled then you can share just share the following link with your users https://mysite/my-account/add-payment-method/ and once they register they will be redirected to the add a payment page.


    Link to image: https://i.imgur.com/nkf1uqk.png

    Is this because it’s not the endpoint /my-account/add-payment-method/

    I’m really not sure what’s your current setup, but with the example I gave above then yes changing the endpoint will affect this.

    Hope this helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Cannot display Add Payment Method using woocommerce_account_add_payment_method()’ is closed to new replies.