#bootsy_api

1 messages ¡ Page 1 of 1 (latest)

fallow shardBOT
vapid juncoBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

fallow shardBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1240740356186701824

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

earnest depot
#

how to sed fields config to return address field

What are you trying to achieve?

dim moat
#

i'm trying to generate address name and email fields via payment element on the afterpay option so that when i submit the info the user passes in billing information. without billing info the api fails, but i can only get the form to show name and email. no address

earnest depot
#

Gotcha -- you cannot currently "opt in" to non-required fields.

#

I can share your feedback that you want to be able to do this, we've heard that from others before, but its not currently possible

dim moat
#

hmm...

earnest depot
dim moat
#

i'm confused because the api fails if i don't pass in address so why is it considered 'not required'

earnest depot
#

What are you seeing in the payment element if you remove fields and what is the error you hit?

dim moat
#

i see name and email field. i call stripe.confirmAfterpayClearpayPayment and it throws error and says billing address is required

earnest depot
#

i call stripe.confirmAfterpayClearpayPayment
Can you try confirmPayment instead? THat should use the selected payment method in the payment element and the billing details there

#

But you'll still need to add the Address Element in mode=shipping for the shipping address, if i recall

dim moat
#

we don't need any shipping

#

can i just pass an empty string?

#
            {
                elements: this.stripeElements,
                confirmParams: {
                    return_url: 'http://localhost:4200/book/newuser#services',
                    payment_method_data: {
                        billing_details: {
                            address: {
                                country: 'US',
                                line1: '',
                            }
                        }
                    }
                },
            })```
earnest depot
#

No I wouldn't recommend that

#

Ok so can you try adding the AddressElement using mode=billing ? Im going to capture feedback to improve this but want to make sure it gets things working for you first.

dim moat
#

ok, so i use your api to generate address element and payment element?

earnest depot
#

Yea how does you payment element integration look? ie, react vs html/js

dim moat
#

using angular

#
            fields: {
                billingDetails: {
                    name: 'auto',
                    email: 'auto',
                    address: {
                        country: 'never',
                    }
                },
            }
        });```
earnest depot
#

Gotcha -- I can't offer as much guidance there since we don't have a first-party angular library, but broadly you'll want to crate and mount an address element in the same elements group as the payment element, then it should be able to get those details automatically