Sending billing address with react-paypal-js hosted fields

mursalahmed4
Contributor
Contributor

Has anyone ever sent a billing address using the submit() functionality of the react-paypal-js hosted fields? I'm doing this:

    hostedFields
        .submit({
            // The full name as shown in the card and billing address
            cardHolderName: cardHolderName,
            billingAddress: billingAddress
        })

The problem is that I'm not actually sure that it's working. There's no real way to verify if the billing address is actually being sent to paypal, and its resulting in me getting processing errors such as this one:

         "processor_response": {
                        "avs_code": "N",
                        "cvv_code": "M",
                        "response_code": "9500"
                    }

I couldn't find anything in the official docs about sending billing addresses during the field submission. If anyone knows anything about this let me know. If it's not possible, I will have to switch to the raw sdk.

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.