Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LuciferianRobot opened this issue Feb 21, 2023 · 0 comments

Comments

@LuciferianRobot
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant