#robin_best-practices

1 messages ¡ Page 1 of 1 (latest)

calm tideBOT
#

👋 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/1232285817112629310

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

spice gulchBOT
#

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.

gray fable
#

hi! sounds good, what's your question, what difficulty are you running into?

near copper
#

Since I lack knowledge of iOS, how can I generate the payment method ID? On the backend, I receive the payment method within the payment intent and confirm the payment

gray fable
#

I'm not sure I understand. You can't do this without knowledge of iOS. The PaymentIntent is passed to the frontend (the iOS app) and is confirmed there to process the payment.

near copper
#

see right now i am doing like this accepting the payment_method from the request

#

could please guide me

gray fable
#

yes. Generally it's recommended to not do that, and instead confirm the PaymentIntent on the frontend, so that actions like 3D Secure can be handled there. That's what the guide you linked in your question does.

near copper
#

So, you're saying that everything is handled on the frontend, like confirming the payment within the iOS app?

gray fable
#

yes

near copper
#

then what should do on the backend ?

gray fable
#

create the PaymentIntent and return it to the frontend. See the guide you linked in your question.

near copper
gray fable
near copper
#

okay thanks

#

Also, could you provide one more piece of information regarding the setup of Apple Pay and PayPal with Stripe?

gray fable
#

what's your exact question?

near copper
#

Is it correct to say that Apple Pay and PayPal are payment methods provided by Stripe?

gray fable
#

yes

near copper
#

By default, the card approach is used in Stripe for payments. I want to integrate these two additional methods, Apple Pay and PayPal, alongside the card option.

gray fable
#

sounds good, you'll find all the information in the docs really, have you run into some specific difficulty?

near copper
#

Could you please verify the screenshot to confirm that Apple Pay is activated in the account? https://prnt.sc/vwzTOXcK285k

gray fable
#

I can't tell from just a screenshot of that page no

near copper
near copper
gray fable
gray fable
near copper
gray fable
#

I can't really help with just screenshots, they would have access to your account and you could explain more of the context

near copper
#

Is it not supported in the US? See the screenshot: https://prnt.sc/0z1VrHteHsqg

gray fable
#

no it's not supported in the US

near copper
#

okay thank you

near copper
graceful plover
#

hi! I'm taking over this thread.

#

for Subscription to flow is similar:

  • create the Subscription on the backend
  • retrieve the PaymentIntent created by the Subsciption
  • then use the PaymentIntent client secret on the frontend to collect the payment details
near copper
#

So what should i get from the client side?

graceful plover
#

what do you mean?

near copper
#

like for one-time payment everything is done on the ios app right ?

graceful plover
#

what do you mean by "everything"?

near copper
near copper
graceful plover
#

I'm confused by your questions, sorry.
For one time payment: create the PaymentIntent on the backend, then use the PaymentSheet on your iOS device using the PaymentIntent client secret.
For subscriptions: create a Subscription on the backend, retrieve the PaymentIntent created by the Subscription, then use the PaymentSheet on your iOS device using the PaymentIntent client secret.

near copper
#

I've already integrated Stripe payments in React with a Python backend. In this setup, I create the payment method on the frontend and then use that payment method ID to create the payment intent on the backend to confirm the payment. Right now, I'm a bit confused about how to proceed with iOS.

graceful plover
near copper
graceful plover
#

absolutely not. the recommend way to implement Stripe:

  • Start by creating the PaymentIntent on the backend (no payment method needed)
  • Use the PaymentSheet on your iOS device with the client secret of the PaymentIntent to collect the payment method
  • Confirm the PaymentIntent on the frontend
    and that's it. this is covered in details here:
near copper
#

see the screenshot

graceful plover
#

I recommend reading the link I shared above in details

#

yes the request you shared doesn't make any sense. please start by reading the doc I shared above.

near copper
#

okay