#bootsy_api
1 messages ¡ Page 1 of 1 (latest)
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.
- bootsy_api-account-support, 2 days ago, 67 messages
- bootsy_api, 5 days ago, 11 messages
- bootsy_messaging-element-styles, 6 days ago, 43 messages
đ 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.
how to sed fields config to return address field
What are you trying to achieve?
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
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
hmm...
You will need to use the Address Element and/or your own fields for other billing address details, then pass those in the confirmPayment call as payment_method_data[billing_details]:
https://docs.stripe.com/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-payment_method_data-billing_details
i'm confused because the api fails if i don't pass in address so why is it considered 'not required'
What are you seeing in the payment element if you remove fields and what is the error you hit?
i see name and email field. i call stripe.confirmAfterpayClearpayPayment and it throws error and says billing address is required
i call stripe.confirmAfterpayClearpayPayment
Can you tryconfirmPaymentinstead? 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
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: '',
}
}
}
},
})```
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.
ok, so i use your api to generate address element and payment element?
Yea how does you payment element integration look? ie, react vs html/js
using angular
fields: {
billingDetails: {
name: 'auto',
email: 'auto',
address: {
country: 'never',
}
},
}
});```
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