#hari-developer_webhooks

1 messages · Page 1 of 1 (latest)

tranquil hillBOT
#

👋 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.

flat sparrow
umbral night
#

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

flat sparrow
#

Ah, Event Destinations is the new name for webhooks

umbral night
#

Got it

flat sparrow
#

Same functionality

umbral night
#

Is there a way to subscribe to platform changes ?

flat sparrow
#

What do you mean by 'platform changes'?

umbral night
#

Changes like webhook is now event destinations

flat sparrow
umbral night
#

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

flat sparrow
#

Here is fine

umbral night
#

I am creating payment link using stripe:checkout: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

flat sparrow
#

When is send payment link. I only see card option
Well that seems expected if you're specifying payment_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

umbral night
#

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

flat sparrow
flat sparrow
umbral night
#

Is the partially payment method coming anytime soon?

flat sparrow
#

Not that I'm aware of

umbral night
#

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

flat sparrow
#

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

Customize the appearance and behavior of Checkout.

umbral night
#

I am using direct destination similar to simpleSPa

#

Not like Lyft

flat sparrow
umbral night
#

There is no way to override the connected account branding with platform default branding

flat sparrow
#

Not with direct charges, no

umbral night
#

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.

flat sparrow
#

That should work yes assuming you're passing the correct parameters

umbral night
#

Could you help me with document when I can find on how to send these details?

flat sparrow
#

Why don't you start by showing me the API request/code you're using now and I can help adapt it?

umbral night
#

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
}
)

tranquil hillBOT
flat sparrow
#

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,
}],
elder idol
#

👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

umbral night
#

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

elder idol
#

I'm not sure what the question is

umbral night
#

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?

elder idol
#

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?

umbral night
#

I missed that code snippet. Doing it through API

elder idol
#

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