#CameronBryce - dingbot subscription
1 messages ยท Page 1 of 1 (latest)
Hi ๐
Okay so you want to create a Subscription through Discord.
So have you already created these people as Customers? Or will that be part of the flow?
Would the "guild" in this case = Customer? We need to stick to Stripe object names if we are going to help
I am a entry-level developer, so, I might miss something obvious ๐
I have created this link: https://buy.stripe.com/6oEcNq5hC00fgKY9AA
The guild would be the customer in general to make things easier.
My thought process was to have someone buy using this link and when they do, it will show in a database showing they paid. I'm unsure how I would connect it 1:1 for the bot to understand which guild paid.
" I'm unsure how I would connect it 1:1 for the bot to understand which guild paid."
That's my main issue and I apologize if the question is confusing, trying to word best I can. Lol
Okay so you are using a Payment Link here. These are designed to be the most generic interface for collecting payments.
Would there by chance be a better way to pay for a Discord Bot subscription instead?
Well, if you are already writing Python code you could create a Checkout Session on your server. It requires some coding but it also allows you to add customer-specific details: https://stripe.com/docs/payments/checkout/how-checkout-works
Okay, I'll have a look at that. Thank you ๐ I'm just extremely confused on how my bot would know which specific server paid. Lol
That part sounds a bit more exclusive to how you build the bot and what it registers about the discord user who types the keyword.
Yeah, I think I'll probably look into it a bit more. I've seen a few bots use Stripe for it but I truly don't understand the process.
By typing a command, it collects your Guild ID and Guild Name automatically, I was thinking by having an /activate command that it would collect that information but even so, if they pay, I'm not sure how to properly identify which guild paid for it.
I'll look into it more before asking questions so I understand what I'm talking about. Thank you for your time ๐
Sure thing ๐
By typing a command, it collects your Guild ID and Guild Name automatically
If you used Checkout Sessions you could append the Guild ID to themetadataproperty when you create a Checkout Session.
https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout
Let me check that ๐ Thank you so much!
You'd want a webhook handler to track the actual confirmation of the payment and collect the metadata from the webhook event: https://stripe.com/docs/payments/checkout/fulfill-orders
Alright, I'll def try that. It might be a bit more than I'm familiar with but I think with the vids and docs I can get it