#ragnar_api

1 messages ยท Page 1 of 1 (latest)

foggy roostBOT
#

๐Ÿ‘‹ 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/1395361215739330601

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

dull orchid
#

Hi
What is the use case exactly ?

#

Could you please share a concrete example ?

raven wren
#

Hi!
Is this thread public or only visible to Stripe devs/mods? I haven't used Discord in ages.

dull orchid
#

This is public thread yeah

foggy roostBOT
#

๐Ÿ’ What you can share safely

This is a public server. Anyone can see the messages posted here, so you need to be careful when sharing certain information.

๐Ÿ›‘ Not safe to share

Do not share anything sensitive or privileged on Discord, including the following:

  • ๐Ÿ›‘ Secret API keys (most Stripe secret API keys start with sk_, rk_, or ek_)
  • ๐Ÿ›‘ Secrets (examples include Stripe's client secrets, which contain _secret_, and Stripe's webhook signing secrets, which start with whsec_)
  • ๐Ÿ›‘ Passwords, keys, or other login/authentication details
  • ๐Ÿ›‘ Information about non-public features or functionality

If you don't want something public, don't share it here.

โœ… Safe to share

Stripe object IDs are safe to share in public, and are often required to help us investigate and debug issues. Some examples of IDs you can share safely are:

  • โœ… Customer IDs (cus_)
  • โœ… Checkout Session IDs (cs_)
  • โœ… Subscription IDs (sub_)
  • โœ… Invoice IDs (in_)
  • โœ… Setup Intent IDs (seti_)
  • โœ… Payment Intent IDs (pi_)
  • โœ… Charge IDs (ch_ and py_)
  • โœ… Request IDs (req_)

This list isn't comprehensive; there are too many Stripe object IDs and prefixes to list that are safe to share publicly.

If in doubt, ask someone on this server with the Stripe Staff role if a particular piece of information is safe to share before you share it.

raven wren
#

ok I can't fully discuss what I am developing but it basically allows safe user generated content (media) to be sold using Stripe.
Any high risk content is diverted to a high risk payment processor.
I just want to add tips at checkout to allow the buyer to send say $2, $5, $10, $50 to show extra support.
Is this possible? I can obviously do this in my own code before the checkout but it is not as nice as at the point of (online) sale.

#
  • all content goes through multiple layers of automated checks (and manual reviews if the risk score is high or ambiguous)
dull orchid
#

But these are fixed rates and not percentage

raven wren
#

fixed is completely fine!!!

#

why is Gemini and OpenAI pointing me to tips_configuration or after_completion fields on checkout.sessions.create? these have been deprecated I'm assuming?

#

like this:
const session = await stripeClient.checkout.sessions.create({
payment_method_types: ['card'],
line_items: [{
price_data: {
currency: 'usd',
product_data: {
REDACTED
},
unit_amount: basePrice,
},
quantity: 1,
}],
mode: 'payment',
customer_email: customerEmail,
metadata: { albumId, customerEmail },
after_completion: {
type: 'tipping',
tipping: {
// This is the base amount for calculating percentage tips.
amount_eligible: basePrice,

      // Option A: Suggested percentages (e.g., 10%, 15%, 20%)
      // The customer can also enter a custom amount.
      // percentages: [10, 15, 20],

      // Option B: Suggested fixed amounts (e.g., $2, $5, $10, $50)
      // Provide amounts in the smallest currency unit (cents).
      amounts: [200, 500, 1000, 5000],
    },
  },
  success_url: successUrl,
  cancel_url: cancelUrl,
});
#

I can work with cross-sells though thank you

dull orchid
#

I'm not aware of such options as far as I know, LLMs aren't reliable usually.

raven wren
#

yes absolutely they probably made it up haha

#

thank you I'll see how I go with the cross-sells