Skip to content

Phone number field and shipping options are not showing up on credit/debit card orders... #234

@LuciferianRobot

Description

@LuciferianRobot

I'm using Angular v13, ngx-paypal v9, creating orders and authorizing on the server side with Firebase.

When entering customer info on the app, I get no field for phone number until an attempt is made to capture the card, then an error is thrown and the field suddenly appears:

clientBefore
phoneLog
clientAfter

I am also not getting any options to select shipping type when shipping options are provided in the server code per PayPal docs:

body: JSON.stringify({
            intent: 'CAPTURE',
            purchase_units: [
                {
                    amount: {
                        currency_code: 'USD',
                        value: orderInfo.orderData.total,
                    },
                    shipping: {
                        options: [
                            {
                                id: 'DOMESTIC_SHIPPING',
                                label: 'Ship to Home Address',
                                type: 'SHIPPING',
                                selected: false,
                                amount: {
                                    value: '5.00',
                                    currency_code: 'USD'
                                }
                            },{
                                id: 'PICK_UP',
                                label: 'Pick up in Store',
                                type: 'PICKUP',
                                selected: true,
                                amount: {
                                    value: '0.00',
                                    currency_code: 'USD'
                                }
                            }
                        ]
                    }
                },
            ],
        }),

shippingLog

An error is thrown indicating that PICKUP is selected by default. Not sure which configuration options I need to customize to get the fields I need showing, would greatly appreciate some help here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions