#svetidamir

1 messages ยท Page 1 of 1 (latest)

turbid marshBOT
signal wagon
gleaming thicket
#

oh I see the paymentIntent was confusing for me. Is it possible to create /create-intent and to put the id of a stripe product instead of price?

signal wagon
#

no, that's not possible, PaymentIntents don't support a Product/Price id

gleaming thicket
#

Okay, I didn't explain everything very good. I will try to summarize what I'm trying to achieve and you can tell me is it possible to do it with stripe ๐Ÿ˜„

#

I'm using Stripe to subscribe a user to a Product and make monthly or yearly subscription.

Is it possible to implement the paypal payment in this case? Because if it is possible I need a way to set Product id so it can subscribe the user to it.

signal wagon
#

Have you considered using Checkout Sessions instead? That might be easier for you to handle

gleaming thicket
#

let me just check Checkout Session I will get back to you soon

#

If you think about this unfortunately I can't use it because of the custom design that is created for it.

signal wagon
#

just to confirm, is your Stripe account based in the EU?

gleaming thicket
#

yes

#

the company is from Germany and they are able to have paypal payment over Stripe

#

This is the design I need to achieve and I did it all except I can't add the pay with paypal buton. I can implement the paypal api and there subscriptions but I would love to have it all in one place(stripe) so I don't need to implement one more payment method in the system.

#

If you need anything else I'm able to provide it.

signal wagon
gleaming thicket
#

cool, but I see I will have to put the price still hardcoded I will not be able to use the product id as for the card payment

signal wagon
#

you would create a Subscription in Stripe instead

#

this is the guide you would follow https://stripe.com/docs/payments/accept-a-payment-deferred?platform=web&type=subscription, but at step 3, instead of the Payment Element, you would use the Express Checkout Element instead : https://stripe.com/docs/elements/express-checkout-element/accept-a-payment

Build an integration where you can render the Payment Element prior to creating a PaymentIntent or SetupIntent.

Learn how to accept payments with the Express Checkout Element.

#

you kinda have to combine bits from both guides

gleaming thicket
#

oh okay thx a lot. You helped me a lot. I will try to implement this now. And if I get stuck I will write a new ticket ๐Ÿ˜„

#

I have now a lot of things to read and to try to implement