#arti-villa_best-practices

1 messages ยท Page 1 of 1 (latest)

regal whaleBOT
#

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

๐Ÿ“ 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.

grim steppe
#

This is what I intend to do, but I'm unclear if I can use stripe sesssion this way

1. **Stripe Payment**:

Create Order โ†’ Create Stripe Session โ†’ Customer Pays via Stripe โ†’ Webhook โ†’ Update Order


2. **Third Party Payment** (e.g., Crypto):

Create Order โ†’ Create Stripe Session (tracking only) โ†’
Customer Pays via Third Party โ†’
Verify Third Party Payment โ†’
Mark Stripe Session as Complete โ†’
Webhook โ†’ Update Order


This way:
- Stripe sessions provide consistent checkout flow tracking
- Payment processing can happen anywhere
- Single webhook system for order status updates
- Unified order management
verbal bough
#

Then you don't need a Checkout Session. Checkout Session is primarily for accepting payments via the Session provided interface. You probably just want an Invoice, and then mark it is paid out_of_band

grim steppe
#

but we still want to use the address elements , discounts, tax calculations, cart creation. invoice doenst' sound like the right thing.

verbal bough
#

Umm but then Checkout Session can only be paid on its UI. Sorry

grim steppe
#

so is there another way outside using the checkout session?

#

but using the elements?

verbal bough
#

Yeah there is PaymentElements, which can have an external payment method you defined, and controlled

grim steppe
#

yeah but using the checkout session api. what do you check out session? The client side form like paymentelement cannot be modified.

verbal bough
#

We have a few options alongside Checkout here, but I think none of them can accept payment paid outside