#hari-developer_webhooks
1 messages · Page 1 of 1 (latest)
👋 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/1303308628081770517
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- hari-developer_best-practices, 4 days ago, 4 messages
- hari_connect-branding, 4 days ago, 13 messages
It's probably all in Workbench now: https://dashboard.stripe.com/workbench/overview
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I only see overview , event destinations, events, logs, errors, inspector and shell tabs.
My old test account has overview, api keys, webhooks, events, logs and error tabs
Ah, Event Destinations is the new name for webhooks
Got it
Same functionality
Is there a way to subscribe to platform changes ?
What do you mean by 'platform changes'?
Changes like webhook is now event destinations
You'd read the changelog: https://docs.stripe.com/changelog/acacia#2024-10-28.acacia
What's new in Acacia
I have couple of other questions? Should I ask here or open a new thread it’s about collecting partially payment and information displayed on stripe hosted checkout page
Here is fine
I am creating payment link using stripe:
:session:create . With following key valuues. Line items {name, unit amount, quantity) payment method types[card]
When is send payment link. I only see card option. Secondly I don’t have an option to pay partial amount
When is send payment link. I only see card option
Well that seems expected if you're specifyingpayment_method_types[card], no? What other methods do you expect to see?
Secondly I don’t have an option to pay partial amount
Can you elaborate more on that? But overall I think that's not something that is supported
Payment method I would like to support ach, wire transfers and cash apps
Regarding payment link. In the key value pair, if I send unit amount 1000$ and quantity 1. When I check out it charges $1000. if I want pay only $800, is it possible
Then omit the payment_method_types parameter from your API requests and we'll dynamically offer enabled PMs that are supported for the payment: https://docs.stripe.com/payments/payment-methods/dynamic-payment-methods
That's not supported today, no
Is the partially payment method coming anytime soon?
Not that I'm aware of
Thank you
I have one other question on stripe hosted checkout page. I understood what I can brand from the front icon, background and font.
Will this change for connected accounts?
Second question, how do I control what to show on the left side of the page like invoice lines example product picture, description amount, tax and total . Also footer with connected account logo and contact details
I am using direct payment method to the seller on the platform
Will this change for connected accounts?
Depends on how you're creating the payments for the connected account (direct, destination). That determines what branding is used
Second question, how do I control what to show on the left side of the page like invoice lines example product picture, description amount, tax and total . Also footer with connected account logo and contact details
What specifically do you want to control? Checkout's payment page is not very customisable beyond the basics here: https://docs.stripe.com/payments/checkout/customization
Then direct payments will use the connected account branding: https://docs.stripe.com/connect/direct-charges?platform=web&ui=stripe-hosted#branding
There is no way to override the connected account branding with platform default branding
Not with direct charges, no
Regards to what content to show on the check out page. I would like to show Invoice details. For example I am selling coffee cup for $9 , bag of coffee powder for $30 and total tax is $5. I want to display all three line items with price, tax and then total.
That should work yes assuming you're passing the correct parameters
Could you help me with document when I can find on how to send these details?
Why don't you start by showing me the API request/code you're using now and I can help adapt it?
sure. Here is the code I am using to generate payment link.
checkout_session = Stripe::Checkout::Session.create(
{
payment_method_types: ['card'],
line_items: [{
price_data: {
currency: currency,
product_data: {
name: description,
},
unit_amount: amount.to_i,
},
quantity: 1,
}],
mode: 'payment',
client_reference_id: session_id,
#customer_email: options[:customer_email],
success_url: "#{sas_customer.get_web_host_url}/success.html?session_id=#{session_id}",
cancel_url: "#{sas_customer.get_web_host_url}/cancel.html?session_id=#{session_id}"
},
{
stripe_account: sas_customer.stripe_account_id
}
)
Sure, so line_items is an array that accepts multiple items. Right now you have one, your coffee cup for example, you can just add another hash to that list for the beans:
line_items: [{
price_data: {
currency: currency,
product_data: {
name: 'Coffee beans',
},
unit_amount: amount.to_i,
},
quantity: 1,
}, {
price_data: {
currency: currency,
product_data: {
name: 'Coffee mug,
},
unit_amount: amount.to_i,
},
quantity: 1,
}],
As for tax, you have a couple options: https://docs.stripe.com/payments/checkout/taxes
👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
If I want to display multiple line items like the one in the attachment.
content highlighted in the box
It has good format with headings in different font and has an image, line items are formated differently
I'm not sure what the question is
While I am creating a payment link, how to send information as shown in the page. Can you direct me to a document that shows on what and how to do it?
as my colleague mentioned you just need to add multiple prices in the line_items
are you creating the PaymentLink through the dashboard or via API?
I missed that code snippet. Doing it through API
here's the docs link https://docs.stripe.com/payment-links/api for reference
but yes as my colleague explained you just need to add multiple line_items instead of one and they will all show on the Checkout hosted page