• Resolved Bence Szalai



    I’m wondering if the plugin should pre-populate the Debit or Credit Card payment forms based on the Billing details filled in on the same page?

    I’ve already figured out it is pretty much impossible to not require phone number in the card payment form provided by PayPal.

    However right now my customers may enter their Billing country, post code and phone number in the standard WooCommerce checkout form fields, but when they press the gray ‘Debit or Credit Card’ button, the Paypal form has a different country selected, and has the Billing first name and last name, the post code and the phone number fields empty.

    This is quite bad to ask the customers for the same information multiple times on the same page.

    My questions:
    – Is this the intended behavior, or is it an issue with my configuration?
    – If this is the normal behavior, shouldn’t the plugin fill in this information automatically? I’m not sure if this is the exact API responsible for this embedded PayPal form, but if so, it may have the ability to pre-populate these fields: https://developer.paypal.com/docs/checkout/integration-features/standard-card-fields/

    WooCommerce PayPal Checkout Gateway: v2.1.1
    WooCommerce: tested on both v3.9.2 and v4.9.0 – same behavior
    Wordpress: v5.6

Viewing 5 replies - 1 through 5 (of 5 total)
  • Zach W


    Automattic Happiness Engineer


    The PayPal Checkout plugin should copy over the “Billing address” information from the checkout page, even if the “Debit or Credit Card” option is selected in the PayPal window, as shown in the example below:

    Link to video: https://d.pr/i/PO7cGH

    As for the country issue you mentioned, it looks like it may be related to this:


    If so, try the snippet mentioned at the bottom of that issue in the comments and adjust it for the country you need to see if it works.

    If that doesn’t work, what country are you trying with?

    Thread Starter Bence Szalai


    Dear Zach,

    Thanks for looking into this.

    I think I was not clear about the exact issue I’m having. It’s not when the payment is made in a new window using PayPal, but with the embedded Credit / Debit card form. See my recording of the issue:

    View post on imgur.com

    I’ll take a look at the github issue and try the snippet there, but I’d like to clarify about the subject here, as I think the payment in a new PayPal window and the payment using the embedded form is a different thing.

    Zach W


    Automattic Happiness Engineer

    Howdy @grapestain!

    Thanks for the screencast, I see I misunderstood the area you were referencing.

    The GitHub issue that I linked to in my first reply is not relevant to the area you outlined, but it does look like this is a known issue and may already be reported here:


    Can you add your details and recording that you shared above to that issue? That will help you be notified once this is looked into by our developers. Thanks!

    Thread Starter Bence Szalai


    Thanks! I’ve posted my follow up there!

    Zach W


    Automattic Happiness Engineer

    Thanks for doing that, @grapestain!

    Even though the issue isn’t solved, I’m going to mark this forum thread as resolved – Please follow along with the GitHub issue and if you have any further questions, you can open a new thread.

    Any updates that are added to the GitHub thread will be sent in an email notification to you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Pre-populate billing details for Debit or Credit Card payments’ is closed to new replies.