#david-llop-_save-payment-details

1 messages ยท Page 1 of 1 (latest)

quick boltBOT
#

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

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

candid geyser
#

Hello, that would technically be possible but you would have to handle raw PANs in your PHP integration to do that, which would place a higher PCI compliance requirement on you. It is possible to create a ConfirmationToken client side with Elements which would validate things on the client

#

That said, please reach out to our support team to talk about this use case. I know this can be done via the API but I am not sure if we support that as a business case https://support.stripe.com/?contact=true

lime aurora
#

we are trying to integrate everything by ourselves because we need to do an initial payment and after that, there are a few more small payments scheduled ahead

candid geyser
#

Yes, that is the primary way Stripe.js is used. Are you looking to take a payment and save card details for future use upfront at the same time? Or are you looking to save details and charge them later while the customer is away?

lime aurora
#

our plan is to pay the deposit of a hotel booking right away, and then the rest of the booking amount is scheduled like 15% every month until the customer's arrival

lime aurora
candid geyser
#

Gotcha, I have a few docs to send. Basically our payment APIs work with things called intents. They have two flavors: PaymentIntent and SetupIntent, they are state machines that track a customer's attempt(s) to save a single card or complete a single payment (can also save a card while doing this). You will want to use our PaymentIntent flow when there is a deposit upfront and a SetupIntent when there isn't. Then you can create something we have called a subscription schedule which will tell us when to start charging those payments, how much to charge, and when to stop

lime aurora
#

perfect ๐Ÿ™‚ is it possible to charge those payments without telling stripe about them with the subscription schedule?

What I mean is that the schedule is currently handled by our software, and the hotel manager can make changes anytime they want on that payment calendar up until lsat minute. It's true that the calendar is created at the moment the booking is made, but it can suffer changes.

What we've done with other payment gateways is to charge the customer using the token provided on payment ๐Ÿค”

candid geyser
#
#

And yes, you can schedule the payments yourself if you want

quick boltBOT
lime aurora
#

perfect thank you very much! ๐Ÿ˜„

candid geyser
lime aurora
#

we would follow the Web integration, the Stripe-hosted page, that would allow us to store the token right?

#

that way we won't need to fill the PCI requirements and everything would be more scure

candid geyser
#

Yes, with the flows that I linked to, you would be working with PaymentMethod objects and IDs. The actual details are tokenized on the client-side so you have a lower PCI requirement

lime aurora
#

yes but the links you shared require some JS to be installed client-side, we would prefer to skip that part if possible

#

because our booking engine is embedded inside customer's webpage, and every website is different so we can't guarantee full compatibility sometimes ๐Ÿ™

#

I see we can do that too, there's documentation for the three possible ways

#

Thank you very much, gonna read all of this and see if I can do it ๐Ÿ™‚

round panther
#

Hi ๐Ÿ‘‹

I'm stepping in as my colleague needs to go soon

lime aurora
#

Hi Snufkin ๐Ÿ‘‹ yeah me too, doing some extra-hours to finish understanding the docs ๐Ÿ˜ƒ

#

I think we got all the information we need to start working on this and offer Stripe as a payment gateway to our 500 hotels-customers ๐Ÿ’ช

round panther
#

Okay sounds good. I do recommend making use of Stripe.js on your client-side for collecting payment method details. We have built a lot of fraud detection and other useful tooling into it

#

I'm glad you feel like you've got a good start! ๐ŸŽ‰

We'll be here to help with any technical questions

lime aurora
#

I was planning on showing just a button, like <Continue with Checkout> and that button would open Stripe hosted page

#

and after that, I'll store the PM token on our system to perform the scheduled payments without manipulating any customer's payment data

round panther
#

Okay yes that would be a good approach

lime aurora
#

Nice thank you! ๐Ÿ˜„ awesome team โค๏ธ

round panther
#

We're happy to help ๐Ÿ™‚